You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(ci): line-guard fixture expects no exemption after directory.rs split - #11339
Fixes#11338. The directory.rs grandfather entry was removed in #8591, so the moved-path fixture must expect OVER LIMIT rather than GRANDFATHERED. Verified locally: check-production-line-limit.test.sh passes all contract tests.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
Tests
Updated the production line-limit check to confirm that an over-limit file at the moved path is reported when no grandfather entry applies.
This updates a contract test to match the guard's behavior after the grandfather entry was removed. It does not change production behavior, and the merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the change: a test fixture for the line-limit guard now expects no grandfather exemption after the directory.rs split. The raw summary says the moved-path test now expects a 3,000-line…
Linked Issues check
Issue #11338 requires the moved-path fixture in .github/scripts/check-production-line-limit.test.sh to expect OVER LIMIT for a file with no grandfather entry. The diff against the merge base changes…
Out of Scope Changes check
The whole-PR diff against the merge base touches one file, .github/scripts/check-production-line-limit.test.sh. All hunks update the moved-path fixture that #11338 describes. No unrelated change app…
Full details: Title check
Explanation
The title names the change: a test fixture for the line-limit guard now expects no grandfather exemption after the directory.rs split. The raw summary says the moved-path test now expects a 3,000-line file at that path to fail as over limit, and the objectives say the fixture was updated to expect OVER LIMIT instead of GRANDFATHERED. The title matches the main change. It is specific and scannable, and it has no vague terms.
Full details: Linked Issues check
Explanation
Issue #11338 requires the moved-path fixture in .github/scripts/check-production-line-limit.test.sh to expect OVER LIMIT for a file with no grandfather entry. The diff against the merge base changes only that fixture. The GRANDFATHERED assertion for pkgs/id/crates/id-directory/src/directory.rs is replaced by a block that requires the guard to exit nonzero. It then greps OVER LIMIT pkgs/id/crates/id-directory/src/directory.rs: 3000 production lines in the output. This matches the requirement. The issue's coding requirement is the test update. No additional coding requirement exists in the issue. I did not run the test. The result relies on the diff and the expected output text, which match the issue.
Full details: Out of Scope Changes check
Explanation
The whole-PR diff against the merge base touches one file, .github/scripts/check-production-line-limit.test.sh. All hunks update the moved-path fixture that #11338 describes. No unrelated change appears in the diff. The PR description and the AI summary agree with the diff.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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 #11338. The directory.rs grandfather entry was removed in #8591, so the moved-path fixture must expect OVER LIMIT rather than GRANDFATHERED. Verified locally: check-production-line-limit.test.sh passes all contract tests.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit