Repository navigation
Conversation
ymichael
force-pushed
the
bb/nightly-shuffled-test-order
branch
from
November 17, 2026 20:08
58c8298 to
79e7f3d
Compare
ymichael
marked this pull request as ready for review
November 17, 2026 20:45
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ymichael
force-pushed
the
bb/nightly-shuffled-test-order
branch
from
November 17, 2026 21:05
79e7f3d to
a9207d2
Compare
…shuffle The request-path statement suite replays scripted requests against one shared fixture per axis, so declare its order. The plugin frontend boot tests load the frontend module at collection time instead of inside the first test's deadline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ymichael
force-pushed
the
bb/nightly-shuffled-test-order
branch
from
November 17, 2026 21:13
a9207d2 to
3ecda54
Compare
The browser preview test released its second frame immediately, so under load it could replace the first before the first was asserted. The connect Set up button ignored clicks until the status had loaded; keep it disabled until then so a click is never dropped, and let the tests wait for it to enable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ymichael
force-pushed
the
bb/nightly-shuffled-test-order
branch
2 times, most recently
from
November 17, 2026 21:32
bacccaa to
00134ab
Compare
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.
Human comments
What was wrong
Test-order leaks are fixed one at a time because nothing checks order independence. #4773 added
--sequence.shuffleto the blocking Linux test jobs. #4909 removed it the same day, because existing leaks failed unrelated PRs. Since then, leaks have been found only by ad hoc shuffled sweeps whose seeds are quoted in PR bodies (3638, 4721, 7674, 8821), and each was fixed in its own PR. In the flake-fix history (Aug 13 – Nov 17), 21 commits are classified as order or shared-state leaks (test-shared-state-leak13,test-environment-leak8). Background: the C16 section of the ui-label verification report.A single nightly seed only samples the orders: main's
ProjectPathDialog.test.tsxfails for 5 of seeds 1–10. And nothing stopped a PR from adding a new order-dependent test, or from silently opting a suite out of shuffling.docs/debugging-and-qa.mdstill said "CI's test shards shuffle test files", which has been false since #4909.What changed
Changed tests in shuffled order (seed N)job inci.yml.scripts/plan-shuffled-tests.mjsdoes the selection in the plan job. It diffs against the same comparison base asplan-ci.mjs, groups the files by owning workspace package, and keeps only packages whosetestscript runs Vitest.-- <files> --sequence.shuffle --sequence.seed=N --passWithNoTests.{ shuffle: false }and needs an entry with a non-empty reason inscripts/test-shuffle-opt-outs.json.scripts/check-test-shuffle-opt-outs.mjsruns dependency-free in the plan job. It rejects unlisted opt-outs (suite option, quoted key, config field, assignment, and the--sequence.shuffle=false/--no-sequence.shuffleCLI forms), entries without a reason, duplicate entries, and stale entries.apps/server/test/perf/request-path-statements.test.ts, with its reason..github/workflows/test-order.yml("Shuffled test order") runs on main and can be started by hand with an optionalseed.scripts/plan-ci.mjs --fullwith--sequence.shuffle --sequence.seed=<seed>, using--continueand a read-only Turbo cache restore.docs/debugging-and-qa.mddescribes both checks, the allowlist, and reproduction from a seed.No per-test budgets, counts or thresholds.
How the nightly picks its seed
seedinput.Running tests with seedline.pull_requestverification runs, with seeds 1, 3, 4 and 5; that trigger is removed. The first scheduled run on main is therefore run 5, which uses seed 5.Leaks found so far, by seed
ProjectPathDialog.test.tsx› preserves the direct single-machine folder flowLazyRemotePathBrowseris a lazy split. The test queried its button synchronously, so it passed only after a sibling had loaded the module (main: fails for seeds 1, 3, 8, 9 and 10)findByRole, as the sibling doestest/perf/request-path-statements.test.ts› 'send while a retry is queued' (both axes){ shuffle: false }on the suite, listed with its reason in the new allowlistplugin-frontend-boot-catch-up.test.ts,plugin-frontend-boot.test.ts./plugin-frontendimport inside its 15 s deadlineapp.test.tsx› streams frames by resuming from the last sequencefindByoverride.app.test.tsx› keeps the sign-in code behind Show pairing code (and 4 siblings)clickSetUpOnceStatusLoadedhelper, which waits for the status call and flushes before clicking (the pattern 3 sibling tests already used). The product change is #7713's and is dropped from this PR.The seed-5 pass was measured with the two dropped changes included. Until #7736 lands, the plugin-boot timeout can still appear on a loaded runner.
How you verified
ad80a9df576^):--sequence.shuffle --sequence.seed=7674: 4 failed, 91 passed.ProjectPathDialog.test.tsxand rannode scripts/plan-shuffled-tests.mjs --run … --seed 3. It exits 1, reportsChanged tests failed in shuffled order (seed 3), and prints the reproduction command. With this PR's fix, all four changed packages pass under seed 3.ci-workflow/ci-selectiontests pass, 67 in total. The connect suite passes under seeds 1–5 and 8821.actionlintpasses apart from custom runner labels, and//#lint:type-awarepasses.Decisions for review
windows-testsdepends on thewindows-dependency-cachejob and about 100 lines of Windows-only setup (dependency disk image, per-shard install filters, Bun, the plugin SDK runtime). Copying that intotest-order.ymlwould fork the Windows setup. The clean route is extractingci.yml's Windows test job into a reusable workflow, which renames its required checks, so it is left for a follow-up. The PR step is Linux-only for the same reason. Every leak found so far was platform-independent.test-order.yml. Nothing files issues automatically, because an auto-filed issue would not meet docs/filing-issues.md. The alternative is a job that opens or updates one tracking issue per failing seed.ProjectPathDialog.🤖 Generated with Claude Code