Skip to content

ci(release): merge the release pull request every 6 hours - #3934

Merged
dan-petty merged 3 commits into
mainfrom
ci/3921-release-scheduled-merge
Nov 7, 2026
Merged

dan-petty merged 3 commits into
mainfrom
ci/3921-release-scheduled-merge

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A scheduled workflow, release-merge.yml, squash-merges the release pull request of release-please every 6 hours. The module devops_cli.release.merge_candidate picks it only when the release App opened it, its files are the ones release-please writes, every required check passed, no other check failed, main has no red required check, and no label hold-release is set. The release App token is only in the merge step. RELEASE_CYCLE.md states how to hold or stop it.

Closes #3921

Change: openspec/changes/archive/2026-11-07-3921-release-scheduled-merge/

@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/release The release-please workflow, the changelog and the published artifacts labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks run

  • Full uv run devops ci before the rebase: every row passed, except one test: tests/commands/test_ci.py::test_github_workflows_caching_configuration. It wanted a uv cache in the new workflow. The new workflow holds a write token, so it restores no cache, as release.yml does. The test now lists both files. tests/commands/test_ci.py passes after the change (124 tests). The test row took 9m 19s, over the 5 minute budget, and the slowest tests are not from this change (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593).
  • After the rebase onto the commit that held docs(security): ignore an unfixable finding for 3 days #3931, these passed: tests/invariants/test_agents_md_claims.py, tests/invariants/test_workflow_contracts.py, tests/release, tests/commands/test_ci.py, tests/invariants/test_change_folders.py, uv run devops ci docs and uv run devops openspec check. The full gate was not run again after the rebase.
  • uv run devops scan workflows (zizmor) and actionlint pass on release-merge.yml.
  • The module runs against the real repository with a read-only token and runtime dependencies only (uv run --locked --no-dev). It refused pull request 3888 because the checks Runner Image and Service Image failed on its head. Every other guard passed.

Consequence for the cluster

Each merge makes a release. Each release builds the service, runner and DevContainer images, and Argo CD Image Updater moves the cluster onto them. The schedule allows up to 4 releases a day, and up to 4 image rollouts a day.

Guard that is stricter than the request

The request said "every required check is success". The module also refuses when a check that no rule requires failed on the head. The jobs service-image and runner-image of release.yml run the same scan as the checks Service Image and Runner Image. A merge with a failing scan tags a version and publishes no image. A person can still merge by hand. To drop this guard, remove the last loop of _check_refusals and its test.

What a person must do

Nothing changes in the repository settings, the rulesets, the App permissions or the secrets. The ruleset needs 0 approvals, allow_auto_merge is on, and the release App token has the two permissions that the merge needs.

  1. After the merge of this pull request, run devops gh labels sync so that the label hold-release exists.
  2. Open the Actions tab, choose Release Merge, and press Run workflow once. Read the log of the step Pick the Release Pull Request. When a pull request merges, check that the Release run starts and creates the release.
  3. To hold a release, set the label hold-release on the release pull request. To stop the schedule, choose Disable workflow on Release Merge.

Decisions for a person

  • Keep or drop the stricter guard above.
  • The cron runs at 00:00, 06:00, 12:00 and 18:00 UTC. Change cron in release-merge.yml and the test if another time is better.
  • Other agents edit AGENTS.md too, and the file is at its cap of 6,500 characters (6,489 now). Each next clause there needs a cut elsewhere.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 04:52
@dan-petty
dan-petty merged commit b27279e into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the ci/3921-release-scheduled-merge branch November 7, 2026 04:52
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/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(release): merge the release pull request every 6 hours

1 participant