Skip to content

fix(test): remove the duplicated PythonOwner shadow initializer on main (#14044) - #14059

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/fix-main-duplicate-python-owner-shadows
Nov 10, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/fix-main-duplicate-python-owner-shadows

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #14044
Acceptance delta (one sentence): The ripr lib tests compile again on main because the PythonOwner initializer in python_tests.rs has exactly one test_local_shadows field.

What

On main at 4ff2cfc, cargo test -p ripr --lib fails to compile with E0062: test_local_shadows is specified twice in one PythonOwner initializer (python_tests.rs, around lines 2154 and 2168). This is another merge-order interaction of same-surface PythonOwner edits (see the earlier #14048 / #14047 / #14051 chain). This PR removes the second, trailing copy.

Proof

cargo test -p ripr --lib python_tests --no-run (local, CARGO_INCREMENTAL=0, -j1) finishes with exit 0 on this branch. It failed with E0062 on main before the change. cargo fmt --check -p ripr reports nothing.



Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 151 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 1d2d4f38-342f-41f9-8a52-f5e1e5679624
Commits

Reviewing files that changed from the base of the PR and between 4ff2cfc and 1172075.

Files selected for processing: 1

  • crates/ripr/src/analysis/language/python/python_tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_REVIEW_READY

Head 1172075. I read the full diff, a one-line deletion of the second test_local_shadows: Vec::new(), in one PythonOwner literal in python_tests.rs. A separate subagent checked the exact head: all 13 PythonOwner literals in the file now have exactly one test_local_shadows, and the field is required on the struct, so none can be left without it. Local proof: cargo test -p ripr --lib python_tests --no-run exits 0 and cargo fmt --check -p ripr is clean. Hosted proof on this head is the remaining evidence.


Generated by Claude Code

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the initialization of the unused test_local_shadows field from a test struct in python_tests.rs. There are no review comments, and I have no feedback to provide.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 10, 2026 08:50

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 117207563dcf · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=4ff2cfc2e03739f6fba79551298d58b6dcd02d4b findings=0 gaps=0
done=no changed behavior found in scope; static advisory, not runtime proof
verify=refused|outcome=no_behavioral_candidates|findings=0|exposed=0|reason=no_behavior_in_scope

Took 24s.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants