Repository navigation
Pool (M10, Hetzner side): drain unserved repos, ci-kit-config label, ensure only for pool.json repos - #17
Merged
Conversation
… ones unregister first); agent labels ci-kit-config=<sha8>; ensure wakes Hetzner only for pool.json repos (gce|none otherwise) — spec §3a, M10
…refusing an unreadable copy rather than falling back; hcloud-token needed only for a pool.json repo
SSFSKIM
added a commit
that referenced
this pull request
Oct 16, 2026
…ership read apart from schema
SSFSKIM
added a commit
that referenced
this pull request
Oct 16, 2026
…er frozen as fallback on pre-#17 snapshots; re-bake cancelled (human: use GCE spot)
This was referenced Oct 16, 2026
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 Hetzner half of spec §3a "Moving a repo between backends" (M10).
pool.json, or found public) is draining: its runners are still listed, so busy ones finish their jobs (or hit the 6 h 15 min deadline) instead of being killed as runner-gone after 5 min; its idle runners are unregistered at once by the unregister-first protocol (kept if GitHub refuses); its jobs are not listed, so nothing starts for it.logic.mjsunservedRepos,reviewContainers({unserved});reconciler.mjsobserve.ci-kit-config=<sha8>. The commit of the config the agent runs: the bake commit (/var/lib/ci-kit/kit-commit) at boot until a fetch from main succeeds, then the newest commit on main that changedpool.json, read at that commit (raw.githubusercontent.com/<sha>/…, so never a stale CDN copy of main). Written through the ownership-checked read-modify-write; a failed fetch keeps the label.lib/github.mjsgainslastCommit(conditional, so the 5-min poll is mostly 304s).pool.jsonandgce.jsonfrom the kit's main, falling back to the bundled copies;result=gcefor a gce.json repo,nonefor a repo in neither, both without touching Hetzner (I12). A repo in both readsgce, the order §3a names; the config test refuses that state.docs/pool.md: ensure's results and removing a repo.Tests: 337/337 (
npm test). New: draining keeps a busy job past 5 min and starts nothing for the removed repo; idle runner of a removed repo unregistered first, kept on 422; config label baked → fetched, kept on a failed fetch;backendOf,kitConfigfallbacks. Smoke:GITHUB_REPOSITORY=SSFSKIM/cua node pool-ensure/ensure.mjs→result=none;lastCommitagainst GitHub → 03f215d, then 304.After merge: move
v1, then re-bake from main with no box up (cpx12 builder) — before the first backend move.