Adds focused tests for the #674/#682 rollback refusals, uncertain-publish
identity checks, held-staging cleanup races and digest manifest validation:
persistence_contracts.py coverage goes from 97.14/96.07 to 99.80/99.44
(line/branch), above the 97.80/96.88 base. The release comparison base for a
synced branch head (a merge commit that is neither main nor a tag) is now its
merge base with main instead of HEAD^, so changes brought in from main are not
counted as the branch's regressions; main and tag pushes still use the first
parent. No production code changes.
Refs #679
Adds focused tests for the lines the release run left uncovered in
evaluation/evaluator.py, recipes/search.py, recipes/search_cli.py and
study_presets.py after #676/#677, so touched-module line and branch coverage
is back at or above the comparison base (run 45690313651). Raises the Quality
depth job timeout from 45 to 60 minutes; the 85% mutation floor and every
other threshold are unchanged.
Refs #679
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
All 22 supply-chain secret-scan hits were false positives: a public
Llama-3.2-1B commit id under a "tokenizer_revision" key, and SHA-256 digests of
tokenizer fixture files keyed by filename. numeric_geometry_spec uses one
module constant for the commit (values unchanged). The analysis-first evidence
JSONs record hashes as ordered {"path","sha256"} lists (all 63 values
preserved, verified), and the two writers emit the same shape. CI scans the
clean checkout before uv sync builds into the workspace. No allowlist, ignore
file or inline allow comment is added.
Refs #679
Single-user (--no-daemon) installs ignore --nix-extra-conf-file, so
nix-command and flakes stayed disabled and 'nix flake check' failed.
Set NIX_CONFIG at workflow level instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Prepare only locked dependencies in owned release environments before installing the exact project. Preserve verified wheel-supplied caches outside import paths, require zero caches before compilation, and bind generated cache bytes to source and retained diagnostics.
Keep project caches forbidden, preserve the no-write startup policy, sanitize inherited compilation settings, and retain bootstrap evidence separately without changing test selection or release gates.
Refs #306
Release-lane Tests py3.10/3.11 failed in two-rank thread worlds with
"Cannot install a trace function while another trace function is being
installed". CPython before 3.12 guards sys.settrace with a process-wide
reentrancy flag and runs audit hooks while it is set; filelock installs a
Python audit hook, so the GIL can switch inside that window and a second
thread starting under coverage's threading.settrace hook fails in
threading._bootstrap_inner. Python 3.12 coverage uses sys.monitoring and is
unaffected.
On Python < 3.12, make Thread.start return only once the new thread reaches
run(), i.e. after its trace function is installed. Locally on 3.11 with
coverage the distributed CPU tests went from 3 failures in 4 runs to 3/3
green.
Also let the always-run trend step tolerate missing Gloo shard files after
an earlier failure.
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>
Review findings on the sharded release lane:
- Base partitions record paths in the workspace checkout, but the base
report is produced from the base worktree, so it would read head sources.
Combine with a [paths] alias onto the reporting tree and reject any
report key outside obliteratus/.
- Only one Gloo coverage file was required. Require the data file of every
shard whose JUnit ran at least one test.
- Gloo testcases left the duration evidence. Merge the head shard JUnit
files into the trend input; size the unmarked and integration marker
budgets from the merged hosted evidence (+~20%) and own the one Gloo
test at 15.8 s under #304.
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>
Excluding the qwen-hybrid extra would have dropped causal-conv1d,
flash-linear-attention and fla-core from the release license inventory
without any failure. Instead, install causal-conv1d without CUDA kernels via
its own CAUSAL_CONV1D_SKIP_CUDA_BUILD switch in the operator-UI gate and the
supply-chain job.
The full inventory then needs two permissive SPDX expressions (MIT-0 for
cffi, Apache-2.0 OR BSD-3-Clause for cryptography, both via the mcp extra)
and a strict mechanism for packages whose metadata carries verbatim license
text: a text override binds one package version and the SHA-256 of the
exact text to an already allowed expression, and fails when unused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scheduled Conditional tests have failed since late August on two hosted
gates, which also blocks release certification:
- model-download-runtime: the operator-only Qwen3.8-27B BF16 regression
lived in the gate file and always skips on hosted runners; the gate
runner rejects any skip. Move it to tests/conditional/test_qwen38_runtime.py,
outside every hosted gate.
- operator-ui: `uv sync --all-extras` now pulls the qwen-hybrid extra,
whose causal-conv1d sdist builds only against a CUDA toolkit. Exclude
qwen-hybrid there and in the tag-only supply-chain job, which runs the
same sync and would fail the next release.
Policy tests pin both invariants.
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>
PR #274's first CI run took 428s of pytest time on Gloo shard 1, close to
the 8-minute budget. Per-file JUnit sums from that run
(149/81/84/178/221s) replace the placeholders. With three shards the
largest is about 259s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Gloo partition reached 7m38s of pytest time on one runner with the
EXCISE tests added (PR #273 run 37692044335). Use two duration-balanced
shards and record the measured surgery Gloo duration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coverage combine only warns on an unreadable input and still combines
the rest, so validate each accepted partition database (readable,
coverage schema, at least one measured file) and fail on any combine
warning. The policy test now pins one positive shard-count constant
rather than its current value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the in-job concurrent pytest processes with separate jobs, each
with its own runner and 10-minute budget. PR test selection runs once
and publishes the selected list and deterministic duration-balanced
Gloo shard lists (shard count is one constant). PR core tests and the
PR gloo tests matrix upload candidate-bound status, JUnit, logs and
coverage data. The required Pull request core job needs all three,
runs always(), fails closed unless every upstream job succeeded and
every partition that ran supplied coverage, combines accepted data in
an isolated directory, and runs the unchanged changed-line floor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coverage.py auto-combines sibling .coverage.* files when reporting, so
an empty partition's leftover data could re-enter the report. Combine
into a fresh directory that holds only the combined database.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A partition that exits 0 must contribute its coverage data; only an
empty partition (exit 5) may be absent from the combine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two real CI runs (37676597269 attempts 1 and 2) showed that two
concurrent Gloo shards oversubscribe the 4-vCPU hosted runner: each
shard took about as long as the whole single Gloo partition did (4m20s
to 4m36s), the core partition slowed from about 50s to 1m40s, and one
cold-start readiness bound failed. Test-step wall time did not improve
(4m38s to 4m40s versus 4m32s to 5m57s). Restore the two-process design.
This reverts commits 8681ef7 and 7f8a2d7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Split the selected test files into two Gloo shards by deterministic
longest-first assignment over a committed duration table measured from
CI JUnit. Every selected file lands in exactly one shard, so unlisted
Gloo files still run. pr-core now runs three concurrent pytest
processes with the same exit-code, empty-side, artifact and coverage
combine rules; an empty shard never invokes pytest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mark the multi-process Gloo test files with a new gloo marker. pr-core
keeps the same risk-map selection but runs the gloo and non-gloo parts
in two concurrent pytest processes with separate coverage data, JUnit
files, logs and temp roots. Each exit status is collected per PID; an
empty side (exit 5) is allowed unless both are empty. Coverage is
combined before the unchanged changed-line check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4caf45b04a8faa55f191b22c069f58714236689b)
Ported for #244 (part 1/6). Internal-only content from the archived
commit was dropped: .aiwg records, internal runner-policy routing, and the
internal security-docs test. Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>