Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
5310231
fix: preserve same-second submit scripts
HaoZeke Nov 20, 2026
af77189
fix: refuse a parent component in an approved prefix
HaoZeke Nov 20, 2026
b52fff6
test: enforce zero Python skips locally and in the zig workflow
HaoZeke Nov 20, 2026
7b071ef
test: skip tool meta-tests outside EB_LOCAL_REQUIRE_TOOLS
HaoZeke Nov 20, 2026
d13dbe1
test: guard the remaining doctor no-site-file tests
HaoZeke Nov 20, 2026
3f6077f
fix: keep a submit script when its path already exists
HaoZeke Nov 21, 2026
036fe87
fix: refuse a root-equivalent approved prefix
HaoZeke Nov 21, 2026
fc868f3
feat: print the Cargo linker lines from dev
HaoZeke Nov 21, 2026
3b2de40
ci: build a recipe on a hosted runner without Slurm
HaoZeke Nov 25, 2026
fe27576
Merge pull request #435 from stackhands/ci/workstation-build-on-hoste…
HaoZeke Nov 26, 2026
cce822f
Merge remote-tracking branch 'origin/main' into chore/sync-main-into-…
HaoZeke Nov 26, 2026
593f431
Merge pull request #436 from stackhands/chore/sync-main-into-develop
HaoZeke Nov 26, 2026
3cabaaa
docs: README lists every command and states clean without rtrash
HaoZeke Nov 26, 2026
b9e44ec
docs: add CITATION.cff
HaoZeke Nov 26, 2026
60500f9
Merge pull request #437 from stackhands/docs/readme-matches-code
HaoZeke Nov 26, 2026
d014592
feat: --variant perf|debug builds an easyconfig for profilers or debu…
HaoZeke Nov 26, 2026
04985ac
docs: export the variant pages and name EB_LOCAL_VARIANT in the envir…
HaoZeke Nov 26, 2026
04a3375
fix: share compiler family detection helper
HaoZeke Nov 19, 2026
325cbb7
fix: apply compiler wrappers when loading locked environment
HaoZeke Nov 19, 2026
4c823c4
fix: stop a locked dev environment when rpath-wrappers fails
HaoZeke Nov 21, 2026
16b2125
docs: note the build environments 2026.06 includes
HaoZeke Nov 21, 2026
a2943fb
Merge branch 'develop' into test/zero-python-skips
HaoZeke Nov 26, 2026
c3af637
test: name node-local mounts after the fixture user
HaoZeke Nov 26, 2026
ab9e890
test: allow the masked host-file check 120s on arm
HaoZeke Nov 26, 2026
92b2019
Merge branch 'develop' into fix/submit-script-same-second
HaoZeke Nov 26, 2026
4fe1dc6
fix: restore raced submit paths from the rebased tree
HaoZeke Nov 26, 2026
b0e7079
Merge branch 'develop' into fix/approved-prefix-parent
HaoZeke Nov 26, 2026
78b16e5
test: import os in the prefix filesystem checks
HaoZeke Nov 26, 2026
0f19448
fix: clean up reserved submit scripts on failure
HaoZeke Nov 26, 2026
6743362
Merge branch 'develop' into feat/dev-cargo-linker
HaoZeke Nov 26, 2026
e0d077b
fix: put cargo linker tools on the restored dev PATH
HaoZeke Nov 26, 2026
cfab84f
Merge pull request #439 from stackhands/docs/compile-llvm-fallback-no…
HaoZeke Nov 26, 2026
e8b29a4
Merge pull request #379 from stackhands/fix/submit-script-same-second
HaoZeke Nov 26, 2026
91afcef
fix: run only `rpath-wrappers --for` without a buildenv
HaoZeke Nov 26, 2026
7c8d45e
test: expect one wrapper directory from a locked shell
HaoZeke Nov 26, 2026
bac6609
Merge pull request #355 from stackhands/feat/dev-cargo-linker
HaoZeke Nov 26, 2026
9c242e3
fix: reap until `ECHILD` and bound each `wait4` pass
HaoZeke Nov 26, 2026
d4e2a86
Merge pull request #380 from stackhands/fix/approved-prefix-parent
HaoZeke Nov 26, 2026
17b93d7
Merge pull request #438 from stackhands/fix/dev-locked-rpath-wrappers-r2
HaoZeke Nov 26, 2026
18546d6
Merge pull request #440 from stackhands/test/sigchld-wake-race
HaoZeke Nov 26, 2026
ffea04e
test: drop eleven checks a kept test already makes
HaoZeke Nov 26, 2026
fdd06a7
test: fold near-copy cases into seven tables
HaoZeke Nov 26, 2026
039705d
test: inject errno seams in place of tmpfs mounts
HaoZeke Nov 26, 2026
e0066dd
test: shorten the slow checks without dropping them
HaoZeke Nov 26, 2026
672d15f
test: wait on the event the check needs
HaoZeke Nov 26, 2026
0d2e692
test: cover dot and doubled-slash prefix forms
HaoZeke Nov 26, 2026
b0e0875
fix: avoid reloading stack and extension modules when locked
HaoZeke Nov 26, 2026
b320ce0
Merge pull request #442 from stackhands/test/approved-prefix-forms
HaoZeke Nov 26, 2026
b9b83f6
Merge pull request #443 from stackhands/fix/dev-locked-no-reload-r2
HaoZeke Nov 26, 2026
0118884
test: keep node-local mount setup for log error tests
HaoZeke Nov 26, 2026
c92d105
Merge pull request #405 from stackhands/test/zero-python-skips
HaoZeke Nov 26, 2026
64b52cf
Merge branch develop into test/zero-skips-strict-env
HaoZeke Nov 26, 2026
5266c6f
test: reach the root check in prefix form rows
HaoZeke Nov 26, 2026
cfd762d
Merge pull request #444 from stackhands/test/root-equivalent-forms
HaoZeke Nov 26, 2026
f261910
test: keep live EESSI tests out of the zero-skip run
HaoZeke Nov 26, 2026
8936237
test: lint the live-test guard and run it on EESSI
HaoZeke Nov 26, 2026
fea95c5
test: check `/.` against `isRootEquivalent`
HaoZeke Nov 26, 2026
193f8c9
Merge pull request #445 from stackhands/fix/live-eessi-zero-skips
HaoZeke Nov 26, 2026
ae0fa14
docs(cli): name the --variant section instead of linking a generated id
HaoZeke Nov 26, 2026
f338230
Merge pull request #447 from stackhands/test/root-equivalent-dot-slash
HaoZeke Nov 26, 2026
3cd9e1f
Merge branch 'develop' into test/trim-suite
HaoZeke Nov 26, 2026
30d7978
Merge pull request #441 from stackhands/test/trim-suite
HaoZeke Nov 26, 2026
fd9dcaf
Merge branch 'develop' into test/zero-skips-strict-env
HaoZeke Nov 26, 2026
3b2d241
Merge pull request #410 from stackhands/test/zero-skips-strict-env
HaoZeke Nov 26, 2026
af4858e
Merge pull request #446 from stackhands/feat/build-variants
HaoZeke Nov 26, 2026
ece7dbf
fix: report submit script sync and close errors
HaoZeke Nov 26, 2026
3d4c4b2
fix: refuse `--variant` on other commands
HaoZeke Nov 26, 2026
aecc5a5
Merge pull request #448 from stackhands/fix/submit-script-close
HaoZeke Nov 26, 2026
0b732f0
feat(mask): generators for CPUID rules and mask profiles
HaoZeke Nov 26, 2026
1533e4f
feat(mask): CPUID mask preload source and generated profiles
HaoZeke Nov 26, 2026
cdd29cc
feat(mask): armmask preload, CPUID probe and EasyBuild hook for the G…
HaoZeke Nov 26, 2026
87fa0c1
feat(audit-isa): generator and data tables for the ISA audit
HaoZeke Nov 26, 2026
1038a31
fix: apply `--profile` in `profiles`
HaoZeke Nov 26, 2026
e7af8d1
feat(audit-isa): disassemble ELF files and report instructions beyond…
HaoZeke Nov 26, 2026
f73780e
feat(audit-isa): dispatch the audit-isa command from main
HaoZeke Nov 26, 2026
eda6091
feat: --cpu-target and --mask build for another CPU target
HaoZeke Nov 26, 2026
7216f14
fix(submit): quote apostrophes in `#SBATCH` paths
HaoZeke Nov 26, 2026
c24a4c1
feat: __vm-run runs a command under a virtual CPU that presents a target
HaoZeke Nov 26, 2026
51c0aae
fix(mask): CPUID probe reads the extended model for the base family i…
HaoZeke Nov 26, 2026
81b7353
fix: __vm-run checks the EESSI version eb-local itself defaults to
HaoZeke Nov 26, 2026
9d8b3ec
test: __vm-run refusals everywhere, VM runs behind EB_LOCAL_VM_TESTS=1
HaoZeke Nov 26, 2026
0dd5d34
test(audit-isa): unit tests for the tables, line parser and alias han…
HaoZeke Nov 26, 2026
014245b
fix: read the gcc native target without ending the pipe early
HaoZeke Nov 26, 2026
9ae9110
fix: copy NUL-terminated strings with dupeSentinel in __vm-run
HaoZeke Nov 26, 2026
6970130
fix(audit-isa): keep the smaller requirement of vector forms that dif…
HaoZeke Nov 26, 2026
441a146
fix: write the build-mode record into the read-only installation dire…
HaoZeke Nov 26, 2026
e2ccef5
fix: __vm-run states a refusal once and names the compiler it asked
HaoZeke Nov 26, 2026
2318bd8
docs: __vm-run reference, environment variables and the QEMU how-to
HaoZeke Nov 26, 2026
dc782d7
fix: a build drops the cpu-target variables from the caller's shell
HaoZeke Nov 26, 2026
0c31522
docs: build for another CPU target, --cpu-target and --mask reference
HaoZeke Nov 26, 2026
d0b7ad2
docs: reword the another-CPU guide
HaoZeke Nov 26, 2026
d25bfe7
docs(audit-isa): command reference, JSON schema, README line and chan…
HaoZeke Nov 26, 2026
f7b6751
docs(audit-isa): shorten the changelog entry
HaoZeke Nov 26, 2026
d28ae81
test(audit-isa): command-line tests on recorded disassembly and on zi…
HaoZeke Nov 26, 2026
a1cf3da
docs: document every public declaration of the __vm-run helper
HaoZeke Nov 26, 2026
c8853a2
test: --cpu-target options, refusals and the preflight
HaoZeke Nov 26, 2026
4fb3bc1
test: the doctor report names CPUID on every architecture
HaoZeke Nov 26, 2026
1203d87
fix(audit-isa): resolve --objdump as a path or a name
HaoZeke Nov 26, 2026
9e6fb8e
test(audit-isa): match whole feature names
HaoZeke Nov 26, 2026
fbb0651
fix: keep the mask helpers out of the command list, document the publ…
HaoZeke Nov 26, 2026
1869c19
docs(audit-isa): document the public declarations
HaoZeke Nov 26, 2026
5299733
test: define the __vm-run VM runs only under EB_LOCAL_VM_TESTS=1, so …
HaoZeke Nov 26, 2026
f796950
test: run the __vm-run unit tests
HaoZeke Nov 26, 2026
cdc5efe
test: index the -smp and -m arguments where qemuArgv puts them
HaoZeke Nov 26, 2026
9eba33a
test: usage refusals exit 2
HaoZeke Nov 27, 2026
9a76152
Merge origin/develop into feat/cpu-target
HaoZeke Nov 27, 2026
e713992
Merge remote-tracking branch 'origin/feat/isa-audit' into stack/cpu-t…
HaoZeke Nov 27, 2026
a665423
Merge feat/cpu-target into feat/cpu-target-vm
HaoZeke Nov 27, 2026
cfeb705
feat(cpu-target): map __vm-run statuses, add --mask-allow-archspec-mi…
HaoZeke Nov 27, 2026
c2457d9
docs: name EB_LOCAL_ALLOW_ARCHSPEC on the environment page
HaoZeke Nov 27, 2026
3bdc7ac
fix(audit-isa): list zlib-ng's run-time dispatched AVX-512 kernels as…
HaoZeke Nov 27, 2026
0d7abb3
docs(cpu-target): word the GMX_SIMD log line so Org 9.7 and 9.8 expor…
HaoZeke Nov 27, 2026
9f5fd88
Merge pull request #449 from stackhands/fix/variant-other-command
HaoZeke Nov 27, 2026
efe8237
fix: publish dev lock only after durable close
HaoZeke Nov 27, 2026
ec2bb08
Merge remote-tracking branch 'origin/feat/isa-audit' into stack/cpu-t…
HaoZeke Nov 27, 2026
6a786d2
Merge branch 'stack/cpu-target' into stack/cpu-target-vm
HaoZeke Nov 27, 2026
1138cb3
docs: name `submit` for `--variant`
HaoZeke Nov 27, 2026
9260998
fix(cpu-target): the kvm and tcg routes see the built-in __vm-run helper
HaoZeke Nov 27, 2026
2a48f85
fix(cpu-target): the kvm and tcg preflight reads the guest vendor fro…
HaoZeke Nov 27, 2026
e662685
fix(cpu-target): the aarch64 preflight reads the CPU name before the …
HaoZeke Nov 27, 2026
f157f6b
fix(secrets): redact logs written within one second before the build …
HaoZeke Nov 27, 2026
cb6e4ce
ci(cpu-target): check the aarch64 mask on real Arm silicon
HaoZeke Nov 27, 2026
f64c9b9
ci(cpu-target): run the arm-mask job on every push
HaoZeke Nov 27, 2026
214288d
fix(vm-run): the zen3 guest carries vaes and vpclmulqdq so archdetect…
HaoZeke Nov 27, 2026
14ca2a0
ci(cpu-target): build a recipe as a Neoverse N1 on the Arm runner wit…
HaoZeke Nov 27, 2026
17f747b
test(vm-run): zen2, zen3, neoverse_v1 and a64fx under kvm and tcg
HaoZeke Nov 27, 2026
2b2bea0
fix(cpu-target): the preflight in a virtual machine knows neoverse_v1…
HaoZeke Nov 27, 2026
023d69f
docs(audit-isa): publish the JSON schema beside the exported reference
HaoZeke Nov 27, 2026
1642a13
Merge remote-tracking branch 'origin/feat/isa-audit' into tmp/feat/cp…
HaoZeke Nov 27, 2026
9bf34e4
Merge remote-tracking branch 'origin/feat/cpu-target' into tmp/feat/c…
HaoZeke Nov 27, 2026
c00b2c8
docs(cpu-target): wall times for zen2, zen3, neoverse_v1 and a64fx, a…
HaoZeke Nov 27, 2026
5dad022
Merge pull request #450 from stackhands/feat/isa-audit
HaoZeke Nov 27, 2026
d3ce39c
Merge pull request #451 from stackhands/feat/cpu-target
HaoZeke Nov 27, 2026
1736d0b
Merge pull request #453 from stackhands/fix/profiles-option
HaoZeke Nov 27, 2026
b62dc43
ci(workstation): fetch the pigz source with retries and a checksum ch…
HaoZeke Nov 27, 2026
8f2c3bd
Merge pull request #452 from stackhands/feat/cpu-target-vm
HaoZeke Nov 27, 2026
f85ebe8
Merge pull request #454 from stackhands/fix/submit-sbatch-apostrophe
HaoZeke Nov 27, 2026
4df9edf
Merge pull request #455 from stackhands/fix/dev-lock-publish
HaoZeke Nov 27, 2026
3ce00f3
Merge branch 'develop' into docs/variant-submit-carveout
HaoZeke Nov 27, 2026
81325fb
Merge pull request #456 from stackhands/fix/docs/variant-submit-carveout
HaoZeke Nov 27, 2026
737edeb
Merge origin/develop into feat/cpu-target-coverage
HaoZeke Nov 27, 2026
b9c4e21
chore(deps): move zig-common to v0.14.0
HaoZeke Nov 27, 2026
87488ac
fix: report a path that cannot be made absolute
HaoZeke Nov 27, 2026
1a7c4e5
docs: these pages describe release 3.6.0
HaoZeke Nov 27, 2026
7224d51
chore(version): v3.6.0
HaoZeke Nov 27, 2026
fff6619
feat(audit): allow the AVX-512 FMA timing loops of a GROMACS build be…
HaoZeke Nov 27, 2026
13bfc36
fix(sbom): name a dependency pinned by tag and commit
HaoZeke Nov 27, 2026
922dbeb
Merge remote-tracking branch 'origin/feat/cpu-target-coverage' into c…
HaoZeke Nov 27, 2026
0591918
docs(changelog): the cpu-target coverage fixes under 3.6.0
HaoZeke Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .github/workflows/arm-mask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: arm-mask
# The cpuid route's aarch64 mask on real Arm silicon. ubuntu-24.04-arm runs on
# Neoverse cores, so getauxval, /proc/cpuinfo and gcc -mcpu=native here are the
# real readings the mask rewrites.
on: [push, pull_request]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
arm-mask:
name: arm-mask
runs-on: ubuntu-24.04-arm
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- name: Allow the user and mount namespaces the mask runs in
run: |
set -euo pipefail
if [ "$(sysctl -n kernel.apparmor_restrict_unprivileged_userns 2>/dev/null || echo 0)" != "0" ]; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
- name: Which Arm core this runner is
run: |
set -euo pipefail
uname -m
grep -m1 'CPU implementer' /proc/cpuinfo
grep -m1 'CPU part' /proc/cpuinfo
grep -m1 '^Features' /proc/cpuinfo
lscpu | sed -n 's/^Model name: */model name: /p'
- name: release build
run: zig build --release=safe --prefix "$RUNNER_TEMP/eb-local"
- name: doctor reports the cpuid route for aarch64
run: |
set -euo pipefail
"$RUNNER_TEMP/eb-local/bin/eb-local" doctor --cpu-target aarch64/neoverse_n1 || true
- name: getauxval, /proc/cpuinfo and gcc -mcpu=native name the target under the mask
run: tools/mask/check_arm_mask.sh "$RUNNER_TEMP/eb-local/bin/eb-local" aarch64/neoverse_n1 aarch64/generic
# The whole path with EESSI mounted: preflight against EESSI archdetect,
# archspec and gcc, a build of a recipe, the ISA audit and the provenance record.
arm-mask-build:
name: arm-mask-build
runs-on: ubuntu-24.04-arm
timeout-minutes: 45
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- name: Allow the user and mount namespaces the mask runs in
run: |
set -euo pipefail
if [ "$(sysctl -n kernel.apparmor_restrict_unprivileged_userns 2>/dev/null || echo 0)" != "0" ]; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
- name: release build
run: zig build --release=safe --prefix "$RUNNER_TEMP/eb-local"
- name: EESSI mount, without initialising EESSI
uses: EESSI/github-action-eessi@834df09f7d60de47f10a7cbf59b470d69b9e2852 # v3.4.0
with:
eessi_stack_version: "2026.06"
mount_cvmfs_only: "true"
- name: build pigz as a Neoverse N1 on a Neoverse N2
run: |
set -euo pipefail
export PATH="$RUNNER_TEMP/eb-local/bin:$PATH"
eb-local --workstation --cpu-target aarch64/neoverse_n1 pigz-2.8-GCCcore-15.2.0.eb --robot 2>&1 | tee build.log
grep -F 'eb-local: --cpu-target aarch64/neoverse_n1, cpuid route' build.log
grep -F 'preflight ok: EESSI archdetect names aarch64/neoverse_n1' build.log
grep -F 'preflight ok: archspec names neoverse_n1' build.log
grep -F 'preflight ok: gcc -mcpu=native is neoverse-n1' build.log
! grep -F 'preflight FAILED' build.log
- name: the install is labelled for the target and the audit passed
run: |
set -euo pipefail
record=$(find "$HOME/eessi/versions" -path '*/aarch64/neoverse_n1/software/pigz/*/easybuild/eb-local-build-mode.json' | head -n 1)
test -n "$record"
cat "$record"
grep -F '"cpu_target": "aarch64/neoverse_n1"' "$record"
grep -F '"route": "cpuid"' "$record"
grep -F '"isa_audit": "pass"' "$record"
59 changes: 59 additions & 0 deletions .github/workflows/workstation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: workstation
# The path a user without a cluster takes: a GitHub-hosted runner with the
# EESSI mount and no Slurm builds a recipe with the release build of
# eb-local, then lists what it installed.
on:
pull_request:
push:
branches: [main, develop]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-a-recipe:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- name: release build
run: zig build --release=safe --prefix "$RUNNER_TEMP/eb-local"
- name: EESSI mount, without initialising EESSI
uses: EESSI/github-action-eessi@834df09f7d60de47f10a7cbf59b470d69b9e2852 # v3.4.0
with:
eessi_stack_version: "2026.06"
mount_cvmfs_only: "true"
- name: no Slurm on this runner
run: |
! command -v sbatch
! env | grep -q '^SLURM_'
- name: fetch the pigz source, checked
# The download from zlib.net intermittently gives the runner a file
# that fails EasyBuild's checksum; fetch it here with retries and put
# the verified tarball where eb-local's source path looks first.
run: |
want=eb872b4f0e1f0ebe59c9f7bd8c506c4204893ba6a8492de31df416f0d5170fd0
dir="$HOME/eessi/.eb-local/sources/p/pigz"
mkdir -p "$dir"
for i in 1 2 3 4 5 6; do
curl -fsSL --retry 3 -o "$dir/pigz-2.8.tar.gz" https://zlib.net/pigz/pigz-2.8.tar.gz || true
if [ "$(sha256sum "$dir/pigz-2.8.tar.gz" | cut -d' ' -f1)" = "$want" ]; then exit 0; fi
echo "attempt $i: checksum mismatch"; sleep $((i * 10))
done
exit 1
- name: build pigz on the runner
run: |
export PATH="$RUNNER_TEMP/eb-local/bin:$PATH"
eb-local pigz-2.8-GCCcore-15.2.0.eb --robot
- name: the install is listed for this runner's CPU target
run: |
export PATH="$RUNNER_TEMP/eb-local/bin:$PATH"
eb-local list | tee list.txt
grep -q 'pigz/2.8-GCCcore-15.2.0' list.txt
91 changes: 69 additions & 22 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: zig
# The Zig build: its unit tests, and the command-line suite of the Bash
# script run against the -Dtest-ops test artifact, on both architectures.
# The Zig build: its unit tests, and the full command-line suite run with zero
# skips against the -Dtest-ops test artifact, on both architectures.
on: [push, pull_request]
permissions:
contents: read
Expand All @@ -21,13 +21,58 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
python-version: "3.14"
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- name: Install host test dependencies
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y --no-install-recommends zsh emacs-nox
if [ "$(sysctl -n kernel.apparmor_restrict_unprivileged_userns 2>/dev/null || echo 0)" != "0" ]; then
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
fi
- name: Install eb-stack 0.8.0
run: |
set -euo pipefail
case "$(uname -m)" in
x86_64)
archive=eb_stack-x86_64-unknown-linux-musl.tar.xz
sha256=0df22a1371be00294ab9e0fa50b5966dda4b39a2d9bd77c9c31cff0627208555
;;
aarch64)
archive=eb_stack-aarch64-unknown-linux-gnu.tar.xz
sha256=99c8b76fca2b47d080c35c7e2d4d0379bc791a91d41341212918072e0daaaad8
;;
*)
echo "unsupported architecture: $(uname -m)" >&2
exit 1
;;
esac
install_dir="${RUNNER_TEMP:-/tmp}/eb-stack-0.8.0"
rm -rf "$install_dir"
mkdir -p "$install_dir"
curl --proto '=https' --tlsv1.2 -fsSL "https://github.com/stackhands/eb-stack/releases/download/v0.8.0/$archive" -o "$install_dir/$archive"
printf '%s %s\n' "$sha256" "$install_dir/$archive" | sha256sum --check -
tar -xJf "$install_dir/$archive" -C "$install_dir"
rm -f "$install_dir/$archive"
bin_dir="$install_dir/${archive%.tar.xz}"
"$bin_dir/eb-stack" --version | grep -Fx "eb-stack 0.8.0"
echo "$bin_dir" >> "$GITHUB_PATH"
- run: zig fmt --check src build.zig
- run: zig build unit --summary all
- run: zig build -Dtest-ops=true test --summary all
- run: zig build -Dtest-ops=true
# tests/site is not a package, so this discover leaves out
# tests/site/test_dev_locked_eessi.py. The live-eessi job runs
# that file. A missing mount fails the file.
- name: Run full Python suite with zero skips
run: |
set -euo pipefail
log="$(mktemp)"
trap 'rm -f "$log"' EXIT
EB_LOCAL_REQUIRE_TOOLS=1 EB_LOCAL_BIN="$PWD/zig-out/bin/eb-local" python3 -m unittest discover -s tests -v 2>&1 | tee "$log"
! grep -Eq '\.\.\. skipped |skipped=[0-9]+' "$log"
- name: a release build carries no test seam
run: |
zig build --release=safe --prefix out
Expand All @@ -47,39 +92,41 @@ jobs:
! grep -aq EB_LOCAL_TEST_FSYNC_COUNT out/bin/eb-local
! grep -aq EB_LOCAL_TEST_RECORD_OPEN_ERRNO out/bin/eb-local
out/bin/eb-local --version
- name: overlay bump and plan run the real eb-stack on the release build
run: EB_LOCAL_BIN="$PWD/out/bin/eb-local" python3 -m unittest discover -s tests -p 'test_overlay_real_eb_stack.py' -v
- name: completion and manpage generation is reproducible
run: python3 tools/cli_assets.py --check-repro --tool "eb-local::./out/bin/eb-local"
- name: generate completion and manpage assets
run: |
python3 tools/cli_assets.py --out out/share --tool "eb-local::./out/bin/eb-local"
test -s out/share/man/eb-local.1

