Repository navigation
ci(test): run the randomized tests at 4096 cases every night, not gated (Test phase, stage 3) - #331
Merged
Merged
Conversation
…tespace names
The deep profile (PROPTEST_CASES=4096), measured on a runner for stage 3 of the Test phase, fails two thrust-core properties with proptest's "Too many rejects", though nothing about them is wrong: prop_accepted_blob_names_stay_inside_their_scope ("Too many global rejects", 1,024) and prop_names_longer_than_255_chars_are_rejected ("Too many local rejects", 65,536). proptest's limits are absolute, sized for its 256 cases (4 and 256 a case), while proptest_config scaled the cases and left the limits, so a test that discards a fixed share of its inputs fits at 256 and gives up at 4096. Reproduced on unchanged code before the fix.
Two changes, each held by a test that can fail.
non_whitespace filtered every character with prop_filter, which rejected about 7.7% of them (about 22 a case). It now builds the string: a whitespace draw becomes `x`, so it never rejects, as the rust-test-logic skill says to do. visible_names_are_built_not_filtered runs the strategy under a runner that allows no rejects at all, and a strategy that filters fails it on its first discarded draw.
The blob-name property keeps its prop_assume!: the validator is its oracle, the names it throws out are the point (a bare "." was once accepted and found this way), and an early return instead would count the discards as passes and cut the effective checks by about 30% at the default 256 cases. proptest_config now keeps the budgets per case through config_for: at least proptest's own limits, and 4 global and 256 local rejects a case, so at 256 cases or fewer the limits are proptest's own and the default loop is unchanged. config_for_keeps_the_reject_budgets_per_case checks twelve case counts from 0 to u32::MAX, and config_for_at_the_default_cases_is_proptests_own pins the default.
Other copies of proptest_config (14 crates, copied from the skill's template by design) are not changed: no property of theirs failed in the deep run.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ed (Test phase, stage 3) The deep nextest profile (the prop_ and model_ tests at PROPTEST_CASES=4096, which the profile's own comment says to run) ran in no job. Measured on a runner it takes 313 to 383 s of tests, and it failed on three things: four oracle_ tests that need an oracle a runner does not have, two thrust-core properties that gave up with "Too many rejects" (fixed in the pull request this is stacked on), and the yrs panic of issue #114, which fails at random. The owner decided on 2026-11-19: fix the two tests first, then a nightly advisory job. deep.yml is its own workflow, like flake-hunt.yml: ci.yml does not call it, gate does not read it, and a red run blocks nothing. It runs `cargo nextest run --profile deep --workspace --locked -E 'not test(/\boracle_/)'` with PROPTEST_CASES defaulting to 4096 (an input of the manual run), every night at 05:37 UTC, and on a pull request that edits the file, because GitHub dispatches only a workflow that is already on the default branch and this is how e2e.yml proves itself before it merges. The oracle_ tests stay out: they compare with the TypeScript oracle's generated output (tools/spike-0006/gen-all.sh, which needs Node) and are run by hand (G-5). The yrs test stays in on purpose, so the nightly is red at random while #114 is open: hiding it would hide the issue, and any other red test is a finding. It builds as the hermetic job does (CARGO_PROFILE_DEV_DEBUG: none, which rust-cache hashes into its key) so that it restores the same cache, and it only restores it: a nightly must not evict what the pull requests use. Registered in the workflows README (the index guard demands a row) and in cicd.md's file table; running.md says it runs nightly and is not gated; test_plan_ci.py lists it among the workflows that run no checks. The wiring test holds the lines that would still "work" if they changed (not a called workflow, run by hand and nightly, the profile without the oracle_ tests, 4096 cases, a cache that is only restored), and five hand mutants of deep.yml are killed and an equivalent one survives: 247 of 247. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
temporarily deployed
to
preview-control-plane
November 19, 2026 04:42 — with
GitHub Actions
Inactive
# Conflicts: # .github/scripts/tests/mutate_gate.py # .github/scripts/tests/test_workflow_wiring.py
aRustyDev
temporarily deployed
to
preview-control-plane
November 19, 2026 05:14 — with
GitHub Actions
Inactive
…asured Two runs of the profile on a probe branch took 313 and 383 s of tests (jobs of 8.0 and 6.9 minutes), and this pull request's own runs took 270 s (6.6 minutes) and 491 s (10.9 minutes), the second beside four other runs. The header of deep.yml and the file table of cicd.md said about 7 minutes; the runners differ by about 1.5 times, so they now give the range. Both runs of this pull request failed only prop_decode_never_panics_on_mutated_updates (issue #114). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
temporarily deployed
to
preview-control-plane
November 19, 2026 05:26 — with
GitHub Actions
Inactive
aRustyDev
added a commit
that referenced
this pull request
Nov 19, 2026
… and the numbers after the merge (#335) G-48 (the deep profile) is done as the owner decided on 2026-11-19: the two reject-heavy tests are fixed (#330) and the profile runs nightly as deep.yml (#331), not gated and without the oracle_ tests, red only for issue #114 in the two runs of the job itself. The phase document's stage table, findings and decisions say so, and running.md's runbook no longer says deep fails today. The numbers after the merge of #329, from three dispatches of the hermetic job on main once it had built the new cache (402 MiB against 651 MiB): the two runs that restored the cache took 126 s and 130 s (the nextest step 74 s and 72 s), against 153 to 172 s and 95 to 98 s before, which is the probe's result within a few seconds. The third restored no cache and built from scratch (129 s for the step, 200 s for the job); the cause is not known. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The second step you chose for G-48: a nightly advisory job for the
deepprofile, after the two reject-heavy tests were fixed (#330).This branch is stacked on #330 (its first commit is that fix), so its diff against
mainshows both until #330 merges. Merge #330 first and this one is only the nightly job; merged alone it carries the fix too.The job
.github/workflows/deep.yml: its own workflow, likeflake-hunt.yml.ci.ymldoes not call it,gatedoes not read it, and a red run blocks nothing. It runscargo nextest run --profile deep --workspace --locked -E 'not test(/\boracle_/)'withPROPTEST_CASESdefaulting to 4096 (an input of the manual run).e2e.ymlproves itself before it merges, and how this pull request proves this one: its own run is the evidence (below).oracle_tests, as you decided: they compare with the TypeScript oracle's generated output (tools/spike-0006/gen-all.sh, which needs Node), a runner has none, and they stay by hand (G-5).prop_decode_never_panics_on_mutated_updatesis issue fix(editor-doc): ydoc::decode panics inside yrs 0.28.0 on a one-byte mutation, and its property test fails CI at random #114 and fails at random, so the nightly is red at random while fix(editor-doc): ydoc::decode panics inside yrs 0.28.0 on a one-byte mutation, and its property test fails CI at random #114 is open: hiding it would hide the issue. Any other red test is a finding. I measured it at 1 of 2 runs of the profile and 1 of 22 of the normalhermeticjob.hermeticjob does (CARGO_PROFILE_DEV_DEBUG: none, which rust-cache hashes into its key, ci(test): build the hermetic job without debug info (Test phase, stage 3) #329) so it restores the same cache, and it only restores it: a nightly must not evict what the pull requests use. Until ci(test): build the hermetic job without debug info (Test phase, stage 3) #329 merges andmainhas built that cache, it restores nothing and builds cold (a few minutes more).Its own run (44460107068), the evidence
247 tests ran, 246 passed, and 1 failed:
prop_decode_never_panics_on_mutated_updates(yrs 0.28.0 panics), which is #114 and nothing else. In the run I measured before the fix (251 tests, theoracle_ones included) it failed seven: the fouroracle_tests, the two reject-heavy properties and this one. So here theoracle_tests are out (251 less 4 is 247), the two properties pass at 4096 cases (#330), and the profile is red for the issue it is meant to be red for. The job took 6 min 37 s (the tests 270 s, on a cold build: it restored no cache, becausemainhas not built the key yet).After the merge with
main(#329 and #330 are in), the run on that commit (44463786777) was the same: 247 tests, 246 passed, onlyprop_decode_never_panics_on_mutated_updatesred; the tests took 491 s and the job 10.9 minutes (it ran beside four other runs, and restored no cache:mainhad not built the new key yet).Red is the expected result for this run and for the next nights until #114 is fixed; a green night means the yrs test happened not to fire. I did not mask it: that is your call, and the job is not gated.
Guards
Registered in the workflows README (the index guard demands a row) and in
cicd.md's file table;running.mdsays it runs nightly and is not gated;test_plan_ci.pylists it among the workflows that run no checks (a guard I did not know about caught its absence). The wiring test holds the lines that would still "work" if they changed (not a called workflow; by hand and nightly; the profile without theoracle_tests; 4096 cases; a cache that is only restored), and five hand mutants ofdeep.ymlare killed and an equivalent one survives: 247 of 247 across the driver. Locally: both workflow lints, the index guard, every guard ofdeps.Not here
docs/src/testing/status.mdG-48 and the stage 3 section of the phase document (both in #329) still say neither step is done. I will update them once #329 and #330 have landed, in one small docs pull request, so that none of the three conflicts with another.No closing keyword: part of a plan, not an issue.
🤖 Generated with Claude Code