Repository navigation
fix: continue dependency traversal after shared projects - #2752
Open
DevChiniwala wants to merge 1 commit into
Open
DevChiniwala wants to merge 1 commit into
DevChiniwala wants to merge 1 commit into
Conversation
Returning true for a previously included project stops the entire BFS. Continue so projects still queued on other branches are not dropped. Fixes diggerhq#2733.
DevChiniwala
marked this pull request as ready for review
November 13, 2026 22:35
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.
In hard dependency mode, a shared project can stop an entire breadth-first traversal, leaving other changed projects or dependents without plan/apply jobs. Continue traversing when a project was already included, while keeping each project in the result once.
The regression graph has two roots, a shared child, and a private two-edge branch from each root. At least one private tail is lost before the fix regardless of root or neighbor iteration order. The tests also check transitive expansion, unrelated branches, empty input, project metadata, and duplicate-free results.
Fixes #2733.
Validation with Go 1.25.4: the generic package passes 100 repeated runs, and
go test ./ci/... -count=1passes in the repository workspace with the workflow's CI environment. The existing credential-dependent repository-list test skips underCI=true, as it does upstream. Formatting and diff checks pass.This is a draft pending the demo GitHub Actions run requested by CONTRIBUTING.md. A configured Digger demo installation is not available in this workspace yet.
AI usage details
Codex investigated the report, generated the code and tests, and drafted this description. The baseline failures and passing results above were executed locally. Technical follow-up replies may also be prepared with Codex.