Repository navigation
fix(test): seed permission-import grants in index order so the 1M-row continuation test stays in budget - #10377
Merged
Conversation
… continuation test stays in budget
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Low impact] This test-only change appears safe to merge. SummaryChanges the grant fixture to use zero-padded user IDs so inserts follow index order.
Reviews (1) · Last reviewed commit: "fix(test): seed permission-import grants..." · Reviewed by Greptile |
This branch was previously deployed
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
permission-import-cleanup.integration.ts› "preserves active and unexpired uploads while reclaiming abandoned rows across continuations" hit vitest's 30s timeout 4 times in recent runs (staging and unrelated PRs); passing CI runs took 13.6–28.1s. It must seed 1,000,001 grant rows, one more than the cleanup's per-run capacity (10,000 × 100), to force a continuationseries::textasuser_id, so '1', '10', '100'… arrive out of index order and every insert splits a random leaf of both text btrees (primary key andkcpig_subject_idx). Zero-padded ids (width fromcount, so they stay unique) insert in index order and both btrees appendType of Change
Testing
Checklist
test-auditauthoring gate)