Commit 1100b37
fix: Improve error messages for missing build artifacts
When a test fails due to missing build artifacts, users previously saw
only a generic "An error occurred" message. This made it difficult to
understand what went wrong.
Changes:
- Add `error_message` property to Test model to expose the last error
- Update test detail template to show error message prominently in an
alert box instead of hiding it in the progress table
- Add `_diagnose_missing_artifact()` helper that checks GitHub workflow
status and provides specific error messages:
- "Build still in progress" - when the GitHub Actions build hasn't
completed yet (common for Windows builds which take ~40 minutes)
- "Build failed" - when the workflow failed
- "Artifact not found" - when build succeeded but artifact missing
(possibly expired)
- "No workflow run found" - when the workflow hasn't started
This helps users understand why their test failed and what action to
take (e.g., wait for build to complete, check GitHub Actions logs).
Fixes the issue where test 7139 showed a cryptic error because the
Windows build was still in progress when the test tried to fetch the
artifact.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 53b3d7f commit 1100b37
File tree
3 files changed
+75
-3
lines changed- mod_ci
- mod_test
- templates/test
3 files changed
+75
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 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 | + | |
307 | 358 | | |
308 | 359 | | |
309 | 360 | | |
| |||
439 | 490 | | |
440 | 491 | | |
441 | 492 | | |
| 493 | + | |
442 | 494 | | |
443 | 495 | | |
| 496 | + | |
444 | 497 | | |
445 | 498 | | |
446 | 499 | | |
| |||
474 | 527 | | |
475 | 528 | | |
476 | 529 | | |
477 | | - | |
478 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
479 | 534 | | |
480 | 535 | | |
481 | 536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
186 | 198 | | |
187 | 199 | | |
188 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
0 commit comments