Skip to content

fix(ci): run release build-and-test on ubuntu-24.04 and capture vulnix exit - #843

Merged
c-vigo merged 1 commit into
release/0.4.0from
bugfix/842-rc1-runner-vulnix-fixes
Jul 4, 2026
Merged

c-vigo merged 1 commit into
release/0.4.0from
bugfix/842-rc1-runner-vulnix-fixes

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Summary

Forward-fix for the two release.yml defects that failed the first 0.4.0 candidate run (rc1 failure issue #842, diagnosis posted there). No tag was consumed — publish was skipped, so the next candidate dispatch is still 0.4.0-rc1.

  1. Stale runners: the build-and-test matrix pinned Debian-era ubuntu-22.04/ubuntu-22.04-arm (podman 3.4.4), whose rootless volume UID mapping breaks init-workspace.sh's in-container rsync (chmod: Operation not permitted, exit 23 → pexpect EOF in the initialized_workspace fixture). The identical test-integration action is green on ubuntu-24.04 (podman 4.9.3) in ci.yml and nix-image.yml on the same commit. Switched to nix-image.yml's exact runner expression.
  2. Uncaptured vulnix exit: the Run vulnix step lacked security-scan.yml's || rc=$? capture; under the runner's default bash -e, vulnix's normal exit 2 (findings present — all triaged in .vulnixignore) aborted the step before vulnix-gate evaluated the register. Adopted the nightly's capture/retry pattern; the original intent is preserved — scan crashes (exit > 2) or invalid JSON still fail the job rather than reading as a clean result.

Changelog entry added to the open ## [0.4.0] - TBD section.

Verification

  • Root-cause evidence: failing job ran ubuntu-22.04/podman 3.4.4 vs green ci.yml job ubuntu-24.04/podman 4.9.3 (same commit, same action, same image — reproducible Nix build); vulnix step log shows Process completed with exit code 2 with the rc<=2 guard unreached.
  • The vulnix pattern is copied from security-scan.yml:108-122, which passed today both on schedule-shaped dispatch (run 28709965103) and in the release-PR Security Scan check.
  • just precommit (full suite, all files): green, exit 0.
  • uv run pytest -k "release or workflow": 12 passed; the single failure (test_uv_venv_workflow) is a stale local :dev image missing prek ([CHORE] Adopt git-hooks.nix with package = pkgs.prek (supersedes #40) #778) — image-content test unrelated to this workflow-only diff, passing in CI on the parent commit.

Refs: #842

…x exit

Two release.yml defects surfaced by the first Nix-image candidate run
(0.4.0-rc1) and fixed forward per the release policy:

The build-and-test matrix still pinned Debian-era ubuntu-22.04 runners,
whose podman 3.4.4 breaks rootless volume UID mapping: init-workspace's
in-container rsync could not chmod the /workspace scaffold ("Operation
not permitted", exit 23), failing integration tests that pass on
ubuntu-24.04 (podman 4.9.3) in ci.yml and nix-image.yml on the same
commit. Use nix-image.yml's ubuntu-24.04/ubuntu-24.04-arm expression.

The Run vulnix step missed security-scan.yml's "|| rc=\$?" capture, so
the runner's bash -e aborted the step on vulnix's normal exit 2
(findings present) before vulnix-gate ever evaluated .vulnixignore.
Adopt the nightly's capture/retry pattern; scan crashes (exit > 2) and
invalid JSON output still fail the job instead of reading as clean.

Refs: #842
@c-vigo
c-vigo merged commit ebe1b10 into release/0.4.0 Jul 4, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/842-rc1-runner-vulnix-fixes branch July 4, 2026 18:25
c-vigo added a commit that referenced this pull request Jul 4, 2026
## Summary

Forward-fix for the second 0.4.0 candidate failure
([#847](#847), diagnosis
posted there). Again no tag consumed — publish was skipped.

The `setup-env` provisioning step ends with `printf … | grep
'^/nix/store' | head -50` under the runner's `bash -e -o pipefail`
shell. With the dev-shell PATH now exceeding 50 nix-store entries,
`head` exiting early can SIGPIPE `grep` (exit 2) and fail the step — the
log shows `grep: write error: Broken pipe` at the exact failure
timestamp on the arm64 build-and-test leg. It's a scheduling race: the
same line has run green across every workflow for weeks and passed on
five other legs today.

Fix: `sed -n '1,50p'` instead of `head -50` — consumes the whole stream
(no early pipe close), prints the same first 50 lines.

Positive signal from the failed run: the #842/#843 fixes are validated —
`Vulnix CVE Gate` **passed** on this run (previously the step died on
vulnix's exit 2), and amd64 was only cancelled by fail-fast.

## Verification

- Race mechanics confirmed from the job log (`grep: write error: Broken
pipe` + `Process completed with exit code 2` at 18:42:21, inside the
test-image action's setup-env sub-step).
- `just precommit` (full suite, all files): green, exit 0.
- Changelog entry added to the open `## [0.4.0] - TBD` section.

Refs: #847
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