Skip to content

Retry the fixture CLI artifact download in deploy-action CI - #534

Merged
aram356 merged 1 commit into
chore/fastly-toolsfrom
ci/retry-fixture-cli-download
Nov 25, 2026
Merged

aram356 merged 1 commit into
chore/fastly-toolsfrom
ci/retry-fixture-cli-download

Conversation

@aram356

@aram356 aram356 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #531, which is stacked on #529. Merge those first, then rebase this onto main. Nothing here depends on them. It is stacked only to keep the queue in order.

Summary

  • fixture-release and store-free-release intermittently fail with Artifact not found for name: fixture-app-cli right after build-app-cli uploaded and finalized that artifact. download-artifact resolves the name by listing the run's artifacts, and the listing can miss an artifact finalized milliseconds earlier.
  • The first download is now continue-on-error. If it failed, the job waits 15 seconds and downloads once more. A second miss still fails the job, and the happy path is unchanged.
  • Attempt 1 failed this way on feat/523 (run 45299233532), rc/identity (45258204685), fix/503 (45257624476) and twice on Upgrade Fastly SDK to 0.13.3 #529. Each rerun passed.

Changes

Crate / File Change
.github/workflows/deploy-action.yml fixture-release and store-free-release each get an id/continue-on-error on the download, a sleep 15 step and a retry download, both gated on steps.download-cli.outcome == 'failure'. This follows the continue-on-error plus outcome pattern the workflow already uses for the expected-failure probes.

Alternatives ruled out:

  • Download by artifact-ids. download-artifact v8 lists the run's artifacts for that path too (src/download-artifact.ts), so it has the same race.
  • Reuse the local tarball. build-app-cli deletes its per-invocation workspace after uploading, so the file is gone by the next step. Keeping it would change the action's contract for downstream callers.

Closes

Closes #533

Test plan

  • cargo test --workspace --all-targets (no Rust change)
  • cargo clippy --workspace --all-targets --all-features -- -D warnings (no Rust change)
  • cargo fmt --all -- --check (no Rust change)
  • cargo check --workspace --all-targets --features "fastly cloudflare spin" (no Rust change)
  • WASM builds (no Rust change)
  • examples/app-demo workspace (no change)
  • Docs build (no docs change)
  • Manual testing via edgezero serve --adapter axum
  • Other: the Deploy actions static-checks gates, run locally. actionlint 1.7.7 with shellcheck, check-action-pins.sh, zizmor --offline .github 1.16.3 (no findings), .github/actions/deploy-core/tests/run.sh (643 passed, 0 failed) and .github/actions/setup-rust-build-cache/tests/run.sh. deploy-action.yml runs on PRs into any base, so this PR's own Deploy actions run exercises the change.

Checklist

  • Changes follow CLAUDE.md conventions
  • No Tokio deps added to core or adapter crates
  • Route params use {id} syntax (not :id)
  • Types imported from edgezero_core (not http crate)
  • Store wiring goes through KvRegistry / ConfigRegistry / SecretRegistry (not the legacy single-handle setters) — see spec §6.6
  • New code has tests (workflow-only change; the retry branch cannot be forced deterministically)
  • No secrets or credentials committed

@aram356 aram356 self-assigned this Nov 25, 2026
@aram356
aram356 added this pull request to stack #532 November 25, 2026 05:25
fixture-release and store-free-release upload the fixture CLI through
build-app-cli and download it by name in the next step.
download-artifact resolves the name by listing the run's artifacts, and
that listing intermittently misses an artifact finalized milliseconds
earlier ("Artifact not found for name: fixture-app-cli"). Downloading
by artifact-ids goes through the same listing.

Mark the first download continue-on-error, then wait 15 seconds and
download once more only if it failed. A second miss still fails the
job. build-app-cli deletes its workspace after uploading, so reusing
the local tarball would change that action's contract; this keeps the
fix inside the test workflow.

Closes #533
@aram356
aram356 force-pushed the ci/retry-fixture-cli-download branch from 8c0de15 to 20aa487 Compare November 25, 2026 05:30
@aram356
aram356 merged commit 144d178 into main Nov 25, 2026
29 checks passed
@aram356
aram356 deleted the ci/retry-fixture-cli-download branch November 25, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy actions CI: fixture-release intermittently cannot find the CLI artifact it just uploaded

1 participant