Skip to content

fix(ci): publish a release only after its files are attached - #7339

Merged
dan-petty merged 1 commit into
mainfrom
fix/7328-release-draft-then-publish
Nov 26, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7328-release-draft-then-publish

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The repository has immutable releases, so GitHub refuses a file for a published release. The release of v0.223.0 went out without its wheel, sdist and checksums, and each later release run would fail the same way.

release-please now creates the tag and a draft release (draft and force-tag-creation). The job that attaches the files publishes the release in the same script, so a failed upload leaves a draft and publishes nothing. The release feed leaves out a release with no publication time. RELEASE_CYCLE.md says how to finish a release that stays a draft. Immutable releases stay on.

Only a real release can prove the whole cycle. ADR 0013 now says that there is no draft release; its next change must supersede it.

Closes #7328

Change: openspec/changes/archive/2026-11-26-7328-release-draft-then-publish/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 26, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

What only the first real release after the merge can prove:

  1. The run creates the tag and a draft release, attaches the three files and publishes it.
  2. The image jobs check out the released commit as before.
  3. The next release-please run finds this release and opens a correct release pull request.
  4. The roadmap Service gets the release published event and comments on the closed issues.

One known limit: GitHub documents that publishing needs the workflows permission when the workflow files of the released commit differ from main. GITHUB_TOKEN does not have it. If a workflow change merges between the draft and the publication, the release stays a draft and a person publishes it (RELEASE_CYCLE.md, "A Release That Stays a Draft").

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 915b7ca7e631f45b9f6e9c085b9c00f299d78183

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
Plan Check skipped run
Changed-Test Independence success run
CodeQL success run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Runner Image success run
Static Analysis success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Changed-Test Independence (run 1 of 3) success run
Design Tokens success run
Tests & Coverage (shard 5 of 5) success run
Changed-Test Independence (run 2 of 3) success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 4 of 5) success run
Tests & Coverage (shard 2 of 5) success run
Service Image success run
Semantic PR title success run
Docs Site Build success run
Fail-to-Pass Check success run
Analyze (actions) success run
Analyze (python) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/45889732374/job/140149112892

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

@dan-petty
dan-petty marked this pull request as ready for review November 26, 2026 20:24
@dan-petty
dan-petty merged commit 8735301 into main Nov 26, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/7328-release-draft-then-publish branch November 26, 2026 20:42
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.223.2](v0.223.1...v0.223.2)
(2026-11-26)


### Bug Fixes

* **ci:** publish a release only after its files are attached
([#7339](#7339))
([8735301](8735301))
* **github:** refuse an issue read that answers for another issue
([#7336](#7336))
([ff6c0cc](ff6c0cc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): release upload fails on immutable releases

1 participant