Skip to content

fix(workflow): guard sync-issues cleanup step against missing retry shim - #1286

Merged
c-vigo merged 2 commits into
devfrom
bugfix/1278-sync-issues-retry-fallback
Jul 28, 2026
Merged

c-vigo merged 2 commits into
devfrom
bugfix/1278-sync-issues-retry-fallback

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

The if: always() "Delete old cache" cleanup step in sync-issues.yml calls the retry wrapper, which only exists after toolchain setup (BASH_ENV shim from setup-devkit-toolchain in the template / setup-env in devkit's own copy). When the job fails before setup — e.g. the exo-pet/vault "Generate a token" failures of 2026-07-26 — the step degraded to retry: command not found, and the CACHE_ID=$(retry … | head -1) pipeline masked the error via head's exit 0, silently skipping the anti-collision deletion.

A one-shot fallback shim (command -v retry >/dev/null 2>&1 || retry() { …; }) is now prepended to the step's run: block in both copies (scaffold template + devkit's own workflow — scope approved in review). Healthy runs are unchanged (the real shim wins); early-failure runs degrade to a single unretried attempt instead of a masked error. if: always() and continue-on-error: true stay as designed.

Changes

  • assets/workspace/.github/workflows/sync-issues.yml — fallback shim in the cleanup step (scaffold template)
  • .github/workflows/sync-issues.yml — same fix in devkit's own (independently maintained) copy
  • tests/bats/init-workspace.bats — new test: rendered scaffold's cleanup step carries the fallback guard (TDD: committed RED first)
  • CHANGELOG.md + assets/workspace/.devcontainer/CHANGELOG.md — ### Fixed entry (mirror kept in sync by the sync-manifest hook)

Verification

  • TDD: test committed failing (34541bb9), fix turns it green (1eb61c65)
  • Full bats tests/bats/init-workspace.bats: 244/244 ok
  • zizmor 1.25.2 (CI gate config) on assets/workspace/.github/workflows/: no findings
  • actionlint on both changed workflow files: clean
  • prek run --all-files: all hooks green

Closes #1278

@c-vigo c-vigo added this to the 1.4.3 milestone Jul 28, 2026
@c-vigo
c-vigo merged commit b54e083 into dev Jul 28, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1278-sync-issues-retry-fallback branch July 28, 2026 13:41
c-vigo added a commit that referenced this pull request Jul 28, 2026
…on blocks (#1288)

## Summary

Advances the pinned `nixpkgs` rev from nixos-26.05 @ `34268251`
(2026-06-22) to @ `8623c4c2` (2026-07-26) and drops the `.vulnixignore`
exception blocks whose fixes have propagated to the channel.
Deliberately kept out of the 1.4.2 patch train (mass rebuild); the jq
block's expiry (2026-08-03) was the nearest deadline.

## Before/after vulnix diff (per docs/CONTAINER_SECURITY.md §4)

Scanned `.#devkitImageEnv` closure at both pins against the nvd-mirror.
**Unique CVEs: 112 → 56. No new HIGH/CRITICAL (CVSS ≥ 7.0) findings
introduced.**

| Package | Before | After | Register action |
|---|---|---|---|
| openssl | 3.6.2 | **3.6.3** | block dropped (10 CVEs) |
| curl | 8.20.0 | **8.21.0** | block dropped (17 CVEs) |
| openssh | 10.3p1 | **10.4p1** | block dropped (CVE-2026-60002) |
| jq | 1.8.1 | **1.8.2** | CVE-2026-49839 entry dropped (line-granular;
shared `Expiration: 2026-08-03` directive and libssh2/socat survivors
preserved) |
| unbound | 1.25.1 | 1.25.1 | kept — fix not propagated |
| gawk | 5.4.0 | 5.4.0 | kept — fix not propagated |
| podman | 5.8.2 | 5.8.2 | kept — fix not propagated |
| fzf | 0.72.0 | 0.72.0 | kept — fix not propagated |
| libssh2 | 1.11.1 | 1.11.1 | kept — fix not propagated |

- Kept blocks' re-verification notes refreshed to 2026-07-28 with the
new pin context.
- New surface: jq 1.8.2 shows three unrelated advisories (CVE-2026-33948
5.3, CVE-2026-39979 6.5, CVE-2026-44777 5.5) — all below the 7.0 gate
threshold, awareness-only, **no new exceptions added**.
- gzip/ldns/libxml2 also cleared from the report incidentally; their
(harmless, non-gating) register entries were left untouched per minimal
diff.

## Verification

- `nix flake update nixpkgs` — flake.lock diff touches only the nixpkgs
node
- `uv run check-expirations .trivyignore .vulnixignore` — 37 exceptions
validated, exit 0
- `uv run vulnix-gate vulnix-after.json --register .vulnixignore` — "No
unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 33 exception(s)
applied", exit 0 (independently re-run at review)
- `nix build .#devkitImage` — image builds at the new pin
- `prek run --all-files` — all hooks green
- TDD n/a (lockfile + exception-register change)

Includes a merge of current dev (changelog-overlap resolution with
#1286/#1287).

Closes #1273
@c-vigo c-vigo modified the milestones: 1.4.3, 1.5.0 Jul 30, 2026
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.

1 participant