Skip to content

fix(cli): follow affected dependencies through test files - #3322

Open
remote-controlled-man wants to merge 1 commit into
colbymchenry:mainfrom
remote-controlled-man:codex/prflow-80edcf91cd33
Open

remote-controlled-man wants to merge 1 commit into
colbymchenry:mainfrom
remote-controlled-man:codex/prflow-80edcf91cd33

Conversation

@remote-controlled-man

Copy link
Copy Markdown

codegraph affected stops walking when it reaches a test file. For source.ts -> helper.test.ts -> integration.test.ts, it reports only helper.test.ts; changing helper.test.ts itself also omits the dependent test. This can leave a CI test selection incomplete.

Continue the existing dependency walk after collecting a test file, including a changed test file. The existing depth limit and visited sets still apply. Regression coverage exercises both inputs, depth boundaries, custom filtering, cycles, duplicate paths and unrelated files.

Validation on macOS with Node 24.21.0:

  • Four affected CLI test files: 23 passed, including 11 new regression cases.
  • npm run build: passed, including the CLI, viewer and grammar-asset checks.
  • npm test -- --maxWorkers=4: exit 0; 10,783 passed, 2 expected fail and 431 skipped.

Linux and Windows were not run locally. AI assistance: Codex assisted with investigation, implementation and testing; a separate Codex context independently reviewed the frozen code and validation.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 14:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants