Commit 9a104b4
Stop an apt mirror hiccup from failing a required job (#70)
On 5 August the R Integration & Workflow Tests job failed with
E: Failed to fetch .../noble-cran40/Packages.gz
File has unexpected size (62232 != 61419). Mirror sync in progress?
after the tests had already passed. Because that job is a required context,
it blocked PR #66 -- a virtualenv bump closing an open security advisory --
for five days.
The real defect is inverted criticality rather than a missing retry. The step
exists only to install gpg so the Codecov uploader can verify its signature,
and the upload immediately below it already runs with fail_ci_if_error: false.
A required job was hard-failing on a helper for an upload that is explicitly
allowed to fail.
So both halves: a bounded retry with backoff, which recovers from a mirror
mid-sync in the common case, and continue-on-error for when it does not.
Failures still surface as ::warning:: annotations so a persistent apt problem
stays visible rather than vanishing, and an uninstalled gpg leaves the Codecov
upload unverified and saying so.
The script stays POSIX: this step runs in a container whose default shell is
sh -e, not bash.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 208b052 commit 9a104b4
1 file changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
448 | 463 | | |
449 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
450 | 474 | | |
451 | 475 | | |
452 | 476 | | |
| |||
0 commit comments