Skip to content

Wait for the test server before reading what it saw - #6682

Merged
Koudai Aono (koxudaxi) merged 2 commits into
qparams-linearfrom
ws-race
Nov 10, 2026
Merged

Koudai Aono (koxudaxi) merged 2 commits into
qparams-linearfrom
ws-race

Conversation

@koxudaxi

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

Copy link
Copy Markdown
Member

Fixes: #6680

Summary by CodeRabbit

  • Tests
    • No user-visible changes; reported output remains unchanged.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

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.

Run configuration

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

Five AsyncAPI WebSocket test scenarios now store played.report() before appending the server-received-message summary. The reported output is unchanged.

Changes: AsyncAPI socket test ordering

Layer / File(s) Summary
Report before server summary
tests/api_generation/scenarios/client_asyncapi_sockets.py
Five scenarios store played.report() in a local variable before appending the server-received-message summary.

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

Change: Other · Severity of issue fixed: Low

Suggested labels: breaking-change-analyzed

Merge Risk: Minimal · previous review 975ab

The socket scenarios wait for the server report before summarizing received messages. No merge-blocking risk is identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: waiting for the test server before reading its collected messages.
Linked Issues check Passed Issue #6680 requires the five affected WebSocket scenarios to wait for played.report() before reading seen. In _orders, asyncapi_union_sends, asyncapi_subclass_sends, `asyncapi_enum_tag_send…
Out of Scope Changes check Passed The diff changes only the five scenario expressions identified by issue #6680. Each change implements the required ordering. No unrelated changes appear in the reviewed diff.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

Issue #6680 requires the five affected WebSocket scenarios to wait for played.report() before reading seen. In _orders, asyncapi_union_sends, asyncapi_subclass_sends, asyncapi_enum_tag_sends, and asyncapi_connections, the code now assigns report = played.report() before constructing the server-received-message summary. This preserves the report output and ensures the wait completes before reading seen.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
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 b2f7edb and 975abad.

Files selected for processing: 1

  • tests/api_generation/scenarios/client_asyncapi_sockets.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.

@koxudaxi
Koudai Aono (koxudaxi) marked this pull request as ready for review November 10, 2026 12:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-10T12:08:34.140562Z 975abad Draft marked ready
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 45.01%

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

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

⚡ 53 improved benchmarks
⏩ 98 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_perf_client_calls[sync] 44.2 ms 24.7 ms +78.73%
⚡ test_perf_simple_msgspec_unset_field_rendering 586.9 ms 340.7 ms +72.23%
⚡ test_perf_client_calls[async] 47.9 ms 28.1 ms +70.8%
⚡ test_perf_load_pyproject_config[mapping-None] 243.1 µs 143 µs +69.99%
⚡ test_perf_load_pyproject_config[config-multiple] 258.9 µs 153.2 µs +69.03%
⚡ test_perf_load_pyproject_config[config-None] 236.6 µs 140.3 µs +68.69%
⚡ test_perf_load_pyproject_config[mapping-multiple] 256.5 µs 154.5 µs +66.03%
⚡ test_perf_scalar_root_collapsed_builtin 231 ms 145.2 ms +59.02%
⚡ test_perf_ordinary_array_constraint_generation 2.3 s 1.5 s +53.74%
⚡ test_perf_local_reference_file_resolution 153.7 ms 101.1 ms +51.99%
⚡ test_perf_large_models_single_module_stdout 1.9 s 1.2 s +51.7%
⚡ test_perf_large_models_pydantic_v2_builtin 1.6 s 1 s +50.16%
⚡ test_perf_large_models_dataclass_builtin 1.6 s 1.1 s +50.01%
⚡ test_perf_mapped_reference_users 944.4 ms 638.1 ms +48.01%
⚡ test_perf_large_models_pydantic_v2_builtin_double_quotes 1.7 s 1.1 s +47.89%
⚡ test_perf_deep_nested 6.5 s 4.4 s +47.65%
⚡ test_perf_large_models_typed_dict[legacy-requiredness] 1,364.7 ms 924.3 ms +47.65%
⚡ test_perf_inherited_required_fields[required-derived-first] 869.5 ms 591 ms +47.12%
⚡ test_perf_large_models_msgspec 2.4 s 1.6 s +47.06%
⚡ test_perf_complex_refs 2.5 s 1.7 s +46.6%
... ... ... ... ...

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

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ws-race (3f6e885) with qparams-linear (b2f7edb)

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

@koxudaxi
Koudai Aono (koxudaxi) merged commit 4e407d7 into main Nov 10, 2026
114 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the ws-race branch November 10, 2026 15:42
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: The PR only touches documentation and a test helper. The docs files target-generation-options.md and llms-full.txt drop reserved_names arguments from ParameterPlan examples and reformat one call onto a single line, which refreshes example output only and changes no generator source code. The test file client_asyncapi_sockets.py now stores played.report() in a local variable before extending lines, which is an internal test refactor. No CLI options, Python API, templates, defaults, supported Python versions, or error handling are changed in this diff, and the behaviour diff gate did not run, so no generated-output change is attributed to this PR.


This analysis was produced by the release draft workflow

@github-actions

Copy link
Copy Markdown
Contributor

🎉 Released in 0.93.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.

AsyncAPI client runtime tests read server messages before the server ends

1 participant