Skip to content

Ask for one PyPI approval per release - #6745

Merged
Koudai Aono (koxudaxi) merged 1 commit into
mainfrom
publish-one-approval
Nov 12, 2026
Merged

Koudai Aono (koxudaxi) merged 1 commit into
mainfrom
publish-one-approval

Conversation

@koxudaxi

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

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated release publishing conditions: package releases now wait for required builds, and container publishing requires a successful release and a tag.
    • Alias publication now runs only when both builds succeed and the workflow has not been canceled.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The publish workflow now gates package release jobs on build results and dispatch conditions. The Docker job now requires a successful release and a tag ref, and does not run after cancellation.

Changes: Publication workflow gating

Layer / File(s) Summary
Package release gates
.github/workflows/publish.yaml
The release job requires a successful build and skips alias-only manual dispatches. The release_alias job requires successful build and build_alias results and no cancellation.
Docker release gate
.github/workflows/publish.yaml
The Docker job runs only when release succeeds, the ref is a tag, and the workflow has not been cancelled.

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

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to 9fd5e

This change adjusts when the PyPI release, alias release, and Docker publish jobs run. No actionable merge-blocking risk remains in the supplied review context.

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 "Ask for one PyPI approval per release" matches the main change in the publish workflow. The release job now runs once per release and the alias publication path is changed so that it no lon…
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 "Ask for one PyPI approval per release" matches the main change in the publish workflow. The release job now runs once per release and the alias publication path is changed so that it no longer waits on the release job. The title names the approval behaviour, while the summary describes the job dependency and condition changes. The title is specific and short, and it is consistent with the commit message intent recorded in the PR objectives.

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 94a47cf and 9fd5ee8.

Files selected for processing: 1

  • .github/workflows/publish.yaml

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

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

chatgpt-codex-connector Bot commented Nov 12, 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-12T01:29:08.912145Z 9fd5ee8 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 12, 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 12, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 45.08%

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 regressed benchmarks
⏩ 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[mapping-None] 113.1 µs 249.9 µs -54.75%
❌ test_perf_load_pyproject_config[config-None] 112.8 µs 245.2 µs -54%
❌ test_perf_load_pyproject_config[mapping-multiple] 121.7 µs 264.4 µs -53.96%
❌ test_perf_load_pyproject_config[config-multiple] 122.1 µs 264.5 µs -53.83%
❌ test_perf_pattern_properties_adapter_reuse 2 ms 4.1 ms -50.6%
❌ test_perf_mapped_reference_users 495.2 ms 991.8 ms -50.08%
❌ test_perf_client_calls[async] 24.8 ms 48.1 ms -48.5%
❌ test_perf_large_models_dataclass_builtin 876.2 ms 1,684.1 ms -47.97%
❌ test_perf_scalar_root_collapsed_builtin 124.5 ms 238.7 ms -47.83%
❌ test_perf_empty_pydantic_v2_field_render_plans 19.8 ms 37.5 ms -47.36%
❌ test_perf_inherited_required_fields[required-derived-first] 487.2 ms 924.9 ms -47.33%
❌ test_perf_local_reference_file_resolution 84.9 ms 160.9 ms -47.25%
❌ test_perf_false_reference_validation 232.7 ms 438.9 ms -46.98%
❌ test_perf_large_models_pydantic_v2 2.1 s 4 s -46.85%
❌ test_perf_large_models_typed_dict[legacy-requiredness] 762.6 ms 1,431.9 ms -46.74%
❌ test_perf_large_models_pydantic_v2_noformat 893.2 ms 1,666.1 ms -46.39%
❌ test_perf_multiple_files_input 2.6 s 4.8 s -46.38%
❌ test_perf_all_options_enabled 3.5 s 6.6 s -46.21%
❌ test_perf_complex_refs 1.3 s 2.4 s -46.2%
❌ test_perf_kubernetes_style_pydantic_v2 1.6 s 3 s -45.68%
... ... ... ... ...

ℹ️ 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 publish-one-approval (9fd5ee8) with main (94a47cf)

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 38c0c27 into main Nov 12, 2026
112 of 113 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the publish-one-approval branch November 12, 2026 04:40
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: The PR only changes the GitHub Actions publish workflow file, adjusting job dependencies and conditions so the PyPI release and the alias release can be approved together and the Docker push reads the release result directly; it does not touch generated code, templates, the CLI or Python API, default behavior, supported Python versions, or error handling, so there are no breaking changes for users.


This analysis was produced by the release draft workflow

@github-actions

Copy link
Copy Markdown
Contributor

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