Commit 80cb77f
authored
# Backport
This will backport the following commits from `main` to `9.1`:
- [[scout] failed test reporter integration
(#239771)](#239771)
<!--- Backport version: 10.1.0 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-11-10T13:31:13Z","message":"[scout]
failed test reporter integration (#239771)\n\n## Summary\n\ncloses
https://github.com/elastic/kibana/issues/241171\n\nThis PR extends
existing `kbn/failed-test-reporter-cli` package to\ncreate/update GH
issues for Scout test failures on upstream branches\nwith specific
extras:\n\n- support **ndjson** input
format:\n`.scout/reports/scout-playwright-test-failures-*/scout-failures-*.ndjson`\n-
match existing GH issues for Scout test **by test name only**:
don't\ncreate a new issue _for each target_ where the same test fails,
but only\nadd a new comment with the specified target\n- use a different
issue template for scout with extended details\n\nIssue example:
https://github.com/elastic/kibana/issues/241472\n\nComments example:
https://github.com/elastic/kibana/issues/239777\n\n---------\n\nCo-authored-by:
Copilot <[email protected]>\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"9c436b83b672f5c44f91ff313c10d46292cea239","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","test:scout","v9.3.0","v8.19.7","v9.1.7","v9.2.1"],"title":"[scout]
failed test reporter
integration","number":239771,"url":"https://github.com/elastic/kibana/pull/239771","mergeCommit":{"message":"[scout]
failed test reporter integration (#239771)\n\n## Summary\n\ncloses
https://github.com/elastic/kibana/issues/241171\n\nThis PR extends
existing `kbn/failed-test-reporter-cli` package to\ncreate/update GH
issues for Scout test failures on upstream branches\nwith specific
extras:\n\n- support **ndjson** input
format:\n`.scout/reports/scout-playwright-test-failures-*/scout-failures-*.ndjson`\n-
match existing GH issues for Scout test **by test name only**:
don't\ncreate a new issue _for each target_ where the same test fails,
but only\nadd a new comment with the specified target\n- use a different
issue template for scout with extended details\n\nIssue example:
https://github.com/elastic/kibana/issues/241472\n\nComments example:
https://github.com/elastic/kibana/issues/239777\n\n---------\n\nCo-authored-by:
Copilot <[email protected]>\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"9c436b83b672f5c44f91ff313c10d46292cea239"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239771","number":239771,"mergeCommit":{"message":"[scout]
failed test reporter integration (#239771)\n\n## Summary\n\ncloses
https://github.com/elastic/kibana/issues/241171\n\nThis PR extends
existing `kbn/failed-test-reporter-cli` package to\ncreate/update GH
issues for Scout test failures on upstream branches\nwith specific
extras:\n\n- support **ndjson** input
format:\n`.scout/reports/scout-playwright-test-failures-*/scout-failures-*.ndjson`\n-
match existing GH issues for Scout test **by test name only**:
don't\ncreate a new issue _for each target_ where the same test fails,
but only\nadd a new comment with the specified target\n- use a different
issue template for scout with extended details\n\nIssue example:
https://github.com/elastic/kibana/issues/241472\n\nComments example:
https://github.com/elastic/kibana/issues/239777\n\n---------\n\nCo-authored-by:
Copilot <[email protected]>\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"9c436b83b672f5c44f91ff313c10d46292cea239"}},{"branch":"8.19","label":"v8.19.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/242419","number":242419,"state":"OPEN"}]}]
BACKPORT-->
1 parent c3a8b5a commit 80cb77f
File tree
14 files changed
+1307
-169
lines changed- .buildkite/scripts/lifecycle
- packages/kbn-failed-test-reporter-cli/failed_tests_reporter
- src/platform/packages/private/kbn-scout-reporting/src/reporting
- playwright/failed_test
- report/failed_test
14 files changed
+1307
-169
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
Lines changed: 195 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
Lines changed: 46 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | | - | |
90 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
91 | 115 | | |
92 | 116 | | |
| 117 | + | |
| 118 | + | |
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
| |||
148 | 174 | | |
149 | 175 | | |
150 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
151 | 180 | | |
152 | | - | |
153 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
154 | 192 | | |
155 | 193 | | |
156 | 194 | | |
| |||
0 commit comments