Skip to content

Release every 4 weeks and auto-merge Renovate updates - #2

Open
chrapkowski-sg wants to merge 2 commits into
mainfrom
release-automation
Open

chrapkowski-sg wants to merge 2 commits into
mainfrom
release-automation

Conversation

@chrapkowski-sg

Copy link
Copy Markdown

The Docker image only picks up nixpkgs security fixes when someone runs the release workflow, and Renovate never merges the weekly flake.lock refresh that brings those fixes in. Now lock file maintenance auto-merges once CI passes, and a scheduled workflow releases the next patch version every 4 weeks from 2026-11-23 (the same Mondays as the other SCIP indexers) by calling release.yml. There's no version file to bump, so there's no release PR either. The workflow skips the release when main already has a published release, since the Nix build would give the same image. A release that failed partway is finished by rerunning either workflow, since release.yml now reuses its own tag and draft. The workflow fails if CI didn't pass on main, because main has no branch protection.

Auto-merge now covers non-major updates and lock file maintenance. Majors, NixOS release upgrades (Renovate counts nixos-26.05 → 26.11 as minor), and pyrefly and uv bumps still need review. CI now builds and smoke-tests the image on both amd64 and arm64, since releases publish both and a lock update could break only one. It indexes flask, requests and httpx, but only checks that the index isn't trivially small, so it wouldn't catch a pyrefly bump that makes the index worse. CI never runs release.yml, so a bad docker/login-action bump would first fail at release time.

The Docker image only picks up nixpkgs security fixes when someone cuts a
release. A scheduled workflow now runs every Monday and, in every fourth
week after 2026-11-23 (the date the other SCIP indexers use), calls the
release workflow with the next patch version. It skips the release when
main already has a published release, since the Nix build gives the same
image, and fails when CI did not pass on main.

The release workflow can now be rerun after a later job failed: it reuses
its own tag and draft release. A scheduled run on a commit whose release
was left unfinished finishes it instead of bumping the version again.
Renovate auto-merged every update, including major ones, but never the
weekly flake.lock refresh, which is how nixpkgs fixes reach the image.
Now non-major updates and lock file maintenance merge once CI passes,
while major updates, NixOS release upgrades, and pyrefly and uv bumps
wait for review. GitHub Actions updates are grouped into one PR, and
Renovate runs on Monday mornings (Europe/Warsaw).

CI now builds and smoke-tests the Docker image on ARM64 as well, since
releases publish both architectures and a lock update could break only
one of them.
@chrapkowski-sg

Copy link
Copy Markdown
Author

This change is part of the following stack:

Change managed by git-spice.

@chrapkowski-sg
chrapkowski-sg marked this pull request as ready for review November 25, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant