Skip to content

refactor(release): use the shared release workflow - #8006

Merged
dan-petty merged 4 commits into
mainfrom
refactor/7980-shared-release-workflow
Dec 1, 2026
Merged

dan-petty merged 4 commits into
mainfrom
refactor/7980-shared-release-workflow

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Merge only while no Release or Release Merge run is active, auto-merge of the release pull request is off and no release waits for publication.

The repository template of the library github-workflows owns release.yml. This repository kept its own file there, which also published each release, so each library release conflicted in it (design B of #7980).

release.yml is now the render at v0.5.1. It calls the release workflow of the library and, for a release, the new publish.yml, which holds the publish jobs and takes the release tag and commit. Each job with needs states its condition, so the result of the release job does not decide it. Job names start with Release / or Publish /, and devops ci job-time reads the new names. The signer of the devcontainer attestation is now publish.yml. The concurrency group is now release, so a run of the old workflow can overlap a new run.

Closes #7980

Change: openspec/changes/archive/2026-12-01-7980-shared-release-workflow/

release.yml is the render of the repository template at v0.5.0, and publish.yml holds the publish jobs (design B of #7980). devops ci job-time reads the new names of the release image jobs.
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/release The release-please workflow, the changelog and the published artifacts labels Dec 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: db5898e588a4c2221dcf59a3057d3c3dac59bc27

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

Skipped check: Plan Check
Skipped check: Fail-to-Pass Check
Skipped check: Tests on Main
Skipped check: Test Job Duration

@dan-petty

Copy link
Copy Markdown
Owner Author

Steps for the person who merges

Before the merge

  1. Do not merge chore(deps): update dan-petty/github-workflows template to v0.4.1 - autoclosed #7981 first. This pull request holds a newer template release.
  2. Wait until no Release run is active.
  3. In the open release pull request, click Disable auto-merge. Skip this step when no release pull request is open. Do not start near 00:00, 06:00, 12:00 or 18:00 UTC, when Release Merge runs.
  4. In the main checkout of the workspace, run the read-only check and the merge as one command:
    bash .data/agent/scratch/check-7980-merge-window.sh \
      && gh pr merge 8006 --repo dan-petty/devops-cli --squash --match-head-commit db5898e588a4c2221dcf59a3057d3c3dac59bc27
    On a FAIL, correct the named item and run the command again. A push to main turns the auto-merge on again. The script is not in git.
  5. If you do not merge, turn the auto-merge of the release pull request on again. The next push to main also does this.

After the merge

  1. Check the Release run of the merge commit: gh run list --repo dan-petty/devops-cli --workflow release.yml --limit 3. Release / Release Please passes and Publish is skipped. A startup_failure means: roll back.
  2. Check that the release pull request is updated and has auto-merge.
  3. At the first release, each Publish / ... job passes. Then check the release and the signer:
    gh api repos/dan-petty/devops-cli/releases/tags/<tag> --jq '{draft, immutable, assets: [.assets[].name]}'
    gh attestation verify oci://ghcr.io/dan-petty/devops-cli/devcontainer:<tag> --repo dan-petty/devops-cli \
      --cert-identity https://github.com/dan-petty/devops-cli/.github/workflows/publish.yml@refs/heads/main
    Expected: draft false, immutable true, the wheel, the sdist and SHA256SUMS.txt, and a verified attestation.
  4. Test Job Duration fails until 10 releases have the new job names. It then reads too few runs and files no issue.
  5. Do not re-run a Release run from before the merge. It uses the old workflow in another concurrency group.

Rollback

  1. Prepare the window as above.
  2. Click Revert on this pull request. Give the title revert(release): use the shared release workflow.
  3. Merge when the required checks pass and the check script passes.
  4. A release that is a draft at this time, or whose release pull request merged between the two merges, can refuse its publication (HTTP 403). Publish it by hand (RELEASE_CYCLE.md). Re-run the failed jobs of a new draft before the revert merges.

@dan-petty
dan-petty marked this pull request as ready for review December 1, 2026 03:06
@dan-petty
dan-petty merged commit d012e7d into main Dec 1, 2026
39 checks passed
@dan-petty
dan-petty deleted the refactor/7980-shared-release-workflow branch December 1, 2026 03:10
dan-petty-release Bot added a commit that referenced this pull request Dec 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.268.3](v0.268.2...v0.268.3)
(2026-12-01)


### Code Refactoring

* **release:** use the shared release workflow
([#8006](#8006))
([d012e7d](d012e7d))

---
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/release The release-please workflow, the changelog and the published artifacts type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(release): use the shared release workflow

1 participant