You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drop the expected-path arguments of the CLI, API and parser leftovers - #7247
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The pull request updates test assertions and expected-output references across API-generation, Avro, Protocol Buffers, GraphQL, HTTP, and main CLI suites. It also removes several Avro generated fixtures. It does not show runtime implementation changes.
Changes: Test snapshot and assertion updates
Layer / File(s)
Summary
Client CLI test expectations tests/api_generation/test_client_cli.py, tests/api_generation/test_client_cli.refs
Several tests now compare inline or named output instead of loading expected files. Snapshot references point to API-generation snapshots.
FastAPI and target-generation expectations tests/api_generation/test_fastapi_cli.py, tests/api_generation/test_fastapi_cli.refs, tests/api_generation/test_generate_targets.py, tests/api_generation/test_generate_targets.refs, tests/assert_helper_allowlists.py
FastAPI and target-generation tests remove or change expected-file comparisons. Their snapshot references use API-generation paths, and the command-output allowlist drops one fixture entry.
Avro fixtures and snapshots tests/main/avro/test_main_avro.py, tests/main/avro/test_main_avro.refs, tests/data/expected/main/avro/py310/*
Avro tests remove generated-file comparisons, and snapshot references move to consolidated fixtures. Several generated fixture files are deleted.
Tests remove expected-file comparisons while retaining other checks. Snapshot references point to renamed or relocated fixtures.
GraphQL and HTTP snapshots tests/parser/test_graphql.py, tests/parser/test_graphql.refs, tests/test_http.py, tests/test_http.refs
GraphQL tests remove expected-file arguments. The HTTP test reference changes to a test-specific snapshot.
Main CLI generation and configuration expectations tests/test_main_kr.py, tests/test_main_kr.refs
Tests update expected-output arguments and documentation fixture paths across generation, configuration, profiles, and code-generation options. Snapshot references include test-specific entries.
Main CLI output, jobs, and validation expectations tests/test_main_kr.py, tests/test_main_kr.refs
Tests change comparisons for batch, jobs, JSON output, validation, and profiles. Snapshot references use test-specific paths for these cases.
This PR only reorganizes test assertions and expected-output snapshots. It does not change runtime behavior. No actionable merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the change: removing expected-path arguments from the CLI, API, and parser test leftovers. The changeset removes expected-output fixture arguments from CLI, FastAPI/client CLI, GraphQL…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the change: removing expected-path arguments from the CLI, API, and parser test leftovers. The changeset removes expected-output fixture arguments from CLI, FastAPI/client CLI, GraphQL, protobuf, Avro, and HTTP tests, and deletes the matching generated fixtures. The title is specific and matches the PR objectives. It uses the term 'leftovers', which is slightly informal, but the main change is clear.
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.
Reviewing files that changed from the base of the PR and between 61c53ca and 7a65b85.
Files ignored due to path filters: 49
docs/data/migration/unreleased/drop-expected-path-arguments-11.toml is excluded by none and included by none
tests/data/expected/api_generation/client_cli/jobs[differing-models].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/json_file_documents[absolute].documents.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/json_file_documents[absolute].notice.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/leftover_files.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/leftover_files_jobs.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/member_types[options].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/pyproject_paths.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/pyproject_protocols_file.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/client_cli/shadowed_module.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/config_values[loaded].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/conflicts[diff].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/implementation_stubs.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/implied_notice_stdin.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/include_paths.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/input_diff_model_name_map_warnings.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/jobs[differing-models].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/jobs_json.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/jobs_json_paths.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/leftover_files.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/model_and_form_dependencies.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/nested_models_example.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/removed_options[dependency-format].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/shared_models_jobs.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/shared_parent_jobs[existing-stub].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/shared_parent_jobs[other-document].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/shared_parent_jobs[other-tags].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/api_generation/fastapi_cli/shared_parent_later_job.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/http/cli_diff_locks_old_and_new_remote_closures_without_committing_on_difference.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/protobuf/main_protobuf/convert_protobuf_schema_data_preserves_yaml_safe_non_finite_defaults.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main/protobuf/main_protobuf/native_referenced_standard_types[nullvalue].txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/generate_pyproject_config_helper_uses_default_formatter.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_check_missing_output_file.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_check_output_directory_differences.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_check_output_file_difference.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_check_text_reports_output_file_difference.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_generation_mapping_payload.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_generation_output_directory.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_generation_output_file.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_json_ready_values.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_normalizes_multiple_generation_output_paths.generation_output_path_normalized.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_normalizes_multiple_generation_output_paths.generation_stdout_path_normalized.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/output_format_json_rejects_watch.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/pyproject_jobs_abort_runtime_errors_without_publishing[output_format1-stale generated output_n].stale_metadata.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/pyproject_jobs_abort_runtime_errors_without_publishing[output_format1-stale generated output_n].stale_output.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/pyproject_jobs_json_is_one_ordered_payload.json_generation.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/pyproject_jobs_json_is_one_ordered_payload.ordered_outputs.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/pyproject_jobs_json_reports_check_results.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/main_kr/pyproject_jobs_staging_failure_keeps_primary_error_when_anchor_cleanup_fails.txt is excluded by !tests/data/**/*.txt and included by none
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
⚠️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.
Reasoning: The PR only touches the test harness. It renames stored expected-output files for the Avro, protobuf, GraphQL, HTTP, main_kr and client and FastAPI CLI tests to names derived from the tests, deletes seven duplicate Python 3.10 Avro stored outputs that matched the Python 3.11 ones, removes explicit expected_file, assert_func and path arguments from test calls, updates the refs index files and one test allowlist entry, and adds a migration note in the harness category. No library source, template, CLI option, Python API, error handling or Python version support changes. The behaviour diff gate lists only both-fail cells and no accepted or violation cells, so default generated output does not change compared with release 0.99.0.
This analysis was produced by the release draft workflow
This PR is now available in the latest release. See the release notes for details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit