Repository navigation
test(tools): use fast start seeds in generator tests - #12
Merged
Merged
Conversation
✅ Deploy Preview for skardela ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
princejain756
force-pushed
the
perf/generator-test-seeds
branch
from
November 8, 2026 12:56
0f93c1d to
96369e0
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.
What changed
seed: 30_074andmaxTries: 200intools/latics-generator.test.ts.seed: 2andmaxTries: 25intools/tilt-generator.test.ts.Why
In
tools/latics-generator.test.ts,seed: 1tried 17,253 bad boards before it found the first goodwater:easyboard at seed 17,254, and 4,486 more boards for the second one at seed 21,740. Each test run did this search 5 times (86,270board evaluations, ~2,020 ms).Seed 30,074 gives a good
water:easyboard on the first try, and the next good board is at seed 30,265 (191 tries later). This cutstools/latics-generator.test.tsfrom ~2,020 ms to ~23 ms without making any test weaker.How it was tested
npm run fix && npm run checkpasses.AI tool used
None
Checklist