Repository navigation
fix(ci): run release build-and-test on ubuntu-24.04 and capture vulnix exit - #843
Merged
Merged
Conversation
…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
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
This was referenced Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Forward-fix for the two
release.ymldefects 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 still0.4.0-rc1.ubuntu-22.04/ubuntu-22.04-arm(podman 3.4.4), whose rootless volume UID mapping breaksinit-workspace.sh's in-container rsync (chmod: Operation not permitted, exit 23 → pexpect EOF in theinitialized_workspacefixture). The identicaltest-integrationaction is green onubuntu-24.04(podman 4.9.3) inci.ymlandnix-image.ymlon the same commit. Switched tonix-image.yml's exact runner expression.Run vulnixstep lackedsecurity-scan.yml's|| rc=$?capture; under the runner's defaultbash -e, vulnix's normal exit 2 (findings present — all triaged in.vulnixignore) aborted the step beforevulnix-gateevaluated 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] - TBDsection.Verification
ubuntu-22.04/podman 3.4.4 vs green ci.yml jobubuntu-24.04/podman 4.9.3 (same commit, same action, same image — reproducible Nix build); vulnix step log showsProcess completed with exit code 2with therc<=2guard unreached.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:devimage missingprek([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