4.0 KiB
autobump
Auto-bumps the mechanical version updates that nvchecker reports: change the version, regenerate the Manifest, verify with a real emerge, and open a PR if it passes. Non-mechanical bumps (needing a human to touch deps / USE / patches, or a missing vendor bundle) only get an evidence comment on the issue — no PR. Every PR is reviewed and merged by a human; nothing is auto-merged.
Opting a package in / out
Add autobump = true to the package in .github/workflows/overlay.toml:
["net-proxy/mihomo"]
source = "github"
github = "MetaCubeX/mihomo"
autobump = true # ← add to enable; remove to disable
Packages without it are not autobumped. If one keeps opening bad PRs, remove the line to stop it. Good
candidates: -bin prebuilt packages, single-file source packages, rust / npm packages with a stable
vendor bundle.
For a package that intentionally keeps several versions, add keep_old = N alongside autobump = true:
the bump keeps the N most-recent versions (adds the new ebuild, drops anything older) instead of
replacing just the top one — app-misc/go-yq-bin and media-fonts/sarasa-gothic use keep_old = 2.
keep_old = 0 keeps every version.
Finding opt-in candidates (recommendations)
The autobump-recommend workflow (Actions → autobump-recommend → Run workflow) periodically collects
packages that are not yet opted in but look mechanically bumpable into one fixed issue,
replacing its body in place — so it never spams. Three signals:
scripts/autobump-discover.sh— scans git history for packages whose recent bumps were purely mechanical.scripts/autobump-probe.sh— runs the engine--checkover the open nvchecker issues and lists the ones it judges mechanical right now but that are not opted in.- Trial-built OK — a small batch of not-opted-in mechanical candidates that a real build trial
(gentoo container, in a separate
trial-buildjob) actually built and installed clean. The strongest signal, since it goes past classify to a real build.
These are recommendations only; you review and add autobump = true by hand — nothing is enabled
automatically. The discover and probe scripts can also be run locally.
Usage
- Manual: repo → Actions → autobump → Run workflow. Empty
issues= process every open nvchecker issue (not-opted-in ones are skipped);limit= how many at most this run. - Build-test a candidate (not opted in): repo → Actions → autobump-trial → Run workflow,
targets= nvchecker issue numbers (space-separated). Runs a real bump + emerge + install + pkgcheck per target in the CI container and reports PASS/FAIL — no PR, no opt-in needed. Use it to confirm a package builds mechanically before addingautobump = true. - Local: clone the engine into the overlay root (
git clone https://github.com/gentoo-zh/autobump-rb), installdev-lang/ruby, thenAUTOBUMP_ENGINE='ruby autobump-rb/bin/autobump' bash scripts/autobump-sweep.sh [issue#...] [--limit N] [--pr]. - Scheduled: the cron at the top of
autobump.ymlis commented out by default; uncomment it once a few manual runs look stable to enable the daily run.
Outcomes
- mechanical — plain version change, real emerge passed → opens a PR.
- escalate — major jump, changed dep surface,
files/patch to re-verify, missing per-version vendor bundle → evidence comment on the issue, no PR. - defer — transient network / mirror / missing-upstream-file problems, or a heavy dependency with no matching binpkg on the binhost that would build from source and exceed the CI timeout; retried automatically.
Opened PRs still go through emerge-on-pr + pkgcheck and are merged by a human after review. Which
issues a run processed and their outcomes (bumped / deferred / skip) are in the sweep summary at the
end of that Actions run log.
Engine internals, classification details, deploy and ops: autobump-rb.