Repository navigation
fix(ci): retry archive readback after a transient DNS failure - #5557
shepherdjerred wants to merge 1 commit into
Conversation
Why Main pipeline 21126 (5fa17ca) failed tofu-archives: the create-only upload of an existing Tofu archive returned PreconditionFailed as expected, then the byte readback hit `AWS_IO_DNS_INVALID_NAME: Host name was invalid for dns resolution`. The readback classifier only treated an unreachable endpoint and S3 internal errors as transient, so one DNS blip failed the step instead of retrying, and red main holds every land. What - The transient readback pattern also matches `download failed: ... AWS_IO_DNS_*:` errors, so the existing 5-attempt backoff retries them. - New fixture: create-only conflict followed by one DNS failure retries once and succeeds. Verification - `bun --bun vitest run lib/artifacts/immutable-archive.test.ts` (scripts): 9/9 pass; the new case fails against main's pattern (1 failed, 8 passed). - Not run: a live tofu-archives publication. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai review Automated re-review request for |
Action performed
|
|
@coderabbitai review Automated re-review request for |
Action not completed
|
|
@codex review Automated re-review request for |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
Main pipeline 21126 (
5fa17ca9b9) failedtofu-archiveson one DNS blip. The create-only upload of an already-published Tofu archive returnedPreconditionFailed(expected), then the byte readback failed withAWS_IO_DNS_INVALID_NAME. The readback classifier treated only an unreachable endpoint and S3 internal errors as transient, so the step failed immediately instead of retrying — and a red main holds everytoolkit pr land.What
scripts/lib/artifacts/immutable-archive.ts: the transient readback pattern also matchesdownload failed: … AWS_IO_DNS_*:, so the existing 5-attempt backoff (withCiObjectStoreRetry) retries it. Permanent errors (403, byte mismatch) still fail at once.Demo
Before — main pipeline 21126, step
tofu-archives:After — the same readback stderr is classified transient and retried once (new fixture,
expectedDelays: [1000]):Against main's pattern the new fixture fails (
Tests 1 failed | 8 passed).Verification
cd scripts && bun --no-install --bun vitest --config ../vitest.config.ts run lib/artifacts/immutable-archive.test.ts: 9/9 pass; new case fails on main's pattern.bunx lefthook run pre-commit: pass.tofu-archivespublication.🤖 Generated with Claude Code
Summary by CodeRabbit