real-eb-stack:
# The tests that read EB_STACK_BIN skip without it, and no other job sets
# it. This one gives them the released eb-stack.
name: overlay against eb-stack 0.8.0
live-eessi:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 45
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
python-version: "3.14"
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.17.1
- name: Install eb-stack 0.8.0
- name: Build eb-local
run: zig build
- name: Mount EESSI 2026.06
uses: EESSI/github-action-eessi@834df09f7d60de47f10a7cbf59b470d69b9e2852 # v3.4.0
with:
eessi_stack_version: "2026.06"
# lmod init, the path the live file defaults to. direnv stays off.
use_eessi_module: "true"
init_direnv: "false"
- name: Run the live file on the init path the action records
run: |
set -euo pipefail
archive=eb_stack-x86_64-unknown-linux-musl.tar.xz
curl --proto '=https' --tlsv1.2 -fsSLO "https://github.com/stackhands/eb-stack/releases/download/v0.8.0/$archive"
printf '%s %s\n' 0df22a1371be00294ab9e0fa50b5966dda4b39a2d9bd77c9c31cff0627208555 "$archive" | sha256sum --check -
tar -xJf "$archive"
echo "EB_STACK_BIN=$PWD/eb_stack-x86_64-unknown-linux-musl/eb-stack" >> "$GITHUB_ENV"
- name: The binary is the release
run: '"$EB_STACK_BIN" --version | grep -Fx "eb-stack 0.8.0"'
- run: zig build --release=safe --prefix out
- name: overlay bump and plan run the real eb-stack
run: EB_LOCAL_BIN="$PWD/out/bin/eb-local" python3 -m unittest discover -s tests -p 'test_overlay_real_eb_stack.py' -v
init=$(sed -n 's/^source //p' "$HOME/env_config.export")
test -f "$init"
EB_LOCAL_BIN="$PWD/zig-out/bin/eb-local" \
EB_LOCAL_LIVE_EESSI_INIT="$init" \
python3 -m unittest tests/site/test_dev_locked_eessi.py -v
Loading
Loading