Repository navigation
Resolve a preset once for generate(), targets and dynamic generation - #6864
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis 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. |
Merging this PR will improve performance by 26.58%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Breaking Change AnalysisResult: Breaking changes detected Reasoning: The PR moves option resolution into one staged helper, _resolve_run_options, which runs the preset, implied-target, sentinel and implied-model stages in that order. It also adds a shared _resolve_preset that turns PresetError into Error. For generate() model-only runs and for dynamic generation, the stages, their order and the error mapping stay as they were. For the experimental generate_server and generate_client targets, which 0.96.0 already has, the preset used to be resolved through the removed _given_fields without catching PresetError, so a preset that did not fit raised PresetError, which is not an Error subclass. It now raises Error. The updated expected test output and the migration entry marked action required both confirm this, so code catching PresetError must change, which makes it an error handling breaking change for an experimental feature. The target checks now read the resolved config rather than the config before the preset, which only removes wrong refusals. The recommender now resolves its preset once instead of twice and gives the trial the same updates. Neither changes released behaviour in a breaking way. In the behaviour diff gate every cell is both-fail, with no accepted or violation cells, so default generated output does not change. No CLI options, public Python names or templates are removed or changed. Content for Release NotesError Handling Changes
This analysis was produced by the release draft workflow |
|
🎉 Released in 0.97.0 This PR is now available in the latest release. See the release notes for details. |
Fixes: #6851
Summary by CodeRabbit
Errortype as model-only generation. The error message and command-line behavior are unchanged.