Repository navigation
docs(plans): plan the test-suites work: the contract suite on nextest, a load suite, profiling - #234
Merged
Merged
Conversation
…, a load suite, profiling The three items the crates-layout plan left for later, planned as five pull requests in .agents/plans/test-suites/, with the owner's decisions of 2026-11-16: - the load suite is nextest tests in a new crate, thrust-load-tests (crates/testing/suites/load), using the contract suite's library as a dev-dependency, which ADR-0009 rule 6 allows; - the first profiling workload is the real router in-process, with a dhat heap profile and a samply CPU profile through a nextest wrapper script; - the plan changes scripts and crates now, and the CI-split phases wire the workflows later. Measured for the plan, on main at 958be99 with cargo-nextest 0.9.140: - each of contract.sh's 11 passes selects the same tests as a nextest filterset, name for name. Control: main's filterset with one alternative dropped selects 77 tests where libtest selects 71; - main on native-memory under nextest: 71 passed, JUnit tests="71" failures="0", in 4.5 s against cargo test's 5.1 s; - the one process-wide piece of state is the mock identity provider on a fixed port. Under nextest's one process per test, the compat_oidc_ tests can collide on that port, so they get a test group of one. The OIDC adapter fetches the key set on every call, so a key per process is safe. Co-Authored-By: Claude Opus 5.5 <[email protected]>
aRustyDev
added a commit
that referenced
this pull request
Nov 16, 2026
… (stage 0.2) (#236) research/0018-gate-spike.md records what the spike (draft #232, closed) measured: five designs against seven scenarios, and eleven facts, in two identical samples. The choice is A+: every called workflow ends with a `verdict` job, and gate requires the callee's result to be success and its `verdict` output to be pass. It was right on all seven scenarios; the control (the calling job's result only) was wrong on three, the same without the output on one, and re-actors/alls-green on two. The measurements corrected the plan, and PLAN.md and phases/0001-foundation.md say so: - A calling job is success when at least one job inside it succeeded, even if a planned sibling was skipped; with nothing inside run it is skipped. The plan had said success when every job inside was skipped. - A callee's workflow-level concurrency deadlocks the run and starts no job (the group is built from the caller's name), and a permission its caller did not grant stops the run from starting, so no gate would report. - An if that cannot be evaluated skips the job without failing it. - actionlint refuses a broken call contract, but only inside a git repository. Also recorded: flagship.yml (#229) on the inventory, and the test-suites plan (#234), whose pull requests edit commands inside jobs that Phase 1 moves. Docs only: plan-ci.py plans no job for this diff. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
aRustyDev
added a commit
that referenced
this pull request
Nov 17, 2026
PR 5 merged in #272, so all five pull requests are merged. The status table says so, gives the plan's own merge (#234), and points at what the plan left for later. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
A plan for the three items the crates-layout plan left for later: the contract suite onto nextest, a load suite at
crates/testing/suites/load, andcrates/testing/profiling/. It's in.agents/plans/test-suites/(README.md,PLAN.md): five pull requests, each with what it changes and how it is verified.Decisions (owner, 2026-11-16)
thrust-load-tests, namedload_…and run by aloadprofile. The two probes (bench,bench_scale) leavethrust-contract-tests, where they are binaries. As tests they use the suite's library as a dev-dependency, which ADR-0009 rule 6 andcheck-layout.shallow. As binaries they could not.oneshot. dhat-rs writes its heap profile; samply writes its CPU profile through a nextest wrapper script.Measured for the plan
On
mainat958be99, with cargo-nextest 0.9.140:contract.sh's 11 passes selects the same tests, name for name, as a nextest filterset. The control ismain's filterset with one alternative dropped, which selects 77 tests where libtest selects 71.mainon a realnative-memorytarget:cargo test: 71 passed in 5.1 s.tests="71" failures="0", so the count needs no text parsing.compat_oidc_*tests running at once can collide on it, so the plan puts them in a test group of one. The OIDC adapter fetches the key set on every call, so a key per process is safe.contract.shpicked answered/_infowithOK, and the script's own guard stopped it. That is the port-picking race behind the exit-4 flake; the plan leaves it for a fix of its own.Plan files only, so
plan-ci.pyruns no job on this PR.🤖 Generated with Claude Code