Skip to content

Drop the expected-path arguments of the general main tests - #7218

Merged
Koudai Aono (koxudaxi) merged 1 commit into
mainfrom
drop-expected-path-arguments-4
Nov 20, 2026
Merged

Koudai Aono (koxudaxi) merged 1 commit into
mainfrom
drop-expected-path-arguments-4

Conversation

@koxudaxi

@koxudaxi Koudai Aono (koxudaxi) commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Tests
    • Updated automated checks and expected outputs across general integration scenarios, including schema constraints, command-line documentation and suggestions, tool inputs, presets, and generated output.
    • Added regression coverage for cases such as preserving input data, handling definition references, and processing custom headers. These changes update test coverage; they do not establish changes to end-user functionality.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T23:49:02.189885Z f40d215 PR opened
ℹ️ About Codex in GitHub

Your 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.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates general integration-test assertions and snapshot references. It also adds an expected output and test coverage for dictionary-input JSON Schema boolean exclusive bounds while checking that generation leaves the input unchanged.

Changes: General integration test updates

Layer / File(s) Summary
Update integration assertions and snapshot references
tests/main/test_main_general.py, tests/main/test_main_general.refs, tests/generated_import_closure_allowlist.py
Many tests replace explicit expected-file paths with named output assertions. Snapshot references and the import-closure allowlist point to fixtures under main/main_general.
Cover dictionary-input bounds and immutability
tests/main/test_main_general.py, tests/data/expected/main/main_general/generate_with_dict_jsonschema_boolean_exclusive_bounds_keeps_input_unchanged.py
A test generates output for boolean exclusive bounds and checks that the input remains unchanged. The expected model has an optional score constrained to at least 0.0 and less than 10.0.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Merge Risk: Minimal · up to f40d2

This change only reorganizes test fixtures and assertions and adds a dictionary-input bounds test. No production behavior changes, and no merge-blocking issue was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names a real part of the change: the general main tests drop expected-path arguments. The raw summary shows many path-based golden-file comparisons replaced with named inline-output assertio…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names a real part of the change: the general main tests drop expected-path arguments. The raw summary shows many path-based golden-file comparisons replaced with named inline-output assertions, and the manifest redirects fixtures. The title does not mention the MCP, CLI suggestion, or preset test additions, but it covers the primary change. It is specific, not vague, and not misleading.

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e7ddbe6 and f40d215.

Files ignored due to path filters: 25

  • tests/data/expected/main/main_general/check_suffixless_file_differs.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/check_suffixless_file_does_not_exist.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/check_suffixless_file_matches.2 is excluded by none and included by none
  • tests/data/expected/main/main_general/default_target_python_version_follows_the_interpreter.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/generate_does_not_mutate_extra_template_data.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[close-match-with-value].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[close-match].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[deduplicated-option].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[missing-value].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[multiple-options].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[no-match].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[option-terminator].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/invalid_cli_option_suggestions[positional].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/main_rejects_additional_import_injection.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/mcp_tools_hoisted_definition_references_conversion[boolean_definition_references].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/mcp_tools_hoisted_definition_references_conversion[dynamic_definition_references].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/mcp_tools_hoisted_definition_references_conversion[nested_definition_references].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/mcp_tools_hoisted_definition_references_conversion[nested_keyword_references].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/mcp_tools_schema_value_references_conversion[schema_reference_positions].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/mcp_tools_schema_value_references_conversion[schema_value_references].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/output_format_json_writes_suffixless_file[False].output_format_json.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/parser_preserves_cross_module_external_import_cache_hook.custom_import_cache_cross_module_order.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/parser_rechecks_external_enum_after_module_materialization.custom_import_cache_inherited_enum_order.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/parser_run_context_preserves_subclass_lifecycle_hooks.parser_run_context_lifecycle.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/main/main_general/parser_run_context_preserves_subclass_lifecycle_hooks.person.txt is excluded by !tests/data/**/*.txt and included by none
Files selected for processing: 81

  • tests/data/expected/main/main_general/class_decorators.py
  • tests/data/expected/main/main_general/class_decorators_all_output_types[dataclasses].py
  • tests/data/expected/main/main_general/class_decorators_all_output_types[msgspec].py
  • tests/data/expected/main/main_general/class_decorators_all_output_types[pydantic_v2].py
  • tests/data/expected/main/main_general/class_decorators_all_output_types[pydantic_v2_dataclass].py
  • tests/data/expected/main/main_general/cli_input_overrides_pyproject_url.py
  • tests/data/expected/main/main_general/cli_pyproject_ignores_generate_only_options.py
  • tests/data/expected/main/main_general/custom_file_header_prepend_preserves_future_import_text.py
  • tests/data/expected/main/main_general/generate_config_with_union_mode.py
  • tests/data/expected/main/main_general/generate_custom_comment_header_keeps_formatter_docstring_first[prepend-docstring].py
  • tests/data/expected/main/main_general/generate_custom_comment_header_keeps_formatter_docstring_first[replace-comment].py
  • tests/data/expected/main/main_general/generate_custom_comment_header_keeps_formatter_docstring_first[replace-docstring].py
  • tests/data/expected/main/main_general/generate_custom_comment_header_keeps_formatter_docstring_first[replace-parenthesized-docstring].py
  • tests/data/expected/main/main_general/generate_custom_file_header_comments_only_fast_path.py
  • tests/data/expected/main/main_general/generate_custom_file_header_does_not_treat_fstring_as_docstring.py
  • tests/data/expected/main/main_general/generate_custom_file_header_does_not_treat_postfix_call_as_docstring.py
  • tests/data/expected/main/main_general/generate_custom_file_header_prepend_after_formatter_comment.py
  • tests/data/expected/main/main_general/generate_custom_file_header_prepend_after_formatter_docstring.py
  • tests/data/expected/main/main_general/generate_custom_file_header_prepend_after_formatter_parenthesized_docstring.py
  • tests/data/expected/main/main_general/generate_custom_file_header_preserves_runtime_target_tokenizer_boundary.py
  • tests/data/expected/main/main_general/generate_custom_file_header_with_form_feed.py
  • tests/data/expected/main/main_general/generate_custom_file_header_with_parenthesized_docstring.py
  • tests/data/expected/main/main_general/generate_keeps_existing_path_string_input.py
  • tests/data/expected/main/main_general/generate_keeps_non_path_string_input.py
  • tests/data/expected/main/main_general/generate_returns_string_when_output_none.py
  • tests/data/expected/main/main_general/generate_returns_string_with_custom_file_header.py
  • tests/data/expected/main/main_general/generate_returns_string_with_custom_file_header_and_code.py
  • tests/data/expected/main/main_general/generate_returns_string_with_custom_file_header_no_future.py
  • tests/data/expected/main/main_general/generate_returns_string_with_custom_file_header_prepend.py
  • tests/data/expected/main/main_general/generate_returns_string_with_dataclass.py
  • tests/data/expected/main/main_general/generate_returns_string_with_pydantic_v2.py
  • tests/data/expected/main/main_general/generate_standard_preset_public_api_explicit_options.py
  • tests/data/expected/main/main_general/generate_uses_multiline_docstring_by_default.py
  • tests/data/expected/main/main_general/generate_uses_single_line_docstring_when_enabled.py
  • tests/data/expected/main/main_general/generate_with_custom_formatter_and_empty_formatters.py
  • tests/data/expected/main/main_general/generate_with_dict_jsonschema.py
  • tests/data/expected/main/main_general/generate_with_dict_jsonschema_boolean_exclusive_bounds_keeps_input_unchanged.py
  • tests/data/expected/main/main_general/generate_with_dict_openapi.py
  • tests/data/expected/main/main_general/generate_with_imported_config_from_top_level.py
  • tests/data/expected/main/main_general/import_overrides_apply_to_additional_imports.py
  • tests/data/expected/main/main_general/main_builtin_template_data_is_non_executing[msgspec-base-class-kwargs].py
  • tests/data/expected/main/main_general/main_builtin_template_data_is_non_executing[pydantic-config].py
  • tests/data/expected/main/main_general/main_builtin_template_data_is_non_executing[typed-dict-extra-items].py
  • tests/data/expected/main/main_general/main_custom_file_header_prepend.py
  • tests/data/expected/main/main_general/main_custom_template_data_remains_unrestricted.py
  • tests/data/expected/main/main_general/main_use_single_line_docstring.py
  • tests/data/expected/main/main_general/mcp_tools[definitions_ref.json].py
  • tests/data/expected/main/main_general/mcp_tools[mcp_servers.json].py
  • tests/data/expected/main/main_general/mcp_tools[schema_tool_definitions.json].py
  • tests/data/expected/main/main_general/mcp_tools[server_definition.json].py
  • tests/data/expected/main/main_general/mcp_tools[servers_list.json].py
  • tests/data/expected/main/main_general/mcp_tools[tools_list.json].py
  • tests/data/expected/main/main_general/mcp_tools[top_level_tool_definitions.json].py
  • tests/data/expected/main/main_general/mcp_tools_dangling_local_ref.py
  • tests/data/expected/main/main_general/mcp_tools_hoisted_definition_references_api.py
  • tests/data/expected/main/main_general/mcp_tools_schema_value_references_api[schema_value_references].py
  • tests/data/expected/main/main_general/mcp_tools_schema_value_references_api[schema_value_references_compact].py
  • tests/data/expected/main/main_general/practical_preset_keeps_homogeneous_fixed_length_arrays_as_lists.py
  • tests/data/expected/main/main_general/practical_preset_pydantic_v2.py
  • tests/data/expected/main/main_general/standard_preset_enum_shapes[dataclasses.dataclass-20261015].py
  • tests/data/expected/main/main_general/standard_preset_enum_shapes[dataclasses.dataclass-20261017].py
  • tests/data/expected/main/main_general/standard_preset_enum_shapes[typing.TypedDict-20261015].py
  • tests/data/expected/main/main_general/standard_preset_enum_shapes[typing.TypedDict-20261017].py
  • tests/data/expected/main/main_general/standard_preset_msgspec_struct.py
  • tests/data/expected/main/main_general/standard_preset_pyproject_uses_final_output_model_type.py
  • tests/data/expected/main/main_general/standard_preset_target_py310_does_not_force_specialized_enum.py
  • tests/data/expected/main/main_general/standard_preset_typed_dict.py
  • tests/data/expected/main/main_general/standard_preset_uses_literal_for_single_value_enum.py
  • tests/data/expected/main/main_general/type_overrides_for_target[python-3.10].py
  • tests/data/expected/main/main_general/type_overrides_for_target[python-3.12].py
  • tests/data/expected/main/main_general/type_overrides_model_level_base_class.py
  • tests/data/expected/main/main_general/type_overrides_model_level_dict_key.py
  • tests/data/expected/main/main_general/type_overrides_preserved_during_module_reuse[collapse].py
  • tests/data/expected/main/main_general/type_overrides_preserved_during_module_reuse[inherit].py
  • tests/data/expected/main/main_general/type_overrides_replace_custom_type_path_unavailable_for_target.py
  • tests/data/expected/main/main_general/use_specialized_enum_pyproject_override_with_cli.py
  • tests/data/expected/main/main_general/use_specialized_enum_with_python_311_ok.py
  • tests/data/expected/main/main_general/use_standard_primitive_types.py
  • tests/generated_import_closure_allowlist.py
  • tests/main/test_main_general.py
  • tests/main/test_main_general.refs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

@codspeed

codspeed Bot commented Nov 19, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 13.93%

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 37 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

❌ 37 regressed benchmarks
✅ 16 untouched benchmarks
⏩ 98 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_perf_recommend_options_full_kubernetes_style 20.6 s 25.9 s -20.51%
❌ test_perf_client_calls[async] 38.6 ms 48.4 ms -20.24%
❌ test_perf_client_calls[sync] 35.2 ms 44.1 ms -20.14%
❌ test_perf_load_pyproject_config[mapping-None] 220.5 µs 275 µs -19.79%
❌ test_perf_load_pyproject_config[mapping-multiple] 231.6 µs 288.3 µs -19.66%
❌ test_perf_load_pyproject_config[config-None] 217.6 µs 270.1 µs -19.45%
❌ test_perf_load_pyproject_config[config-multiple] 234.7 µs 290.3 µs -19.15%
❌ test_perf_extreme_large_schema 14.1 s 16.7 s -15.74%
❌ test_perf_large_models_pydantic_v2 3.4 s 4.1 s -15.41%
❌ test_perf_deep_nested 4.9 s 5.7 s -15%
❌ test_perf_openapi_large 3.1 s 3.6 s -14.88%
❌ test_perf_complex_refs 2 s 2.4 s -14.53%
❌ test_perf_target_render[fastapi-large] 9.4 s 11 s -14.4%
❌ test_perf_all_options_enabled 5.8 s 6.7 s -14.22%
❌ test_perf_kubernetes_style_pydantic_v2 2.5 s 2.9 s -14.18%
❌ test_perf_target_render[client-large] 15.3 s 17.8 s -14.08%
❌ test_perf_false_reference_validation 357.1 ms 414.2 ms -13.79%
❌ test_perf_large_models_msgspec 2.6 s 3 s -13.3%
❌ test_perf_multiple_files_input 3.9 s 4.5 s -13.07%
❌ test_perf_inherited_required_fields[partial-derived-first] 1.4 s 1.6 s -12.69%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing drop-expected-path-arguments-4 (f40d215) with main (e7ddbe6)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koxudaxi
Koudai Aono (koxudaxi) merged commit d6cc88f into main Nov 20, 2026
131 of 132 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the drop-expected-path-arguments-4 branch November 20, 2026 00:09
@github-actions github-actions Bot added the skip-changelog Exclude maintenance-only pull requests from generated release notes label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: Only CI, release automation, or tests changed; generated output and public interfaces are unaffected.


This analysis was produced by the release draft workflow

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

Labels

breaking-change-analyzed skip-changelog Exclude maintenance-only pull requests from generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant