Repository navigation
fix(pm-stack/aggregator): linear epic-graph blocker traversal + deduped contributingItems (#6371) - #6551
Open
dezren39 wants to merge 1 commit into
Open
fix(pm-stack/aggregator): linear epic-graph blocker traversal + deduped contributingItems (#6371)#6551dezren39 wants to merge 1 commit into
dezren39 wants to merge 1 commit into
Conversation
…uped contributingItems (#6371) Replace the two identical per-branch-visited helpers with one shared-visited traversal (openEpicsReachableFrom), so diamond blockedBy graphs no longer traverse exponentially. Dedupe rankedBlocked[].contributingItems in first-occurrence order. Adds diamond-fixture, shared-downstream and cycle regression tests.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
4 tasks
This branch has not been 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.
Fixes #6371.
What
pm-stack/aggregator/src/epic-graph.ts: the two identical helpers (transitiveOpenEpicDescendants,contributingDownstreamItems) copied the visited set per recursive branch, which is exponential on diamondblockedBygraphs. They are replaced by a single shared-visited traversal,openEpicsReachableFrom, called once per blocker.rankedBlocked[].contributingItemsis now deduplicated (first-occurrence order, deterministic).Why the result set is unchanged
Reachability through open nodes does not depend on the path taken, so a shared visited set yields the same set as per-branch copies; cycles still terminate.
Tests (oracle: the issue #6371 diamond fixture)
bun testin pm-stack/aggregator). Full-suite failures seen locally (missingweb-push, port 4871, board/registry tests) are unrelated to this change.Queue task 10756 (OpenChamber scheduled lane).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.