diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index cb841c6..a2e73c7 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -109,13 +109,10 @@ jobs: cache-dependency-path: pyproject.toml - name: Install the package and test dependencies run: python -m pip install --upgrade pip ".[dev,fast,contact]" - - name: Run the whole suite with line and branch coverage, kernels traced - # Functions compiled by numba run outside the coverage tracer, so the kernel - # tests run a second time with NUMBA_DISABLE_JIT=1 and are appended. - run: python release/check_coverage.py --fail-under 95 - name: The committed validation report is current # The script exits non-zero while registered benchmark rows fail; the step - # fails only if the committed report differs from the live calculation. + # fails only if the committed report differs from the live calculation. It runs + # before the coverage run (about 45 min), so a stale report fails within minutes. shell: bash run: | set +e @@ -123,6 +120,10 @@ jobs: status=${PIPESTATUS[0]} if grep -q "validation artefacts are stale" validation-check.txt; then exit 1; fi echo "run_validation exit status ${status} (registered FAIL rows are expected)" + - name: Run the whole suite with line and branch coverage, kernels traced + # Functions compiled by numba run outside the coverage tracer, so the kernel + # tests run a second time with NUMBA_DISABLE_JIT=1 and are appended. + run: python release/check_coverage.py --fail-under 95 - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: always() with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 26e7642..39649ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -181,6 +181,11 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Changed +- The validation report's test-taxonomy lines record the passed count only: the deselected + count is the rest of the suite, so a test added anywhere else marked the committed report + stale without changing a gate. CI checks the committed report before the coverage run, so a + stale report fails within about 15 minutes instead of after the 45-minute coverage run. + - The distributed helix friction model (`friction_model="distributed"`, and `"auto"` on non-planar paths) runs about three times faster on the 66 kV template. `compute_fatigue` on one thread, warm, an hour of the 66 kV template at 10 Hz (36 001 samples, both armour diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index 731f7aa..f5469af 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -1848,10 +1848,10 @@ def _taxonomy_counts() -> dict[str, str]: if not summaries: raise RuntimeError(f"pytest taxonomy {marker!r} emitted no pass summary") stable_summary = summaries[-1].split(" in ", maxsplit=1)[0] + # The passed count only: the deselected count is the rest of the suite, so a test + # added anywhere else would mark the report stale without changing a gate. stable_parts = [ - part.strip() - for part in stable_summary.split(",") - if "passed" in part or "deselected" in part + part.strip() for part in stable_summary.split(",") if "passed" in part ] out[marker] = ", ".join(stable_parts) return out diff --git a/validation/validation_report.md b/validation/validation_report.md index 0f6ab86..a569bd4 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -67,9 +67,9 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) -- analytical_sanity: `1153 passed, 3250 deselected` -- independent_method: `76 passed, 4327 deselected` -- full_scale: `31 passed, 4372 deselected` +- analytical_sanity: `1153 passed` +- independent_method: `76 passed` +- full_scale: `31 passed` Run `pytest -m ` to reproduce each group.