fix: preserve consumer Ruff selections with 0.16 - #2840
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Workflow source detectedPR #2840 now has valid workflow source context (origin=review_followup). No linked GitHub issue is required for this PR. |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 1 minute Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughRuff is upgraded to 0.16.0 across project and workflow pins. Reusable CI now preserves consumer-defined selections or applies ChangesRuff tooling and lint workflow
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
90a6682 to
de40d68
Compare
Automated Status SummaryHead SHA: fdd8007
Coverage Overview
Coverage Trend
Top Coverage Hotspots (lowest coverage)
Low Coverage Files (<50.0%)
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90a6682218
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Runner dispatch state for autofix on PR #2840. Do not edit. |
Treat extend-select as an explicit consumer rule selection, and fall back to tomli or a text scan when tomllib is unavailable on older interpreters so the reusable lint job does not crash before Ruff runs. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Autofix updated these files:
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/reusable-10-ci-python.yml:
- Around line 1095-1111: The Ruff selection probe in the inline Python block
must walk from the configured working directory through its parent directories,
checking each supported config file until the filesystem root so parent
`tool.ruff.lint.select` settings are detected. Preserve the existing TOML
parsing and explicit-selection checks, and add a regression test covering a
nested working directory that inherits Ruff configuration from a parent.
In `@templates/consumer-repo/.github/workflows/autofix-versions.env`:
- Line 8: Revert the Ruff version change in the consumer template’s
autofix-versions.env; keep the shared Ruff pin in the source-of-truth location
and modify this template only when Ruff is intentionally repo-specific.
In `@tests/workflows/test_reusable_ci_workflow.py`:
- Around line 130-146: Extend test_ruff_lint_preserves_consumer_rule_selection
to execute the Ruff configuration probe against temporary config files and
assert runtime behavior for explicit selection, no selection, and a nested
working directory inheriting a parent config. Reuse the workflow’s actual probe
logic or extract it into a testable helper, ensuring each case verifies the
resulting Ruff command selection rather than only matching source text.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: b87c05df-2463-48c6-8196-a4f5301d9f90
⛔ Files ignored due to path filters (1)
requirements.lockis excluded by!**/*.lock,!**/*.lock
📒 Files selected for processing (9)
.github/workflows/autofix-versions.env.github/workflows/reusable-10-ci-python.ymldocs/ci/TOOL_VERSION_MANAGEMENT.mdpyproject.tomltemplates/consumer-repo/.github/workflows/autofix-versions.envtemplates/integration-repo/.github/workflows/autofix-versions.envtests/workflows/test_autofix_full_pipeline.pytests/workflows/test_autofix_pipeline_diverse.pytests/workflows/test_reusable_ci_workflow.py
|
Addressed the three current CodeRabbit findings in 5802050. The Ruff probe now walks the configured working directory ancestry, honors Ruff precedence, and stops at the nearest usable configuration; runtime tests cover explicit selection, no selection, and a nested directory inheriting its parent configuration. The consumer-template pin was restored to its repo-specific value. Validation: |
Closer verification note —
|
Replaces the conflicted #2812 Ruff pin proposal. Moves the full shared pin surface together and retains consumer-defined Ruff selections while using the pre-0.16 default family only when no selection is configured.
Validation: .......... [100%]
10 passed in 0.61s; ✅ All consumer workflows are properly templated and manifested; 🔄 Syncing scripts to template directory...
✅ All files already in sync; .
Supersedes #2812.
Summary by CodeRabbit
Chores
Bug Fixes
Documentation
Tests