Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
47 changes: 47 additions & 0 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ jobs:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Every integration test that is not ignore-only
run: |
cargo test --locked \
Expand Down Expand Up @@ -228,6 +231,7 @@ jobs:
--test module_tree_dump_script \
--test oom_profile \
--test optimisation_criteria \
--test parity_audit_script \
--test pr_merge_order \
--test pr_overlap \
--test pr_overlap_arch \
Expand All @@ -252,6 +256,49 @@ jobs:
--test source_probe \
-- --nocapture

parity-corpus:
name: parity audit (pinned easyconfigs corpus)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v6
with:
python-version: '3.14'
# A virtual environment keeps eb off PATH for the cargo build.
- name: Install locked EasyBuild
run: |
python -m venv "$RUNNER_TEMP/easybuild"
"$RUNNER_TEMP/easybuild/bin/python" -m pip install --require-hashes --only-binary :all: \
-r scripts/easybuild-build-requirements.txt
"$RUNNER_TEMP/easybuild/bin/python" -m pip install --require-hashes --no-build-isolation \
-r scripts/easybuild-requirements.txt
- name: Corpus pin
id: pin
run: |
python -c 'import json; print("commit=" + json.load(open("scripts/parity-audit-corpus-baseline.json"))["easyconfigs_commit"])' >> "$GITHUB_OUTPUT"
- uses: actions/cache@v6
with:
path: ${{ runner.temp }}/parity-corpus
key: parity-corpus-easyconfigs-${{ steps.pin.outputs.commit }}
- name: Build eb-stack
run: cargo build --locked
- name: Audit the pinned corpus against its baseline
env:
PYTHON: ${{ runner.temp }}/easybuild/bin/python
run: |
scripts/parity-audit-corpus.sh "${{ runner.temp }}/parity-corpus" \
--eb-stack target/debug/eb-stack \
--out parity-corpus-report.json
- uses: actions/upload-artifact@v7
if: always()
with:
name: parity-corpus-report
path: parity-corpus-report.json
if-no-files-found: ignore

cli-smoke:
name: CLI smoke (package bundle + recipe checks)
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-baseline.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`scripts/parity_audit.py --baseline` compares a run with a recorded set of expected mismatches, by recipe and field, and fails on any new or no-longer-occurring one; `--write-baseline` records it.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-class-names.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Decode easyblock class names with EasyBuild's own `decode_class_name`, so the parity audit targets recipes such as `FFTW.MPI` whose easyblock class name encodes punctuation.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-config-fail-closed.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fail the parity audit when EasyBuild's `set_up_configuration` raises, instead of continuing on a partial configuration.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-corpus-ci.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI audits a pinned easybuild-easyconfigs corpus (the v5.4.2 release commit, seed 20261120, 100 sampled recipes plus every targeted one) with `scripts/parity-audit-corpus.sh`, from a cached shallow fetch of that commit, and compares the result with `scripts/parity-audit-corpus-baseline.json`.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-dep-identity.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Compare parity-audit dependencies by name, version, and toolchain.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-easyblock-exit.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When an easyblock or easyconfig raises `SystemExit`, `scripts/parity_audit.py` records an EasyBuild error for that recipe. The audit then writes its report and exits non-zero, instead of stopping early with the easyblock's exit status.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-easyblock-hooks.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`scripts/parity_audit.py` now runs the easyblock of every targeted recipe: it writes the module with `make_module_step(fake=True)` and compares the module name, module loads and `EBVERSION` with what eb-stack resolved. `--include-easyblocks` adds site easyblocks to discovery and to EasyBuild. A bare `python` run by an easyblock, as `PythonPackage` does, resolves to the audit's own interpreter.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-easyblock-hooks.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Raise the default parity audit sample to 2000 seeded recipes, and find the easyblocks that hook module naming, version templates or toolchains by parsing them.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-easyblock-prepare.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prepare targeted easyblocks as `eb --module-only --force` does, with `post_init` and the run-step templates, before the parity audit writes their modules.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-easybuild-hashes.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lock the parity audit's EasyBuild install, including the setuptools build backend, to exact versions with sha256 hashes and install it with `--require-hashes`.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-easybuild-pin.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pin the EasyBuild framework and easyblocks versions the parity audit installs.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-external-deps.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Leave external-module dependencies out of both sides of the parity audit.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-external-marker.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Every `recipe parity-audit` dependency record now carries an `external_module` marker, and the parity comparator requires it. An external module that eb-stack resolves to an in-tree build is reported instead of matched by identity.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-framework.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Parity audits report a dependency whose toolchain is empty and a dependency only eb-stack resolves, instead of skipping them, and a real EasyBuild run covers a GCCcore dependency and an empty toolchain.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-harness.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the reproducible EasyBuild parity audit script under scripts/ together with its generated-fixture integration test and hidden recipe parity-audit export subcommand.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-module-load-order.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`scripts/parity_audit.py` compares generated module loads without regard to order, since a recipe that gives its dependencies as a set gets them written in hash order.
1 change: 1 addition & 0 deletions changelog.d/+parity-audit-test-helpers.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Build the early ToolA parity comparator tests from the shared truth, stack and runner helpers.
Loading