Repository navigation
fix(mcpx): changed_test_names whole-file ranges for untracked e2e files (#10874) - #10876
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed.
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. |
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.
What
changed_test_namesinpkgs/mcpx/scripts/affected-tests.pyread a per-file zero-contextgit diff, which has no hunks for an untracked file — so tests in an untracked e2e file never entered the T2 prioritized segment and could be truncated away at the 15-test budget, while a staged identical file's tests were protected (PR #4398 residual, issue #10874).changed_test_namesnow takes the selector's untracked set; an untracked e2e file is rendered as one whole-file added range, so every test in it counts as changed — exactly what the staged-new-file diff yields for identical content.Tests
Oracle: staged-vs-untracked parity over a full T2 budget.
test_changed_tests_untracked_parity_over_t2_budgetinpkgs/mcpx/scripts/tests/test_affected_untracked.py: 18 tests defined in reverse name order in one new e2e file; staged and untracked runs must produce byte-identical selector output with the prioritized (file-order) truncation — TestZulu18 first, TestZulu04 last of 15.python3 -m unittest discover -s pkgs/mcpx/scripts/tests— 30 tests, OK (laptop).Closes #10874
Queue: task 17555 (lane code-b)
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.