Repository navigation
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
ElNeMeR70
force-pushed
the
fix/pregate-push-spread-stack-overflow-3989
branch
from
November 8, 2026 03:01
41032a1 to
37e137e
Compare
13 of 15 tasks
Contributor
|
Thanks for finishing the sweep from #3989. The overflow only happens once these arrays pass roughly 100,000 entries (your regression test uses 150,000), and we haven't seen a repository reach that in these pregate paths. Pregate changes are also paused until 2026-11-21. So I'm closing this as won't-fix for now; #3989 stays open as the record if a real repository ever hits the limit. |
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.
Replaces the remaining array push argument spreads across test selection and dependency graph helpers with iteration loops so large input arrays cannot overflow the V8 call stack. This completes the stack-safety cleanup for large repository runs.
Details
lib/pregate/lane-selection.ts: Replacewhy.push(...prov)with afor (const p of prov)loop.lib/pregate/lanes.ts: Replace.push(...)spreads onreverseDirEdges,existing, anduncoveredChangedwithforloops.lib/pregate/import-graph.ts: Replace.push(...walkDir(full))and.push(...specs)recursive/spec spreads withforloops.lib/pregate/regen.ts: Replaceout.push(...walkTrackedFiles(root, rel))recursive spread with aforloop.lib/pregate/context.ts: Replacefiles.push(...untracked)spread with aforloop.test/pregate-lanes.test.ts: Add regression test verifying large provenance and changed-file arrays (>150,000 items) do not throwRangeError: Maximum call stack size exceeded.Fixes #3989