Repository navigation
Release every 4 weeks and auto-merge Renovate updates - #275
Open
chrapkowski-sg wants to merge 2 commits into
Open
chrapkowski-sg wants to merge 2 commits into
chrapkowski-sg wants to merge 2 commits into
Conversation
Contributor
Author
|
This change is part of the following stack: Change managed by git-spice. |
chrapkowski-sg
force-pushed
the
scheduled-releases-renovate
branch
2 times, most recently
from
November 25, 2026 12:42
eeaf6eb to
8c9bb63
Compare
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
force-pushed
the
scheduled-releases-renovate
branch
from
November 25, 2026 12:43
8c9bb63 to
81950d4
Compare
chrapkowski-sg
marked this pull request as ready for review
November 25, 2026 13:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Docker images (
sourcegraph/scip-ruby, including theautoindextags 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 achore: prepare vX.Y.Z releasePR every 4 weeks on Monday, in the same weeks as the other indexers (the first is Dec 21), andDockerfile.baserunsapt-get upgrade. Merging anyscip_ruby_versionbump now releases on its own. A tag workflow runspublish-scip-ruby.shand dispatches Release, which in turn dispatches Publish Docker; this is needed because tags pushed with GITHUB_TOKEN, andworkflow_runon 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 moveslatestor 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 requiredtestcheck 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 inrelease.ymlorpublish-docker.yml, would only show up at the next release.