Skip to content

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

Open
chrapkowski-sg wants to merge 2 commits into
masterfrom
scheduled-releases-renovate
Open

chrapkowski-sg wants to merge 2 commits into
masterfrom
scheduled-releases-renovate

Conversation

@chrapkowski-sg

@chrapkowski-sg chrapkowski-sg commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The Docker images (sourcegraph/scip-ruby, including the autoindex tags auto-indexing uses) only get rebuilt when we cut a release, so they go stale in between: rebuilding from the pinned base today still leaves 5 outdated packages, including openssl and libzstd from trixie-security. A scheduled workflow now opens a chore: prepare vX.Y.Z release PR every 4 weeks on Monday, in the same weeks as the other indexers (the first is Dec 21), and Dockerfile.base runs apt-get upgrade. Merging any scip_ruby_version bump now releases on its own. A tag workflow runs publish-scip-ruby.sh and dispatches Release, which in turn dispatches Publish Docker; this is needed because tags pushed with GITHUB_TOKEN, and workflow_run on dispatched runs, don't trigger anything. Rerunning a partly published release now picks up where it stopped instead of failing on the existing release, assets, or gems, and republishing an older release no longer moves latest or the other floating Docker tags. The release jobs also move off the retired macOS 14 runners, which would otherwise fail the next release, and off the deprecated Ubuntu 22.04 runners. The macOS minimum version is now pinned to 14.5, the same as v0.5.1, so it no longer follows the runner's SDK. The required test check is a GitHub Actions job, so someone has to click "Approve workflows to run" on each bot release PR.

The second commit turns Renovate on, which has been off here since 2022, for just what we own: GitHub Actions, the Ruby base image, and .ruby-version. Bazel, npm, and gem deps follow the upstream Sorbet syncs. Non-major updates auto-merge once all checks pass, Ruby bumps are grouped like #274, except that Ruby patch releases get their own auto-merged PR and Ruby minors and all majors get separate PRs that need review. Note that CI only builds scip-ruby, runs //test/scip (which exercises setup-ruby and .ruby-version), actionlint, and CodeQL. It doesn't build the Docker images or run the release workflows, so a bad base image digest or Ruby patch, or a broken action used only in release.yml or publish-docker.yml, would only show up at the next release.

@chrapkowski-sg

Copy link
Copy Markdown
Contributor Author

This change is part of the following stack:

Change managed by git-spice.

@chrapkowski-sg
chrapkowski-sg force-pushed the scheduled-releases-renovate branch 2 times, most recently from eeaf6eb to 8c9bb63 Compare November 25, 2026 12:42
Comment thread .github/workflows/release.yml Fixed
The Docker images (sourcegraph/scip-ruby and its autoindex tags) are only
rebuilt when we release, so without code changes they miss Debian security
updates. A scheduled workflow now opens a release PR every 4 weeks on
Monday (on the same weeks as the other SCIP indexers) with the version bump
and a CHANGELOG entry, and Dockerfile.base runs apt-get upgrade so the
rebuild picks up package updates even though the ruby image is pinned.

Merging a scip_ruby_version bump to master now tags the release: the tag
workflow runs publish-scip-ruby.sh, then dispatches Release, because tags
pushed with GITHUB_TOKEN don't trigger workflows. Release in turn dispatches
Publish Docker once the binaries are uploaded, since workflow_run doesn't
fire for dispatched runs. A rerun resumes a partially published release
instead of failing on the existing release, assets, or gems, gems publish
in their own job, and republishing an older release no longer moves the
floating Docker tags.
GitHub-generated notes now list the merged PRs.

Release jobs also move off retired runner images: GitHub retired macOS 14
on November 2, 2026, so macOS builds use macos-15-xlarge and macos-15, and
ubuntu-22.04 jobs (removed on April 17, 2027) use ubuntu-24.04. The macOS
binary's minimum version is now pinned to 14.5, what v0.5.1 shipped with,
instead of following the runner's SDK.
Renovate has been off in this repo since its onboarding PR was closed.
Turn it on for the dependencies scip-ruby owns: GitHub Actions, the
ruby base image in Dockerfile.base, and .ruby-version. Bazel, npm, and
gem dependencies come from upstream Sorbet and are updated when syncing
with it, so other managers stay off.

Non-major updates merge once checks pass and major updates need review.
Ruby updates (.ruby-version, the base image, and setup-ruby) are grouped
as in #274. Ruby minor versions get their own PR and need review, because
they change the Ruby that auto-indexing runs, and patch releases get their
own PR so a newer minor doesn't hide them. Renovate opens PRs on Monday mornings,
Europe/Warsaw time.
@chrapkowski-sg
chrapkowski-sg force-pushed the scheduled-releases-renovate branch from 8c9bb63 to 81950d4 Compare November 25, 2026 12:43
@chrapkowski-sg
chrapkowski-sg marked this pull request as ready for review November 25, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants