Skip to content

Drop the expected paths of the model, codec and script test leftovers - #7312

Merged
Koudai Aono (koxudaxi) merged 2 commits into
mainfrom
drop-expected-paths-b15
Nov 21, 2026
Merged

Koudai Aono (koxudaxi) merged 2 commits into
mainfrom
drop-expected-paths-b15

Conversation

@koxudaxi

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

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Tests
    • Updated output snapshots across documentation examples, code generation, command-line tools, and release-analysis workflows.
    • Adjusted snapshot organization for clearer test-specific results, with existing checks and generated behavior retained.
    • Removed several comparisons against fixed expected-output files in favor of captured or snapshot-based output.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 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-21T18:19:18.439827Z fd974aa 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 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Documentation examples now read generated outputs captured by FastAPI tests. Across API generation, model, codec, and utility tests, assertions use named snapshots or direct output checks, and snapshot references move to test-specific directories. Generation, serving, script execution, and test-running steps remain in place.

Changes: Output and snapshot updates

Layer / File(s) Summary
Documentation outputs and API generation tests
scripts/build_docs_examples.py, tests/api_generation/test_fastapi_server.py, tests/api_generation/test_fastapi_server.refs, tests/api_generation/test_client_cli.py, tests/api_generation/test_client_cli.refs
Documentation examples now read notices, listings, generated code, and script outputs from FastAPI test outputs. FastAPI tests snapshot generated outputs by name. The client CLI diff test removes an expected-output assertion.
Model and template snapshots
tests/model/pydantic_v2/*, tests/model/test_compiled_templates.py, tests/model/test_compiled_templates.refs
Pydantic and compiled-template tests use named snapshots instead of fixed expected-file paths. Snapshot references use test-specific paths.
Codec test snapshots
tests/model_codecs/*
Backend comparison, structural codec, and wire-plan assertions no longer pass expected-file paths. Their snapshot references move to codec-specific directories.
Architecture, formatting, and transport snapshots
tests/test_architecture_boundaries.*, tests/test_ci_coverage_script.*, tests/test_ci_workflow.py, tests/test_compare_release_script.*, tests/test_docs_formatting.*, tests/test_format.*, tests/test_input_model_transport.*
These tests remove fixed expected-file paths or use named snapshots. Related snapshot references are updated.
Release and CI script snapshots
tests/test_prepare_release_draft_analysis_script.*, tests/test_report_release_analysis_failure_script.*, tests/test_select_ci_test_shard_script.*, tests/test_validate_release_draft_analysis_script.*
Release-analysis and shard-selection tests remove expected-file arguments or routing labels. Snapshot references move to script-specific paths, with aliases retained or updated.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to aa8fb

This PR reorganizes test snapshot storage and documentation example sources with no production code changes. Checked paths and snapshot selection behave as intended, so merge risk is minimal.

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 "Drop the expected paths of the model, codec and script test leftovers" matches the changeset. The diff removes expected-output file paths and fixture constants from the model, model_codecs,…
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 "Drop the expected paths of the model, codec and script test leftovers" matches the changeset. The diff removes expected-output file paths and fixture constants from the model, model_codecs, and script tests (for example, test_base_model, test_structural_codecs, test_wire_plan, test_compare_release_script, and test_select_ci_test_shard_script). Tests now compare output through inline or default snapshots instead. The title is specific and accurate, though it uses the term "leftovers" and does not mention the docs and CI tests that also changed.

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 9660348 and aa8fb4f.

Files ignored due to path filters: 177

  • docs/data/migration/unreleased/drop-expected-paths-b15.toml is excluded by none and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.auth.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.calls.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.errors.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.generate.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.notice.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.oauth.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.options.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.pytest.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.responses.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.retries.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_client_howto.signing.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_project[howto].files.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_project[howto].notice.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_project[howto].pytest.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_project[tutorial].files.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_project[tutorial].notice.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_tutorial_client.call.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_tutorial_client.call_async.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/api_generation/fastapi_server/docs_tutorial_client.files.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/architecture_boundaries/architecture_boundary_cli_reports_shared_model_backend_access[forbidden].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/architecture_boundaries/architecture_boundary_cli_reports_shared_model_backend_access[shared_model_dynamic_import].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/architecture_boundaries/architecture_boundary_detector_handles_shared_model_dynamic_imports[shared_model_dynamic_import].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-artifact-file].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-complete].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-data-directory].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-invalid-json].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-main-only-missing].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-missing-root].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-missing].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-pull-request-complete].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-pull-request-main-only].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-record-unknown].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-report-complete].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-report-executed-exclusion].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-report-missing-input].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-report-missing-lines].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-report-no-source].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-report-pull-request].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-stale-destination].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-unexpected].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/ci_coverage_script/coverage_artifact_cli[entrypoint-wrong-name].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/compare_release_script/compare_release[directory].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/compare_release_script/compare_release[fail_both].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/compare_release_script/compare_release[identical].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/compare_release_script/compare_release[import_fails_both].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/compare_release_script/compare_release[path_option].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/docs_formatting/documentation_formatting_preserves_generated_examples[extra].markdown.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/docs_formatting/documentation_formatting_preserves_generated_examples[fixture].markdown.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/docs_formatting/documentation_formatting_preserves_generated_examples[golden].markdown.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/docs_formatting/documentation_formatting_preserves_generated_examples[quick_start].markdown.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/docs_formatting/documentation_formatting_preserves_generated_examples[readme].markdown.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/docs_formatting/documentation_formatting_preserves_generated_examples[stdout].markdown.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/format/builtin_formatter_string_normalization_preserves_pep695_invalid_errors.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/format/builtin_formatter_string_normalization_preserves_pep695_invalid_errors@python3.11.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/input_model_transport/externalizes_schema_extensions.extras.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/branch_variants_match_jinja_for_models_macros_and_namespace_state.rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/every_built_in_template_matches_its_jinja_oracle.rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/external_base_model_module_helper_stays_on_jinja.rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/model_rendering_uses_generated_renderers_with_real_model_objects.rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/module_runtime_validation_helper_uses_generated_or_custom_jinja_renderer.custom.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/runtime_subset_matches_jinja_for_missing_filters_loops_and_namespace.rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/target_templates_match_jinja_oracle[client].rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/compiled_templates/target_templates_match_jinja_oracle[fastapi].rendered.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model/pydantic_v2/base_model/parser_simple_field_matches_public_constructor_for_schema_states[missing-sentinel].model.snapshot is excluded by none and included by none
  • tests/data/expected/model/pydantic_v2/base_model/parser_simple_field_matches_public_constructor_for_schema_states[standard-default].model.snapshot is excluded by none and included by none
  • tests/data/expected/model/pydantic_v2/base_model/schema_runtime_validation_unique_items_follows_model_description.model.txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/backend_comparisons/backend_comparisons[pydantic_containers-containers].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/backend_comparisons/backend_comparisons[pydantic_names-names-noalias].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/backend_comparisons/backend_comparisons[pydantic_names-names].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/backend_comparisons/backend_comparisons[pydantic_pets-backends].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codec_startup[structural_records-records-startup].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codec_startup[structural_stdlib-stdlib-startup].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codec_startup[structural_structs-structs-startup].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[pydantic_names-names-msgspec].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[pydantic_pets-pets-dataclass].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[pydantic_pets-pets-msgspec].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[pydantic_pets-pets-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_aliases-aliases-dataclass].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_aliases-aliases-msgspec].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_aliases-aliases-typeddict-enums].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_aliases-aliases-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_loose-loose-dataclass].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_loose-loose-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_native-containers-native-containers-dataclass].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_native-containers-native-containers-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_native-leaves-native-leaves-dataclass].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_native-leaves-native-leaves-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_native-leaves-native-temporal-dataclass].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_native-leaves-native-temporal-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_shapes-shapes-aliases].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_shapes-shapes-msgspec].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_stdlib-stdlib-frozen].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_stdlib-stdlib-typeddict].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_structs-structs-msgspec].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_structs-structs-options].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_unsupported-unsupported].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/structural_codecs/structural_codecs[structural_untyped-untyped].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[directions-accepted].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[directions-accepted]/_generated/contract.py is excluded by !**/_generated/** and included by tests/**/*.py, tests/data/expected/**/*.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas30].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas30]/_generated/contract.py is excluded by !**/_generated/** and included by tests/**/*.py, tests/data/expected/**/*.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas31].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas31]/_generated/contract.py is excluded by !**/_generated/** and included by tests/**/*.py, tests/data/expected/**/*.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas32].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas32]/_generated/contract.py is excluded by !**/_generated/** and included by tests/**/*.py, tests/data/expected/**/*.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[parameters].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[parameters]/_generated/contract.py is excluded by !**/_generated/** and included by tests/**/*.py, tests/data/expected/**/*.py
  • tests/data/expected/model_codecs/wire_plan/rules[dialects32].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/rules[dialects].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/model_codecs/wire_plan/rules[querystring-version].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/prepare_release_draft_analysis_script/main_routes_files_without_mocks[blank_record-1].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/prepare_release_draft_analysis_script/main_routes_files_without_mocks[codspeed-1].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/prepare_release_draft_analysis_script/main_routes_files_without_mocks[skip_safe-16].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-bounded_error].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-deep].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-errors_array].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-latest_error].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-sdk_billing_error].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-sdk_invalid_request].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-sdk_max_output_tokens].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-sdk_model_context_window_exceeded].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-sdk_server_error].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-space].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-text_model_unavailable].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-text_permission].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/report_release_analysis_failure_script/failure_diagnostics[main-wrong_root].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[3.10].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[3.11].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[3.12].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[3.13].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[3.14].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[3.15].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[e2e].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[macos].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/discovery_includes_new_files_and_methods[windows].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[balanced].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[blank-nodeid].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[boolean-tests].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[boolean-weight].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[cr-nodeid].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[duplicate].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[empty-nodeid].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[empty-shard].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[empty].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[invalid-item].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[large-index].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[missing-index].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[negative-weight].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[newline-nodeid].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[ordered].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[parted].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[parts-apart].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[parts-capped-at-tests].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[parts-exceed-shards].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[second].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[unsupported].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[zero-tests].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/recipe_cli_validates_external_cases[zero-weight].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/test_shard_option_partitions_collection[all].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[empty-maps].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[exclude].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[record-empty].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[record-median].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[record-no-split].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[record].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/select_ci_test_shard_script/weights_cli_validates_external_cases[unmeasured-tests].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[active_after].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[control_in_code].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[double_backticks].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[generic_types].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[inert_markup].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[marker_in_code].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[plain_code].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[plain_text].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/expected/validate_release_draft_analysis_script/script_validates_inline_code[self_referencing_constraints].txt is excluded by !tests/data/**/*.txt and included by none
  • tests/data/report_release_analysis_failure/cases.json is excluded by !tests/data/**/*.json and included by none
Files selected for processing: 59

  • scripts/build_docs_examples.py
  • tests/api_generation/test_client_cli.py
  • tests/api_generation/test_client_cli.refs
  • tests/api_generation/test_fastapi_server.py
  • tests/api_generation/test_fastapi_server.refs
  • tests/data/expected/api_generation/fastapi_server/docs_project[howto].models.py
  • tests/data/expected/api_generation/fastapi_server/docs_project[howto].services.py
  • tests/data/expected/api_generation/fastapi_server/docs_project[tutorial].models.py
  • tests/data/expected/api_generation/fastapi_server/docs_project[tutorial].services.py
  • tests/data/expected/api_generation/fastapi_server/docs_tutorial_client.sync.py
  • tests/data/expected/input_model_transport/externalizes_field_metadata.py
  • tests/data/expected/input_model_transport/parses_only_external_raw_python_type.py
  • tests/data/expected/input_model_transport/property_names_survives_schema_copy.model.py
  • tests/data/expected/input_model_transport/property_names_uses_expression[boolean].py
  • tests/data/expected/input_model_transport/property_names_uses_expression[integer].py
  • tests/data/expected/input_model_transport/property_names_uses_expression[string].py
  • tests/data/expected/input_model_transport/survives_external_ref.py
  • tests/data/expected/input_model_transport/survives_local_ref_and_allof_merges.py
  • tests/data/expected/model/pydantic_v2/config/base_model_alias_generator_adds_field_import_for_mismatch.py
  • tests/data/expected/model/pydantic_v2/config/base_model_alias_generator_keeps_non_alias_early_returns.py
  • tests/data/expected/model/pydantic_v2/config/base_model_alias_generator_omits_matching_alias_field_import.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[directions-accepted]/application.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas30]/application.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas31]/application.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[oas32]/application.py
  • tests/data/expected/model_codecs/wire_plan/bundles_validate[parameters]/application.py
  • tests/model/pydantic_v2/test_base_model.py
  • tests/model/pydantic_v2/test_base_model.refs
  • tests/model/pydantic_v2/test_config.py
  • tests/model/pydantic_v2/test_config.refs
  • tests/model/test_compiled_templates.py
  • tests/model/test_compiled_templates.refs
  • tests/model_codecs/test_backend_comparisons.py
  • tests/model_codecs/test_backend_comparisons.refs
  • tests/model_codecs/test_structural_codecs.py
  • tests/model_codecs/test_structural_codecs.refs
  • tests/model_codecs/test_wire_plan.py
  • tests/model_codecs/test_wire_plan.refs
  • tests/test_architecture_boundaries.py
  • tests/test_architecture_boundaries.refs
  • tests/test_ci_coverage_script.py
  • tests/test_ci_coverage_script.refs
  • tests/test_ci_workflow.py
  • tests/test_compare_release_script.py
  • tests/test_compare_release_script.refs
  • tests/test_docs_formatting.py
  • tests/test_docs_formatting.refs
  • tests/test_format.py
  • tests/test_format.refs
  • tests/test_input_model_transport.py
  • tests/test_input_model_transport.refs
  • tests/test_prepare_release_draft_analysis_script.py
  • tests/test_prepare_release_draft_analysis_script.refs
  • tests/test_report_release_analysis_failure_script.py
  • tests/test_report_release_analysis_failure_script.refs
  • tests/test_select_ci_test_shard_script.py
  • tests/test_select_ci_test_shard_script.refs
  • tests/test_validate_release_draft_analysis_script.py
  • tests/test_validate_release_draft_analysis_script.refs
Files with no reviewable changes: 2

  • tests/api_generation/test_client_cli.py
  • tests/test_ci_workflow.py

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

@github-actions

Copy link
Copy Markdown
Contributor

@codspeed

codspeed Bot commented Nov 21, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 25.1%

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

⚠️ 52 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

❌ 52 regressed benchmarks
✅ 1 untouched benchmark
⏩ 98 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_perf_load_pyproject_config[config-None] 177.1 µs 273.1 µs -35.15%
❌ test_perf_load_pyproject_config[config-multiple] 190.8 µs 290.3 µs -34.29%
❌ test_perf_load_pyproject_config[mapping-None] 181.1 µs 274.9 µs -34.13%
❌ test_perf_simple_pydantic_v2_field_construction 8.9 ms 13.5 ms -34.07%
❌ test_perf_load_pyproject_config[mapping-multiple] 194.2 µs 293.3 µs -33.79%
❌ test_perf_pattern_properties_adapter_reuse 2.9 ms 4.1 ms -29.32%
❌ test_perf_mapped_reference_users 665.6 ms 939.3 ms -29.14%
❌ test_perf_false_reference_validation 300.2 ms 420.9 ms -28.7%
❌ test_perf_recommend_options_full_kubernetes_style 19.8 s 27.6 s -28.46%
❌ test_perf_client_calls[sync] 32 ms 44.5 ms -28.15%
❌ test_perf_local_reference_file_resolution 121.9 ms 167.8 ms -27.33%
❌ test_perf_large_models_pydantic_v2_builtin_double_quotes 1.4 s 1.9 s -27.2%
❌ test_perf_unique_items_schema_validators 320.8 ms 439.7 ms -27.04%
❌ test_perf_scalar_root_collapsed_builtin 195 ms 267.2 ms -27.01%
❌ test_perf_complex_refs 1.8 s 2.4 s -26.99%
❌ test_perf_deep_nested 4.4 s 6 s -26.47%
❌ test_perf_inherited_required_fields[partial-derived-first] 1.2 s 1.7 s -26.46%
❌ test_perf_inherited_required_fields[required-base-first] 695.2 ms 944.8 ms -26.42%
❌ test_perf_unique_items_collapsed_builtin 253.3 ms 343.5 ms -26.27%
❌ test_perf_inherited_required_fields[required-derived-first] 744.7 ms 1,008.7 ms -26.17%
... ... ... ... ...

ℹ️ 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-paths-b15 (aa8fb4f) with main (9660348)

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 21, 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 c4fb9d8 into main Nov 21, 2026
129 of 130 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the drop-expected-paths-b15 branch November 21, 2026 18:58
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: This PR only reorganizes the test harness. Expected-output fixtures are renamed with no content changes, so that each output is stored under the name of its own test. Tests call assert_output by name or suffix instead of passing explicit paths, the refs files are regenerated, and the expected field is dropped from a test cases JSON file. The internal scripts/build_docs_examples.py now reads documentation examples from the new fixture locations, and a migration note in the harness category is added. No file under the src package changes, so there are no changes to the CLI options, the Python API, the templates, default behaviour, error handling or supported Python versions. The behaviour diff gate lists only both-fail cells and no accepted or violation cells, which confirms that default generated output is unchanged.


This analysis was produced by the release draft workflow

@github-actions

Copy link
Copy Markdown
Contributor

🎉 Released in 0.100.0

This PR is now available in the latest release. See the release notes for details.

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.

1 participant