Skip to content

Fix the 3.13 rows and the gate's memory cap below the worker - #7244

Merged
Koudai Aono (koxudaxi) merged 3 commits into
mainfrom
dotted-exports-rows-on-313
Nov 20, 2026
Merged

Koudai Aono (koxudaxi) merged 3 commits into
mainfrom
dotted-exports-rows-on-313

Conversation

@koxudaxi

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

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • Memory-limited runs now detect when current data-memory use already exceeds the enforced limit. In that case, generation is skipped, the run reports an out-of-memory result, and a memory error is written to stderr. Runs without an applicable exceeded limit continue as before.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T13:30:12.592817Z 512ddd3 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 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release comparison script now detects when worker data memory already exceeds an enforced cap and records an out-of-memory result without running the generator. Python 3.13 JSON Schema cycle-case manifest entries now expect API and CLI snapshot files.

Changes: Memory Cap Handling

Layer / File(s) Summary
Measure and enforce the memory cap
scripts/compare_release.py
The cap context checks worker data memory before applying the limit. If usage exceeds an enforced cap, the recorded-generation path skips the generator and records OUT_OF_MEMORY.

JSON Schema Snapshot Expectations

Layer / File(s) Summary
Update cycle-case expectations
tests/main/jsonschema/test_main_jsonschema.refs
Python 3.13 cycle-children, cycle-recursive, and cycle-collision entries add API and CLI snapshot-file expectations and remove CLI input-directory entries.

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

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 512dd

The change adjusts how the release comparison script handles a memory cap when the worker already uses more memory than the cap. It also updates the Python 3.13 snapshot expectations. No concrete merge risk was identified.

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 is in the imperative form and names two changes: recording the Python 3.13 test rows and the gate's memory cap handling. The summary covers the memory cap check in scripts/compare_release.py…
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 is in the imperative form and names two changes: recording the Python 3.13 test rows and the gate's memory cap handling. The summary covers the memory cap check in scripts/compare_release.py and the 3.13 snapshot expectations in the jsonschema refs file. The phrase "below the worker" is awkward and does not clearly state the behavior, which is that the run stops when the worker already uses more memory than the cap. The title is still related to the main changes, so it passes, though it could be clearer.

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 c5127a5 and 512ddd3.

Files selected for processing: 2

  • scripts/compare_release.py
  • tests/main/jsonschema/test_main_jsonschema.refs

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 20, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 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 untouched benchmarks
⏩ 98 skipped benchmarks1


Comparing dotted-exports-rows-on-313 (512ddd3) with main (c5127a5)

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 20, 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 1b6317b into main Nov 20, 2026
118 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the dotted-exports-rows-on-313 branch November 20, 2026 13:48
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: The PR only touches scripts/compare_release.py, an internal release comparison tool, and a test refs file. In the script, the memory cap context manager now yields whether the worker already holds more data memory than the cap, and a new helper reads VmData from proc status so such runs stop early with an out of memory code. The refs file only adds Python 3.13 test reference entries. Nothing changes in the shipped package code, CLI options, public Python API, templates, defaults, supported Python versions or error handling. The behaviour diff gate lists only both-fail cells and no accepted or violation cells, so default output does not change.


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