Grok review r1 for #685: the concept_pack budget (65 s) came from one sample
of a heap-sensitive test and was already exceeded (83.89 s). Owned budgets
are re-derived from the slowest of all five hosted release samples
(45678651612 both lanes; 45696135376 py3.11 head, py3.12 head and base):
concept_pack 105 s and recipe_application v2 35 s, the rest unchanged.
smaller_change low_variance and failing_collateral are owned at 20 s. The
CONTRIBUTING owned-tests section covers all 24 and states the rule.
Rebaselines the release suite and marker duration budgets to the slowest
measured hosted release time + 25% (run 45678651612; suite 3910 s on py3.11
and 5340 s on py3.12; cpu 2010, integration 700, unmarked 2460) and owns every
test whose time + 25% exceeds 15 s under #679 with a 90-day review (follow-up
#684). Speeds up test_smaller_change rank1 (geometry environments built lazily)
and the recipe-search fake edit step (a light helper module). The PR core gate
now enforces per-test budgets on each shard's JUnit with a new
--testcase-budgets-only mode; suite and marker totals stay release-only.
Refs #679
Make the committed Nix test environment usable by others and by CI.
- .github/workflows/nix-parity.yml installs Nix from the official
release installer, pinned by version and SHA-256 (recorded in
ci/digests.txt; the installer verifies the tarball hashes it embeds),
checks the flake outputs and runs a parity smoke set on Python 3.12
and 3.13. Release-gate tests run only on 3.12, the release
interpreter. It triggers on changes to the flake, lock, pyproject,
.envrc or the workflow, and on dispatch; it is not a required check.
- .envrc (`use flake`) loads the 3.12 shell for direnv users.
- tests/test_nix_parity_policy.py keeps the flake's uv pin, CI extras,
non-editable install and marker filter in step with ci.yml, and the
workflow's action and installer pins in step with ci/digests.txt.
- A nix-test-environment contract surface maps the flake, lock, .envrc,
workflow and doc to that test.
- docs/NIX_TEST_ENVIRONMENT.md gains direnv and CI sections;
CONTRIBUTING and README point to the flake, and CONTRIBUTING's
supported-interpreter line now matches pyproject (3.11+, CI and
release on 3.11 and 3.12).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The placeholder 80 s export_gloo weight and 2026-10-07 durations
under-weighted shard 0, which ran out of its ten-minute job on a slow
runner. Record per-file sums from the py3.12 release shards (the slowest
Python) and split the release lane into four shards: the largest is now
238 s of measured work instead of ~360 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Gloo sharded, the release lane measures what no release run had
checked since v0.1.3: mature-CPU line coverage is 91.79% (floor 94%; branch
84.66% still passes), and the suite takes 990-1042 s against a 350 s
budget, with five tests over the 15 s limit.
Per the maintainer decision tracked in #304:
- move mature_cpu_statement to 91.5 behind a threshold exception that
expires 2026-11-14;
- raise suite and marker duration budgets to measured values plus ~20% and
own the eight tests at or above 14 s until the same date;
- make threshold exceptions expire for real: the validator ignored the
expires date, so a lapsed exception would have kept a lowered floor.
Python 3.12 also exceeded thirty minutes because it reran the exact base
suite inline. Run that suite in a parallel release-base-core job and only
combine its coverage in Tests py3.12. The combiner now includes
subprocess coverage siblings of the core data file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release Tests lane no longer fits its ten-minute job: hosted runs now
take about 9.6 min for core tests plus 13.2 min for Gloo tests, and Python
3.12 also reruns the exact base suite. A dispatched run reached 43% before
the timeout cancelled it.
Run Gloo tests in release-gloo-tests shards (three per Python version, plus
base shards for the 3.12 exact-base comparison), each bounded at ten
minutes. The Tests job excludes Gloo, requires the collected Gloo test count
to equal the executed count across shards, combines shard coverage before
the unchanged floors, and moves to a thirty-minute bound.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #272 the "PR core tests" job runs every selected non-Gloo test in
one runner under a 10-minute timeout, and broad selections now exceed it.
Shard it like the Gloo tests: pr-select emits core_shards from a single
CORE_SHARD_COUNT constant and writes selected-core-N.txt once with
scripts/shard_pr_tests.py --kind core, balanced by per-file durations
measured from CI JUnit (ci/core-test-durations.json; unlisted files use
default_seconds). pr-core-tests becomes a matrix whose empty shards record
exit code 5, and check_pr_partitions.py requires the exact core-N and
gloo-N artifact set before "Pull request core" combines coverage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>