Repository navigation
Description
Description
CI failed in run https://github.com/vig-os/devcontainer/actions/runs/23237386386/attempts/1 during Project Checks with curl: (22) The requested URL returned error: 403.
The failure happened in environment setup when fetching Taplo release metadata from GitHub API, and the step currently has no bounded retry/backoff. This makes the pipeline flaky for transient upstream/network/API issues.
Steps to Reproduce
- Run CI for a PR (e.g. run
23237386386, attempt1). - Observe
Project Checksfail in setup phase. - Failing command path is in
.github/actions/setup-env/action.yml(Install taplo). - Error:
curl: (22) The requested URL returned error: 403and step exits with code22.
Expected Behavior
Network/API-dependent setup steps should tolerate transient failures using bounded retry with backoff and only fail after retry budget is exhausted.
Actual Behavior
A single transient failure in external fetch (curl/gh api) fails the whole job immediately.
Environment
- OS: GitHub-hosted runner (
ubuntu-22.04) - Container Runtime: N/A
- Image Version/Tag: GitHub-hosted runner image
- Architecture: x86_64
Additional Context
Candidate additional locations where retry would be beneficial:
-
.github/actions/setup-env/action.ymlInstall taplo: release lookup + binary download (curl)Install hadolint: binary + checksum download (curl)
-
.github/workflows/prepare-release.yml- Multiple
gh apireads for refs/changelog content without retry
- Multiple
-
Keep parity with existing retry patterns already present in
.github/workflows/release.yml. -
Related to [BUG] Intermittent repository_dispatch deploy failure in commit-action (Git refs 404) #354 and [BUG] repository_dispatch smoke-test release job treats missing tag release as existing #355 (same reliability class: transient CI/API failures)
-
TDD compliance (see
.cursor/rules/tdd.mdc)
Possible Solution
Introduce a shared bounded retry helper for shell steps (max attempts + exponential backoff + transient/non-transient error classification), and apply it to high-value network-dependent calls (curl, gh api) in setup and release-prep paths.
Changelog Category
Fixed
Activity
test(vigutils): add red tests for retry cli
feat(vigutils): add bounded retry cli command
fix(ci): use retry cli for setup and image pull steps
fix(ci): harden release and sync workflows with retry
fix(ci): harden workspace release templates with retry
fix(ci): harden smoke-test dispatch retries and image resolution
docs(ci): record retry cli rollout in workflows
fix(ci): validate tag target and release fallback retry
fix(ci): harden sync workflow retry setup and portability
fix(ci): run sync workflows in container image
fix(ci): add resolve-image action and vig-os config
fix(ci): retry remote tag checks in push fallback
fix(vigutils): handle command execution errors in retry CLI
fix: harden network retries in CI and release workflows (#359)
chore: release 0.3.1 (#342)