Repository navigation
Reuse integration fixtures and use four Linux test workers - #6245
Merged
Merged
Conversation
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
Every integration harness reran database migrations and rebuilt the same scripted-echo provider artifact. The Linux integration job also used only two Vitest workers on its four-vCPU runner. Together these repeated setup costs and limited concurrency lengthened a job that was among the remaining CI bottlenecks.
What changed
These are test-support and CI changes. No production code, assertions, test selection, cache invalidation rules, shard counts, or timeouts change.
How you verified
Controlled benchmark: baseline, fixture reuse, and fixture reuse with four workers; two replicas on each four-vCPU Linux/Windows runner type, Node 22, empty Turbo caches. All 12 jobs passed the same 77 tests across 28 files.
Linux mean test-task time falls from 42.8s to 26.0s, about 39%. The complete Linux command, including upstream tasks, falls from 40.5–48.1s to 26.0–28.4s. Windows timings are noisier, so these runs do not establish a precise percentage gain; its current worker count is retained. These are integration-job measurements, not whole-pipeline percentages.
Local full integration runs with three workers passed 77/77 in 39.39s baseline, 36.36s with database reuse, and 34.28s with database plus provider fixture reuse. Turbo lint/typecheck, formatting, diff checks, and actionlint passed (excluding existing custom Blacksmith runner labels). Real-provider suite setup/discovery passed; all 11 live-provider cases were deliberately filtered out, so no live-provider execution is claimed.
Independent review found no issues: the database helper preserves connection defaults and real schema, existing database tests cover template-copy isolation, direct server initDb coverage remains, and no tests/assertions were removed. The first final-head CI attempt passed every check except Linux server shard 2, which hit
queued_message_claim_lostin the unchangedkeeps queued choices separate until dispatch and preserves the next rowtest. Its server worker count and executed provider-registration path are unchanged. All 39 cases passed against the baseline helper in 11 focused runs; the separate CI reliability thread then reproduced the production race deterministically on the baseline by pausing the older send while a competing drain claims the newer row. That fix is tracked in #6247. Only the failed shard was rerun on the unchanged head. Final-head CI is green on46241a7b06c7572dee5530707e0243e804a9918d; the passing retry does not fix the queue race. The benchmark workflow lives on a separate branch and is excluded from this PR.