Public: anyone can read this; the crew can change it.
The forge releases itself from its own host, daily at 10:30 UTC, with no laptop involved #14268
Check · Review · Land · Live — No review yet.
scout/forge:scout/14257-the-forge-releases-itself-from-its-own-h → main 2 commits fork
4 files
changed +25
−2
docs/OPERATING.md +1 −1
| @@ -130,7 +130,7 @@ down. | ||
| 130 | 130 | | (c) build | forgejo-runner-vxrail, a Forgejo Actions runner | vxrail | It goes with the forge, which runs beside it. | — | — | |
| 131 | 131 | | (d) release | Forgejo's registry (git.open-platform.sh), which the forge's image is pulled from | pg-grand | A pod that restarts on a node without the image cached cannot start; nothing new is released. | 4 | #11686, #8941, #8942 | |
| 132 | 132 | | (d) release | registry-node, a registry on the vxrail | vxrail | It goes with the forge, which runs beside it. | — | — | |
| 133 | | (d) release | forge-release-tick, a host timer every 5 min | pg-grand | Nothing is released; production keeps the release it has. | 6 | #11686, #8942 | | |
| 133 | | (d) release | forge-release-tick, a host timer daily at 10:30 UTC | pg-grand | Nothing is released; production keeps the release it has. | 6 | #11686, #8942 | | |
| 134 | 134 | | (d) release | standby-reconcile, a host timer every 2 min that applies the forge's manifests from Forgejo; Flux's Kustomization for the forge is suspended | pg-grand | A changed manifest is not applied; the running pod is untouched. | 6 | #8948, #11686 | |
| 135 | 135 | | (d) release | Host timers forge-watchdog, forge-github-mirror and forge-prune-images | pg-grand | The watchdog, the GitHub mirror and image pruning under the Deployment-patch deployer stop. | 6 | #11686, #11914 | |
| 136 | 136 | | (d) release | The self-swap keeper's own pruning of release trees | vxrail | It goes with the forge, which runs beside it. | — | #11801, #11914 | |
docs/features/nightly-release.md added +17
| @@ -0,0 +1,17 @@ | ||
| 1 | # The nightly release (#14257, part of #14254) | |
| 2 | ||
| 3 | Since 2026-11-16 the forge releases itself from its own host with no laptop involved. `/srv/forge/release-tick/tick.sh`, run by the systemd user timer `forge-release-tick.timer`, fires daily at 10:30 UTC. The script lives on the host, not in this repository. | |
| 4 | ||
| 5 | If main is ahead of the live version and no snapshot is running, it: | |
| 6 | ||
| 7 | 1. runs the type check, the gate and the always-run tests on Linux; | |
| 8 | 2. cuts and pushes the next tag; | |
| 9 | 3. builds the image; | |
| 10 | 4. boots it on the stage rig in production shape; | |
| 11 | 5. promotes it with the stay-up watch. | |
| 12 | ||
| 13 | Any doubt is a hold: nothing is promoted, and an issue titled `The nightly release was held: …` is filed on the forge with the reason and the log tail. Read those issues as the tick's own report; the heartbeat on /releases is a separate record (`release-heartbeat.md`). | |
| 14 | ||
| 15 | **Proven (2026-11-16, on the host):** the fetch, the comparison and the gate (1,524 tests, 0 failed, 86 s). **Not yet run unattended:** the tag, the build, the rig and the promote as one sequence; each is the script used by hand for every release since 2026-11-13. The first real run is the first morning main is ahead. | |
| 16 | ||
| 17 | **To stop it:** `systemctl --user disable --now forge-release-tick.timer` on the host. |
src/system/footing.ts +1 −1
| @@ -229,7 +229,7 @@ export const FOOTING: readonly Piece[] = [ | ||
| 229 | 229 | { |
| 230 | 230 | id: "release-tick", |
| 231 | 231 | need: "release", |
| 232 | what: "forge-release-tick, a host timer every 5 min", | |
| 232 | what: "forge-release-tick, a host timer daily at 10:30 UTC", | |
| 233 | 233 | find: { kind: "host", unit: "forge-release-tick" }, |
| 234 | 234 | machine: "pg-grand", |
| 235 | 235 | ifDies: "Nothing is released; production keeps the release it has.", |
test/footing.test.ts +6
| @@ -402,3 +402,9 @@ describe("where it shows", () => { | ||
| 402 | 402 | expect(JSON.stringify(refused)).toContain("only an admin of this forge reads what it stands on"); |
| 403 | 403 | }); |
| 404 | 404 | }); |
| 405 | ||
| 406 | test("the release tick is declared as the daily host timer, not a 5-minute one (#14257)", async () => { | |
| 407 | const src = await readFile(join(import.meta.dir, "../src/system/footing.ts"), "utf8"); | |
| 408 | expect(src).toContain("forge-release-tick, a host timer daily at 10:30 UTC"); | |
| 409 | expect(src).not.toContain("forge-release-tick, a host timer every 5 min"); | |
| 410 | }); |
new above
offline