Repository navigation
test: make the tree snapshot rate-limit test deterministic - #61
Merged
Merged
Conversation
… step count The test polled a fixed number of fake-time steps for the first blob request. Run alone, the cold import of the backend modules outlasts those steps, so the assertion ran before indexing started; slow runners hit the same race inside the full suite. It now waits on real time, capped at ten seconds, while still moving fake time no further than before.
GHSA-ghv9-86vm-4v8m affects cross-spawn 7.0.x, which eslint pulls in for development only; 7.1.0 is the patched release in range. The lockfile also records the CLI's 0.6.0 version.
|
Visit the preview URL for this PR (updated for commit 0fc9947): https://codeyou-df251--pr61-test-flaky-tree-snap-g30iaxqo.web.app (expires Tue, 08 Dec 2026 08:52:27 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 844dad9c62537d028cabc21008e4e2e4031ce4e5 |
Member
Author
|
@gitdogai review |
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.
Summary
The weekly flaky-test check failed on 2026-11-30 in
resumes a rate-limited page at the exact file group without duplicate blob fetches(test/convex/repoIndexing/treeSnapshotContinuation.test.ts).The test started indexing in the background and polled 20 fake-time steps for the first blob request. Run alone, the cold import of the backend modules outlasts those steps, so the assertion ran before indexing had made any request; it failed every time, also before #60. In the full suite the modules are warm, but a slow runner can hit the same race, which is what the weekly check caught.
A small
runUntilhelper now waits on real time (at most ten seconds) and moves fake time no further than the old loop did, so jobs scheduled further out still never run on their own. Both polling loops in the test use it. Production code is unchanged.Also updates
cross-spawnfrom 7.0.6 to 7.1.0 (pulled in by eslint, development only) for GHSA-ghv9-86vm-4v8m, published today, which made the requiredsecuritycheck fail. The lockfile also records the CLI's 0.6.0 version.Checks
bun run lint,bun run typecheck,bun run test.🤖 Generated with Claude Code