Skip to content

Declare the known differences of the nightly composition draws - #7499

Merged
Koudai Aono (koxudaxi) merged 7 commits into
mainfrom
nightly-known-7112
Nov 24, 2026
Merged

Koudai Aono (koxudaxi) merged 7 commits into
mainfrom
nightly-known-7112

Conversation

@koxudaxi

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

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Tests
    • Expanded validation of composed shape rules across composition depths and parameter domains.
    • Added coverage for legacy rejection cases involving string values and narrowing extensions.
  • Documentation
    • Clarified which composed-rule cases are covered when no individual composition level distinguishes them.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 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-24T17:47:12.945491Z 9bb0c0a 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 24, 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

The composition fixture adds a legacy rule for a string-length interaction in nested shapes. The well-formedness test now accepts composition rules and validates their boxes against parameter values at each composition depth.

Changes: Composition Rule Definitions and Validation

Layer / File(s) Summary
Composition rule cases
tests/main/shape_families/compose.py
The fixture documentation describes rules that match composition parameters. It adds a legacy rule for a mixin and nested extend combination involving string lengths and maxItems.
Composition box validation
tests/main/test_shape_compositions.py
The well-formedness test accepts COMPOSITION rules and checks their boxes against composition parameter domains. It continues to validate other rule boxes against placement views.

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

Change: Other

Merge Risk: Minimal · previous review a350a · assessed changes only

Merge Risk: ⚪ Minimal · up to a350a

Path filters excluded changed files. This rating applies only to the assessed changes.

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 says the PR declares known differences of the nightly composition draws. The change set matches this. It adds a COMPOSED rule for composition-level differences, a _STRING_SECONDS constant, a…
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 says the PR declares known differences of the nightly composition draws. The change set matches this. It adds a COMPOSED rule for composition-level differences, a _STRING_SECONDS constant, and a legacy rejects-valid rule. It also changes test_shape_compositions.py to validate composition boxes against parameter domains. The title names the main change at a high level, though it uses the term 'nightly composition draws' without explaining it. A reviewer scanning history can still tell the primary purpose.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • 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 0660b6b and b6bdf02.

Files ignored due to path filters: 1

  • docs/data/migration/unreleased/bug-g33-union-shape-warnings-compositions.toml is excluded by none and included by none
Files selected for processing: 2

  • tests/main/shape_families/compose.py
  • tests/main/test_shape_compositions.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 24, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 62.65%

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[async] 62.4 ms 28.2 ms ×2.2
⚡ test_perf_large_models_single_module_stdout 2.6 s 1.3 s +98.87%
⚡ test_perf_mapped_reference_users 1,142.3 ms 589.3 ms +93.85%
⚡ test_perf_inherited_required_fields[partial-derived-first] 2.2 s 1.1 s +92.56%
⚡ test_perf_local_reference_file_resolution 201 ms 105.1 ms +91.28%
⚡ test_perf_complex_refs 3 s 1.6 s +87.99%
⚡ test_perf_target_render[client-large] 23 s 12.4 s +86.18%
⚡ test_perf_multiple_files_input 5.8 s 3.1 s +85.4%
⚡ test_perf_ordinary_array_constraint_generation 3.5 s 1.9 s +78.53%
⚡ test_perf_false_reference_validation 475.1 ms 266.9 ms +78.01%
⚡ test_perf_large_models_pydantic_v2_noformat 2 s 1.1 s +77.83%
⚡ test_perf_client_calls[sync] 44.3 ms 24.9 ms +77.81%
⚡ test_perf_simple_msgspec_unset_field_rendering 606.8 ms 348.2 ms +74.29%
⚡ test_perf_inherited_required_fields[required-derived-first] 1,112.9 ms 643.2 ms +73.01%
⚡ test_perf_large_models_pydantic_v2 4.7 s 2.7 s +72.83%
⚡ test_perf_openapi_large 4.2 s 2.5 s +70.36%
⚡ test_perf_load_pyproject_config[mapping-None] 282.3 µs 167 µs +69.02%
⚡ test_perf_large_models_typed_dict[total-false-requiredness] 1,580 ms 941.4 ms +67.84%
⚡ test_perf_load_yaml_openapi_large 44.9 ms 27 ms +66.3%
⚡ test_perf_load_pyproject_config[config-None] 274.1 µs 165.4 µs +65.73%
... ... ... ... ...

ℹ️ 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 nightly-known-7112 (808d1f9) with main (0660b6b)

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 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koxudaxi

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Path filters excluded 1 file from this review.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@koxudaxi
Koudai Aono (koxudaxi) merged commit f607038 into main Nov 24, 2026
160 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the nightly-known-7112 branch November 24, 2026 18:46
@github-actions

Copy link
Copy Markdown
Contributor

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