Skip to content

fix: honor PR_SPLIT_PRIORITY, CHUNK_STRATEGY, PARTITION_STRATEGY and CP_SAT_TIMEOUT - #107

Closed
vitali87 wants to merge 1 commit into
mainfrom
fix/split-option-envvars
Closed

fix: honor PR_SPLIT_PRIORITY, CHUNK_STRATEGY, PARTITION_STRATEGY and CP_SAT_TIMEOUT#107
vitali87 wants to merge 1 commit into
mainfrom
fix/split-option-envvars

Conversation

@vitali87

Copy link
Copy Markdown
Owner

Summary

The README documents PR_SPLIT_PRIORITY, PR_SPLIT_CHUNK_STRATEGY and PR_SPLIT_PARTITION_STRATEGY, but split ignored them: those typer options (and --cp-sat-timeout) had no envvar=, and their default values are passed explicitly to Settings(...), where init kwargs beat pydantic-settings' own env lookup. PR_SPLIT_PARTITION_STRATEGY=graph pr-split split … still demanded an ANTHROPIC_API_KEY.

The four options now declare envvar="PR_SPLIT_…" (matching --min-loc/--max-loc), --help shows them, an invalid value gives a clean typer error, and the README gains the missing PR_SPLIT_CP_SAT_TIMEOUT row.

Test plan

  • test_split_uses_strategy_priority_and_timeout_envvars sets all four env vars and checks the Settings passed to plan_split and the saved plan (fails on main)
  • 445 tests pass, ruff clean
  • Local review: 5/5

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 33 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e325bc4c-6148-4ac5-a2c6-16f865cebf79

📥 Commits

Reviewing files that changed from the base of the PR and between 9482d92 and e4c9e15.

📒 Files selected for processing (3)
  • README.md
  • pr_split/cli.py
  • tests/test_cli_new_features.py

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vitali87

Copy link
Copy Markdown
Owner Author

Closing as a duplicate of #52, which already contains this fix (my bug hunt ran against main and re-found it). Sorry for the noise.

@vitali87 vitali87 closed this Aug 30, 2026
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.

1 participant