From ee0db2ca1b052b4da2f7b9eedaf2250722a76c8c Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 16 Nov 2026 02:17:48 +0000 Subject: [PATCH 1/6] ci: build every tool's main against the library COMPAT.md says the scheduled job builds every tool against main, but the tools job built only eb-keep-logs, from its zig branch, nine commits behind its main with a zig-common 0.1.0 pin. The matrix now holds eb-keep-logs, eb-local, eb-staged-rebuild and eessi-arch-guard at main. The job rewrote the tool's build.zig.zon to a path dependency, which fails two of eb-local's SBOM tests, which read that file. zig build --fork replaces the pinned zig-common with this checkout instead and leaves the file alone. eb-local runs with -Dtest-ops=true and Python 3.12, as its own CI does, since its command-line suite needs the test artifact. --- .github/workflows/ci.yml | 33 +++++++++++++++++---------------- changelog.d/+compat-ci.misc.md | 1 + 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 changelog.d/+compat-ci.misc.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 903d061..cec6c79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,9 @@ jobs: run: | ! git grep -nIiE 'snellius|surf\.nl|/gpfs/|/projects/0|rg\.terra|scratch-shared' -- . ':!.github/workflows/ci.yml' - # Every tool built and tested against this commit of the library, with its - # pinned zig-common replaced by this checkout. + # Every tool's main built and tested against this commit of the library. + # zig build --fork puts this checkout in place of the zig-common the tool + # pins and leaves its build.zig.zon alone: eb-local's SBOM tests read it. tools: runs-on: ubuntu-latest timeout-minutes: 30 @@ -41,7 +42,11 @@ jobs: matrix: include: - repo: stackhands/eb-keep-logs - ref: zig + - repo: stackhands/eb-local + # Its command-line suite runs against the test artifact. + args: -Dtest-ops=true + - repo: stackhands/eb-staged-rebuild + - repo: stackhands/eessi-arch-guard steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -51,21 +56,17 @@ jobs: with: persist-credentials: false repository: ${{ matrix.repo }} - ref: ${{ matrix.ref }} + ref: main path: tool + # eb-local's command-line suite is Python, run with the version its own + # CI uses. + - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 + with: + python-version: "3.12" - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1 with: version: 0.17.1 - - name: point the tool at this checkout - working-directory: tool - run: | - python3 - <<'PY' - import re - p = "build.zig.zon" - s = open(p).read() - s, n = re.subn(r"\.zig_common = \.\{[^}]*\}", '.zig_common = .{ .path = "../zig-common" }', s) - assert n == 1, "no zig_common dependency" - open(p, "w").write(s) - PY - working-directory: tool - run: zig build test --summary all + env: + ARGS: ${{ matrix.args }} + run: zig build $ARGS test --summary all --fork="$GITHUB_WORKSPACE/zig-common" diff --git a/changelog.d/+compat-ci.misc.md b/changelog.d/+compat-ci.misc.md new file mode 100644 index 0000000..e5b1751 --- /dev/null +++ b/changelog.d/+compat-ci.misc.md @@ -0,0 +1 @@ +CI builds and tests the `main` of every tool built on the library (eb-keep-logs, eb-local, eb-staged-rebuild and eessi-arch-guard) against each commit, as COMPAT.md says, with `zig build --fork`; it built only eb-keep-logs, from its stale `zig` branch. From 6bcd858fa363c10f4bc62c9b8793381684a33851 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 16 Nov 2026 02:18:33 +0000 Subject: [PATCH 2/6] docs(compat): eb-local 2.0.0 to 2.4.0 are built on 0.8.1 eb-local's Zig port pinned zig-common v0.8.1 from its first commit (f5a9a88e) and has not moved, so every Zig release, 2.0.0 to 2.4.0, is built on it; the 0.8.1 row did not name eb-local. --- COMPAT.md | 2 +- changelog.d/+compat-eb-local.doc.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/+compat-eb-local.doc.md diff --git a/COMPAT.md b/COMPAT.md index 19c0a38..13b9fc6 100644 --- a/COMPAT.md +++ b/COMPAT.md @@ -3,7 +3,7 @@ | zig-common | Zig | tools built on it | |---|---|---| | 0.9.0 | 0.17.1 | eessi-arch-guard on its next release (proc.killGroup); eb-keep-logs builds against it in CI | -| 0.8.1 | 0.17.1 | eb-staged-rebuild, eb-keep-logs and eessi-arch-guard on their next releases (umask read without changing it, std names without deprecated aliases) | +| 0.8.1 | 0.17.1 | eb-local 2.0.0 (its first Zig release) to 2.4.0; eb-staged-rebuild, eb-keep-logs and eessi-arch-guard on their next releases (umask read without changing it, std names without deprecated aliases) | | 0.8.0 | 0.17.1 | eb-staged-rebuild 1.0.0 (errno text as Python prints it, from the errno the kernel gave); eb-keep-logs builds against it in CI | | 0.7.0 | 0.17.1 | eb-staged-rebuild (Zig port; exec errors and the ledger group stop of its build-events path); eb-keep-logs builds against it in CI | | 0.6.0 | 0.17.1 | eb-staged-rebuild (Zig port; failing fault points in its -Dtest-ops artifact); eb-keep-logs builds against it in CI | diff --git a/changelog.d/+compat-eb-local.doc.md b/changelog.d/+compat-eb-local.doc.md new file mode 100644 index 0000000..29ca228 --- /dev/null +++ b/changelog.d/+compat-eb-local.doc.md @@ -0,0 +1 @@ +COMPAT.md lists eb-local 2.0.0 to 2.4.0, built on 0.8.1 since its Zig port. From a6438d2b1be5c5884143306309a27f866d4c7bb1 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 19 Nov 2026 21:39:31 +0100 Subject: [PATCH 3/6] ci(tools): keep each tool's cache in its own checkout setup-zig sets ZIG_LOCAL_CACHE_DIR to the workspace root, so tool/.zig-cache never exists. eb-keep-logs and eessi-arch-guard tests create scratch directories under ./.zig-cache and failed here while passing in their own repositories. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cec6c79..58c7603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,4 +69,8 @@ jobs: - working-directory: tool env: ARGS: ${{ matrix.args }} + # setup-zig points the local cache at the workspace root. The tools' + # tests make their scratch directories under ./.zig-cache, as a + # checkout of the tool alone has it, so the cache goes back there. + ZIG_LOCAL_CACHE_DIR: ${{ github.workspace }}/tool/.zig-cache run: zig build $ARGS test --summary all --fork="$GITHUB_WORKSPACE/zig-common" From da578ad1f61796d05c91038ae9525e16d21a4234 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 19 Nov 2026 21:42:40 +0100 Subject: [PATCH 4/6] ci(tools): give eb-keep-logs promtool and jsonschema Its test_metrics.sh stops with 'promtool is required', as its own CI installs it. Same release and checksum as there. --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58c7603..82a7f16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,9 @@ jobs: matrix: include: - repo: stackhands/eb-keep-logs + # tests/test_metrics.sh checks the metrics file with promtool, and + # the schema tests need jsonschema, as in the tool's own CI. + promtool: true - repo: stackhands/eb-local # Its command-line suite runs against the test artifact. args: -Dtest-ops=true @@ -66,6 +69,15 @@ jobs: - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1 with: version: 0.17.1 + - name: Install promtool 3.7.3 and jsonschema + if: matrix.promtool + run: | + archive=prometheus-3.7.3.linux-amd64.tar.gz + curl -fsSLO "https://github.com/prometheus/prometheus/releases/download/v3.7.3/${archive}" + echo "fc9e5da126817438cf2820d9a7206c75e3122802ba8d20add3a6219a59ca6913 ${archive}" | sha256sum -c - + tar -xzf "${archive}" + sudo install -m 0755 prometheus-3.7.3.linux-amd64/promtool /usr/local/bin/promtool + pip install jsonschema - working-directory: tool env: ARGS: ${{ matrix.args }} From ec731283150149e27e4141b2f58d5c0db853e257 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 26 Nov 2026 10:14:42 +0000 Subject: [PATCH 5/6] ci: keep the tools job name the ruleset requires develop names this check from the matrix values repo and ref, and the ruleset requires tools (stackhands/eb-keep-logs, zig). The promtool flag is a boolean, so the same slot now renders as true. Name the job from a label, and keep args on the eb-local leg. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82a7f16..350c24a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,11 @@ jobs: # zig build --fork puts this checkout in place of the zig-common the tool # pins and leaves its build.zig.zon alone: eb-local's SBOM tests read it. tools: + # A matrix boolean is rendered as true. develop named this job from + # repo and ref, and the ruleset still requires + # tools (stackhands/eb-keep-logs, zig). label is that second + # component. A row that sets args keeps that text instead. + name: tools (${{ matrix.repo }}${{ matrix.label && format(', {0}', matrix.label) || matrix.args && format(', {0}', matrix.args) || '' }}) runs-on: ubuntu-latest timeout-minutes: 30 strategy: @@ -42,6 +47,7 @@ jobs: matrix: include: - repo: stackhands/eb-keep-logs + label: zig # tests/test_metrics.sh checks the metrics file with promtool, and # the schema tests need jsonschema, as in the tool's own CI. promtool: true From aa4954bc9d8374b4967da4db0bca4836f87954fe Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Thu, 26 Nov 2026 16:20:10 +0000 Subject: [PATCH 6/6] ci: name tool rows from label only Correct the comment above the tools job `name:`. The old check name came from GitHub's default matrix-value join of `repo` and `ref`, not from a `name:` key. Give the eb-local row `label: -Dtest-ops=true`. Build `name:` from `matrix.repo` and `matrix.label` only, so the required check names stay `tools (stackhands/eb-keep-logs, zig)`, `tools (stackhands/eb-local, -Dtest-ops=true)`, `tools (stackhands/eb-staged-rebuild)`, and `tools (stackhands/eessi-arch-guard)`. --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 250783c..1fef8b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,11 +69,10 @@ jobs: # zig build --fork puts this checkout in place of the zig-common the tool # pins and leaves its build.zig.zon alone: eb-local's SBOM tests read it. tools: - # A matrix boolean is rendered as true. develop named this job from - # repo and ref, and the ruleset still requires - # tools (stackhands/eb-keep-logs, zig). label is that second - # component. A row that sets args keeps that text instead. - name: tools (${{ matrix.repo }}${{ matrix.label && format(', {0}', matrix.label) || matrix.args && format(', {0}', matrix.args) || '' }}) + # The old check name came from GitHub's default matrix-value join + # of repo and ref: tools (stackhands/eb-keep-logs, zig). label is + # that second value. + name: tools (${{ matrix.repo }}${{ matrix.label && format(', {0}', matrix.label) || '' }}) runs-on: ubuntu-latest timeout-minutes: 30 strategy: @@ -87,6 +86,7 @@ jobs: promtool: true - repo: stackhands/eb-local # Its command-line suite runs against the test artifact. + label: -Dtest-ops=true args: -Dtest-ops=true - repo: stackhands/eb-staged-rebuild - repo: stackhands/eessi-arch-guard