Skip to content

Remove incomplete prereleases after asset upload failures - #59887

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/29411d6d1e649f4e8c67e84a41d9de2c9d31558f
Nov 6, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/29411d6d1e649f4e8c67e84a41d9de2c9d31558f

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Remove incomplete prereleases after asset upload failures

Why

Prereleases are published before their assets are uploaded. A failed upload can leave an incomplete public release and prevent a rerun from recreating its prereleased event.

What changed

Track newly created prereleases and successful asset uploads in the release workflow. Remove a newly created prerelease if its upload fails, preserving the tag so a rerun can recreate the release. Keep existing releases and releases whose assets finished uploading, even if the metadata update fails.

Testing

Add a regression test that runs the workflow commands with a stubbed gh, covering upload failure cleanup, a successful rerun, preservation of existing prereleases, and metadata update failures after upload.

## Why

Prereleases are published before their assets are uploaded. A failed upload can leave an incomplete public release and prevent a rerun from recreating its `prereleased` event.

## What changed

Track newly created prereleases and successful asset uploads in the release workflow. Remove a newly created prerelease if its upload fails, preserving the tag so a rerun can recreate the release. Keep existing releases and releases whose assets finished uploading, even if the metadata update fails.

## Testing

Add a regression test that runs the workflow commands with a stubbed `gh`, covering upload failure cleanup, a successful rerun, preservation of existing prereleases, and metadata update failures after upload.

GitOrigin-RevId: 29411d6d1e649f4e8c67e84a41d9de2c9d31558f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/29411d6d1e649f4e8c67e84a41d9de2c9d31558f branch from efb4f47 to b6f5385 Compare November 6, 2026 11:32
@copyberry
copyberry Bot merged commit b6f5385 into main Nov 6, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/29411d6d1e649f4e8c67e84a41d9de2c9d31558f branch November 6, 2026 11:33
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-06T11:33:02.566970Z efb4f47 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch was previously deployed

1 inactive deployment
issue-triage — b6f53857 Deployed Nov 6, 2026 by lidge-jun via Identify potential duplicates (all issues) #61866
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants