* renaming from gitTally to Werkator * Rename GitTally to Werkator `gitTally` is the name of another product in the git space, so the rename is a precaution; nothing about what the build system does changes. The name follows one rule: `Werkator` where it is prose, capitalized where it is a Kotlin type and its file, lowercase everywhere a machine reads it — the command, packages, paths, configuration keys and values, the Gitea check context. Environment variables keep their convention and are uppercase throughout. Every configuration file is still found under its pre-rename name (`ConfigFiles`): `.gittally.yml` at the repository root, in a build worktree and as committed on a branch, `.git/gittally/.gittally.yml` for the machine layer. The current name wins where both exist, and the old file is then ignored rather than merged — two files side by side are a half-done rename, not a layering. Without the fallback an installation that updated without renaming would not fail: a configuration that is not found leaves every setting at its default, so it would come up looking healthy while having forgotten its credentials and its builds. `docs/werkator-migrationsplan.md` lists what the fallback does not cover and has to be moved by hand — above all the state directory `.git/werkator/`, which holds the build history, the control token and the worktrees, and has no fallback of its own. `docs/migration-from-legacy.md` is deleted with this: it mapped the legacy script's environment variables, and every host it addressed has long since moved to the YAML configuration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Move the pre-rename state directory at the first start The configuration is found under either name, the state is not: build history, control token, auto-build slots and worktrees live at one fixed path. An installation that updates without moving `.git/gittally` would not fail — it would come up with an empty history and a fresh control token, quietly. So the first start moves it instead of the release notes asking for it. Only when the old directory exists and the new one does not. Where both exist nothing is touched and a warning names the leftover: which of the two is the live state is not something to guess. A failed move is an error in the log, never an abort — a CI must not hang on it. The worktrees are dropped rather than moved, since they point at their old path in both directions; `GitWorktreeWorkspaces` prunes the stale admin entry and recreates each on its branch's next build. A generated systemd unit moves with the directory and leaves its symlink dangling, which is warned about — the running service is unaffected, the next start is not. Runs from `CliRunner`, before any command resolves a path under the directory, and so before the second context of `server` exists. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Document PR#1: the rename to Werkator Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Drop the legacy env-to-YAML conversion from the setup tool The old bash script configured itself through `GITTALLY_*` environment variables. The blanket rename rewrote those literals, so the converter was looking for `WERKATOR_*` — a spelling no host has ever written. Fed a real legacy file it would have found nothing and written an almost empty configuration, without an error, which is the same silent failure this rename is otherwise careful to avoid. The conversion has served its purpose with the vm2176 to vm4006 migration, so it goes instead of being repaired. What remains is the setup of a new instance: the preconditions, the credential prompt, and the machine configuration written mode 600 — now carrying the host's public URL as well, since that is host-specific too. Everything the repository builds comes from `init` and its templates. It also stops emitting a legacy `branches:` section, which step 18 is about to reject outright. `docs/plan/00-legacy-analysis.md` and `13-nginx-tls.md` get the real `GITTALLY_*` spelling back: they record what the old script read. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Describe this repository's build with a build definition Its own `.werkator.yml` still used the deprecated `branches` section with an `autoBuild` schedule that was switched off. That section is read only while nothing defines a build at all, and step 18 rejects it by name — so this repository would have blocked the precondition of that step, which asks that no configuration still in play carries it. Nothing about the build changes: `builds.default` with `trigger.onPush` is a build of every new commit on every branch, which is what the branch section said. `config:print --full` resolves the definition completely and logs no deprecation warning any more. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Stop documenting the pre-rename fallback for users Exactly one repository is configured with the old names, and it is migrated by hand in the same move as this release. The fallback is therefore a transition of days, not a feature anyone reading the release notes or the configuration reference has to plan around. Removed from `releases.html` and `docs/configuration.md`. The mechanism itself is unchanged and stays described where it is worked on: in `ConfigFiles`, in `StateDirMigration`, and in the migration plan. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Bring the PR-doc to its final state The `statusContext` question is answered and marked as decided rather than left standing: it is the one value a human reads as a label, and it stays lowercase because Gitea matches it and the client reads it back, which makes it a value. Also records that the pre-rename fallback is deliberately absent from the release notes and the configuration reference. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Release v1.0.0: Werkator The release after 0.9.21 is 1.0.0, because a product that changes its name is better off counting from one under it. The release note says as much, so the jump is not read as a claim about maturity — plan steps 14, 17 and 18 are still open. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Correct the PR-doc about the version It claimed the PR carries no version bump, which the release commit made untrue, and records why the number is 1.0.0 instead of 0.9.22. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Point the legacy references at the history `legacy/gitTally` was removed from the tree with the rename, but the README still described it as a reference kept in the repository, and the plan told an executing session to read parts of it — including step 14, which is open. The README section is gone; `docs/plan/README.md`, step 14 and the legacy analysis now say where the script actually is (`git show 7f55068^:legacy/gitTally`). Executed steps and ADR 0004 keep their wording: they record what was true when they ran. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Retarget the links in the historic PR-docs The package rename moved every file the older PR-docs link to, leaving 60 dead links. Only the link targets are rewritten, never the visible text and never a statement: those documents record what was true when they were written, GitTally in the prose included. A snapshot may be outdated; it should still be navigable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Add the v1.0.0 deployment procedure for vm4006 Measured, not estimated: the state directory is 878 MB, of which 878 MB are the nine build worktrees. What cannot be recreated is 84 KB, so the snapshot before an in-place switch is instant and the rollback is one sequence of moves. Records the three expected non-failures — a cold Gradle volume, one image rebuild, containers left under the old label — and that `gitea.statusContext` needs no attention because it comes from the watched repository's committed configuration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Rename the machine configuration along with its directory Found by the deployment to vm4006: the move renames the directory and leaves the file inside it alone, so the machine configuration ended up at `.git/werkator/.gittally.yml` — a pair of names the lookup did not expect, because it pairs directory and file name. The instance resolved empty credentials, no public URL and none of the host's build definitions, and said nothing about it. That is the exact failure this change exists to prevent, produced by the change itself. `StateDirMigration` now renames the configuration with the directory, unless one under the current name is already there. `ConfigFiles` carries `.git/werkator/.gittally.yml` as a third candidate as well, for a directory somebody moved by hand, where the migration never runs and so can rename nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Let init see a configuration under its previous name `init --systemd` runs `init`, and its "already exists" check knew only the current name. On the one repository still carrying `.gittally.yml` it therefore wrote a fresh template `.werkator.yml` beside it — and since the current name wins, that repository would have built the template's `./gradlew test` instead of what its own configuration says. Found on vm4006, where the file was created in the watched working tree and removed again by hand. Both checks now ask `ConfigFiles`, so init decides existence by the same rule the loader uses to read. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Record the v1.0.0 deployment to vm4006 Deployed from the branch as the final test of PR#1, and it did what a final test is for: it found two silent-failure defects before the service was started, both fixed and redeployed in the same window. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Drop the control token left under the old localStorage key The key is named after the product, so the rename left every browser with a token under `gittally.controlToken`, which nothing reads any more and which "forget token" can no longer reach. It is a write-scope token in a browser store, not a password, but a secret nobody owns is worth one line to remove. Removed on load. The token on the server is unchanged, so re-entering it once per browser is all the rename costs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
26 KiB
Step 15: Self-Contained Runtime Bundle Distribution
Prerequisites: steps 12, 13.
Read README.md first.
This step revises the "Future: Docker-based Deployment" section of docs/bootstrapping.md — see the ADR requirement below.
Goal
Deploy Werkator on hosts that provide Docker and git but no Java runtime (Hostsharing container servers, e.g. tallyman@vm4006).
Werkator is distributed as a self-contained runtime bundle: a jlink-trimmed JRE plus werkator.jar plus a launcher script, packed as one tarball.
The JAR stays the primary artifact for development and for hosts that already have a JRE.
Distribution Format Decision (ADR 0006)
Three formats were considered; write ADR 0006 recording the decision and this rationale:
- jlink runtime bundle (chosen) — no production-code changes, plain JVM semantics, one tarball to
scp. git and docker CLIs are used from the host, worktree paths stay host paths, and theinit --systemdunit works unchanged becausejava.homeand the running-jar path resolve into the bundle. - GraalVM native image (rejected) — Spring AOT evaluates bean conditions at build time.
Werkator's dual-context design (CLI context without web, second
SpringApplicationwith theserverprofile andWebApplicationType.SERVLET,@Profile("!server")CliRunner,@Profile("server")lifecycles) cannot be represented in a single AOT arrangement. Supporting it would require replacing the profile wiring with runtime guards and collapsing the two context shapes — an invasive rewrite with regression risk for the JVM path. - Containerized Werkator runtime (rejected, was the
docs/bootstrapping.mdsketch) — needs git and docker CLIs inside the image, a same-path$HOMEmount plus docker-socket mount and uid/gid mapping so thatDockerBuildRunner's--volume $workspace:$workspacesibling mounts keep working, and a hand-edited systemd unit. Kept as the documented fallback if the bundle approach ever becomes unworkable.
Target Host Facts (verified 2026-08-10)
vm4006.hostsharing.net: Debian 13, x86_64, glibc 2.41, git 2.47.3, docker 26.1.5, GNU make, systemd user session running withLinger=yes, no Java runtime.- The jlink image contains natively linked JVM libs, so it must be built on glibc ≤ 2.41 for the same architecture; the Ubuntu 24.04 dev machine (glibc 2.39, x86_64) qualifies.
For reproducible builds elsewhere, the bundle can be built inside an
eclipse-temurin:21-jdkcontainer (glibc 2.39 base).
Design
Gradle:
- Add a
runtimeBundletask (depends onbootJar); the normal./gradlew buildstays unchanged. - The task runs
jlinkfrom the configured Java toolchain (every JDK 21 ships jlink; no new toolchain requirement). - The JDK module list is pinned in the build script, computed once via
jdepson the exploded boot jar and itsBOOT-INF/lib; document the jdeps command next to the list and re-check it when dependencies change. - Bundle layout:
werkator/jre/(jlink image),werkator/lib/werkator.jar,werkator/bin/werkator(sh launcher:exec "$DIR/../jre/bin/java" $JAVA_OPTS -jar "$DIR/../lib/werkator.jar" "$@"). - Output:
build/distributions/werkator-runtime-linux-x64.tar.gzwith preserved execute permissions.
Deployment (no code changes expected):
- Unpack to
~/opt/werkator/on the target host; run everything via~/opt/werkator/bin/werkator. init --systemdalready generatesExecStart=<java> $JAVA_OPTS -jar <jar> serverfromjava.homeand the running jar path — from the bundle both resolve into~/opt/werkator/, so the unit points at the bundle without changes. Verify this instead of adapting code; adapt only if the resolution fails.- Updating Werkator = unpack a new bundle over
~/opt/werkator/(or switch a symlink) and restart the service.
Documentation:
docs/deployment.md: prerequisites become "JRE 21 or the runtime bundle"; add a section "Hosts Without a Java Runtime (Runtime Bundle)" with build,scp, unpack, and systemd setup.docs/bootstrapping.md: replace the "Future: Docker-based Deployment" section with the runtime bundle and a pointer to ADR 0006.docs/adrs/0006-…: the distribution-format decision (see above).docs/migration-from-legacy.md: add a note that migrating to a different host allows parallel operation, with a distinctgitea.statusContextper instance so the two CIs do not overwrite each other's commit statuses.
Tests
- No production code changes are expected, so no new unit tests; existing tests must stay green.
- Smoke-verify the bundle manually:
bin/werkator --help,initin a scratch repo,config:print --full, a shortserverrun, andinit --systemdunit content pointing into the bundle; document the results in this file. - Verify on vm4006 (which has no Java): copy the bundle, run
bin/werkator --helpandconfig:print; document the results in this file.
Acceptance Criteria
./gradlew ktlintFormatthen./gradlew buildis green, with unchanged toolchain requirements../gradlew runtimeBundleproduces a tarball whosebin/werkatorruns--help,init, andserveron a machine without any Java runtime.- A fresh deployment to vm4006 following
docs/deployment.mdanddocs/migration-from-legacy.mdreaches a running service: web UI reachable, a Docker build succeeds, commit status arrives in Gitea, managed nginx/TLS works (server.nginx.enabled: true, DNS forserverNamepointing at vm4006). - vm2176 (legacy) keeps running in parallel during the migration; the legacy service is only retired after vm4006 is verified.
- Docs and ADR 0006 written as described; document deviations in this file.
Result (2026-08-10)
Implemented as designed; no production-code change was needed. The step was originally drafted for a GraalVM native image; it was re-planned to the jlink bundle after the Spring-AOT build-time condition evaluation turned out to be incompatible with the dual-context CLI/server wiring (see ADR 0006).
runtimeBundletask inbuild.gradle.ktswith the pinned module list (jdeps output plus java.logging, jdk.crypto.ec, jdk.management, jdk.zipfs); launcher script inpackaging/werkator; tarball ~66 MB.- Smoke tests on the dev machine (with
JAVA_HOMEunset and a strippedPATH):--help,init --systemdin a scratch repo,config:print --full, and aserverrun all passed;/served HTTP 200 and/api/branchesreturned JSON. - The
init --systemdunit generated from the bundle points at<bundle>/jre/bin/javaand<bundle>/lib/werkator.jaras predicted — no detection code needed. - Verified on vm4006 (no Java installed): bundle unpacked to
~/opt/werkator,--version,--help, andstatusin a scratch repo (host git viaGitCommandRunner) all worked.
Production deployment to vm4006 (2026-08-10, same session):
hs.hsadmin.ngcloned to~/hs.hsadmin.ngon vm4006; legacy configuration from vm2176 (repo.werkator+werkator.env) migrated to.werkator.ymlperdocs/migration-from-legacy.md; Gitea token moved (the token in vm2176'swerkator.envfile was stale — the valid one came from the running legacy process environment).statusContext: werkator@vm4006for the parallel phase; rename towerkatorafter vm2176 is retired.- systemd user service installed via
init --systemdfrom the bundle and running; watcher fetches origin branches with the migrated credentials. - Managed nginx/TLS live: Let's Encrypt certificate for
vm4006.hostsharing.netobtained,https://vm4006.hostsharing.net/serves the UI with a valid chain, HTTP 301s to HTTPS (Hostsharing routes public 80/443 tohttpPort/httpsPort, same as on vm2176). - Fix discovered during rollout: certbot removed
ssl-dhparams.pemfrom its repository, so the first nginx start failed with HTTP 404. The DH parameters (RFC 7919 ffdhe2048) are now bundled as the classpath resourcenginx/ssl-dhparams.peminstead of downloaded; the download seam andNginxConfigFiles.DH_PARAMS_URLwere removed (revises the step-13 note about the download). Legacy on vm2176 only kept working because its state dir cached the file.
Second fix discovered by the first real build: under a rootless Docker daemon, DockerBuildRunner ran the build container as --user <host-uid> (ported from legacy).
With rootless identity mapping the host user is container root, and the host uid inside the container falls into the subuid range — the container could not create .gradle in the freshly created worktree ("Failed to create parent directory").
Legacy on vm2176 only worked because its ownership-repair chown had (unintentionally) moved build/ and .gradle/ into subuid ownership on the host (verified: owned by uid 166536 there) — a stable but wrong equilibrium tied to its reused primary checkout.
The rewrite now always runs the build container as --user 0: under rootless that IS the unprivileged host user (files stay host-owned, the repair chown degenerates to 0:0); under rootful daemons the behavior is unchanged (root + chown to the host ids).
Third finding (config, not code): the hsadmin-ng Liquibase migration tests (LiquibaseCompatibilityIntegrationTest, ImportHostingAssets.liquibaseMigrationForBookingAndHosting) failed on vm4006 with "environment variable HSADMINNG_POSTGRES_ADMIN_USERNAME not set".
These tests run Liquibase programmatically without Spring's spring.liquibase.parameters, so the changelog parameters resolve only via Liquibase's env-var substitution; the legacy script had a host-env passthrough for exactly these variables.
The values admin/restricted are hsadmin-ng's committed defaults, but only for the other execution paths: .tc-environment for the documented dev workflow (. .tc-environment; ./gradlew …) and the ${…:admin} fallbacks in src/test/resources/application.yml for the Spring-managed Liquibase path.
The programmatic path deliberately has no fallback — 009-check-environment.sql exists to verify the environment is configured — so a CI environment must export the variables itself.
Fix: HSADMINNG_POSTGRES_ADMIN_USERNAME=admin and HSADMINNG_POSTGRES_RESTRICTED_USERNAME=restricted in branches.default.docker.env on vm4006 — the mechanism docs/migration-from-legacy.md prescribes for the legacy passthrough list; alternatively the build command could source .tc-environment like the dev workflow.
Verified by running both test classes in the build container with the variables set: green.
Open oddity: the same commit passed on vm2176 although neither its daemon environment, build image, Gradle volume, nor any build-script mechanism supplies these variables there (an unused git-ignored .environment file exists in its primary checkout, but nothing in the build reads it); the loading path on vm2176 remains unidentified.
Fourth finding (Werkator limitation, worked around in config): with all tests green, the build then failed in hsadmin-ng's :prQuickCheck — "fatal: not a git repository".
Werkator builds in a git worktree whose .git is a pointer file into the primary repository's .git/worktrees/…, and the Docker build container (deliberately, credentials live under .git/werkator/) only mounts the worktree — so build steps that call git fail; the legacy script avoided this by building in the primary checkout.
Workaround: prQuickCheck removed from the vm4006 build command — it is a PR quality gate against a base branch and has no meaning in a post-merge master build (on vm2176 it only passed as an accidental no-op).
The underlying question (safe git availability inside Docker build containers without exposing .git/werkator/ secrets) is left as a follow-up design task.
Cutover completed (2026-08-10, same day): after three green master builds and verified Gitea statuses from vm4006, the legacy service on vm2176 was disabled and removed from systemd.
vm4006's statusContext was switched to the canonical werkator (effective without a restart — the Gitea client loads the config per call), and the branches still carrying red statuses from the buggy first hours were re-queued.
vm2176 now runs only a redirect nginx container (werkator-redirect, ports 8080/8443 like before): HTTP and HTTPS answer 301 to https://vm4006.hostsharing.net$request_uri, the ACME webroot keeps serving so the nginx-letsencrypt-renew.timer continues to renew the old host's certificate (the renew unit gained an ExecStartPost nginx reload).
Werkator answers the legacy static page names (/index.html, /branches.html, /history.html, /system.html, /about.html, /license.html) with permanent redirects to the new routes, so pre-rewrite links survive the host redirect.
Update to v0.9.8 (2026-08-10): the running build was awaited first (a restart would have killed it), then service stopped, ~/opt/werkator backed up to ~/opt/werkator.v0.9.7.bak and the new bundle unpacked over it, service started.
Verified live: / reports v0.9.8, the nav has no Current entry, the permanent 🔗 link appears only on branches whose latest build is their latest green one, and the newly linked reports answer 200 — including the stable /branches/<branch>/reports/profile/.
Master has no profile report yet because its .werkator.yml still carries the pre-PR#282 build command; it appears once that PR merges.
Update to v0.9.9 (2026-08-11): no build was running, service stopped, ~/opt/werkator backed up to ~/opt/werkator.v0.9.8.bak and replaced by the new bundle, service started.
The changed server.bindAddress default was harmless here because vm4006 sets 0.0.0.0 explicitly in .git/werkator/.werkator.yml — which the managed nginx container needs.
Found and fixed on the host: .git/werkator/.werkator.yml (the Gitea token) was still 0644 and its directory 0755 from the pre-0.9.9 init; both were tightened to 0600/0700 manually, as the new code only sets the mode for files it creates.
Verified live: / reports v0.9.9, HTTP 301s to HTTPS with a valid certificate, /api/builds/latest answers, a control token in the query string is rejected with 403, config:print masks git.token, and the mobile header stacks title over repository name.
Update to v0.9.10 (2026-08-11): same procedure, ~/opt/werkator.v0.9.9.bak as the rollback copy.
Verified live: / reports v0.9.10, the pages no longer contain werkator-control-token, /api/builds/latest and /branches still answer 200 without any credential, and a mutation without the token is rejected with 403.
The operator has to paste the token from ~/hs.hsadmin.ng/.git/werkator/control-token once per browser now.
Update to v0.9.11 (2026-08-14): same procedure, no build was running, ~/opt/werkator.0.9.10.bak as the rollback copy.
Verified live: bin/werkator --version reports v0.9.11 before the start, the service is active, / answers 200 with v0.9.11 in the footer, /releases shows the v0.9.11 entry, and /api/builds/current is empty.
The watcher's new local-ref fast-forward logged nothing, because ~/hs.hsadmin.ng had already been reset to origin/master by hand — it only acts on a branch that actually lags behind.
Update to v0.9.12 (2026-08-26): same procedure, ~/opt/werkator.0.9.11.bak as the rollback copy; a build was running — interrupted and re-enqueued by the startup recovery as designed.
Verified live: bin/werkator --version reports v0.9.12 before the start, the service is active, / shows v0.9.12, and the recovery re-enqueued exactly one build per affected branch (the pre-fix duplicate queue entries were collapsed by markStaleRunningAsInterrupted + latestPerBranch).
Shipped fixes: prune never removes queued/running results (a branch deleted mid-build stays visible), and manual triggers dedup against an already active build of the same branch and commit.
Update to v0.9.13 (2026-08-28): same procedure, no build was running, ~/opt/werkator.0.9.12.bak as the rollback copy.
Verified live: bin/werkator --version reports v0.9.13 before the start, the service is active, / answers 200 with v0.9.13 in the footer, /api/builds/latest carries the new name field, and the watcher polls without errors.
Shipped feature: an autoBuild.times entry can carry its own buildCommand and name — a named nightly slot (e.g. master@nightly) gets its own branches-view row, retention pool, and permanent latest-green link; restart/retry/recovery repeat a build with its original command and name.
Update to v0.9.14 (2026-08-28): same procedure, ~/opt/werkator.0.9.13.bak as the rollback copy; a build was running — interrupted and re-enqueued by the startup recovery as designed (now under its recorded build definition default).
Verified live: bin/werkator --version reports v0.9.14 before the start, the service is active, / answers 200 with v0.9.14 in the footer, the watcher polls without errors, and the deprecation warning for branches.master.autoBuild appears once in the log.
Shipped feature: named build definitions (ADR 0007) — the builds section defines jobs with onPush/atTimes triggers, branch selectors (globs, activeWithin), and setting overrides; named builds record under <branch>@<build> pools; the v0.9.13 per-slot syntax was removed again.
Update to v0.9.15 (2026-08-29): same procedure, ~/opt/werkator.0.9.14.bak as the rollback copy, no build was running.
Verified live: bin/werkator --version reports v0.9.15 before the start, the service is active, the API answers, and the watcher polls without errors.
The leftover builds.maxConcurrent in the repository's committed master config is ignored with exactly one warning per context instead of failing the configuration — the reason it is tolerated rather than rejected: that config needs a colleague's approval to change, and the installation must not be stuck on a key it is meant to forget.
Shipped feature: the .werkator.yml committed on a branch takes precedence for its builds section as well, and the watcher reads it per origin branch (git show, cached by head commit) to decide which of that branch's builds are due.
Verified live within seconds of the start: the build definition reactivate-pi-test-with-full-pitest, which exists only on the branch mihoe/reactivate-pi-test and not in the master config, fired its due 05:00 UTC slot, recorded under the pool mihoe/reactivate-pi-test@reactivate-pi-test-with-full-pitest, and ran the branch's pitestFull command in the build container inherited from the master config.
Update to v0.9.16 (2026-08-29): same procedure, ~/opt/werkator.0.9.15.bak as the rollback copy.
A build was running at the first attempt, so the deployment aborted itself before stopping anything; the service was then stopped in the first idle window (waiting rather than interrupting was the operator's call).
Verified live: bin/werkator --version reports v0.9.16 before the start, the service is active, /releases lists v0.9.16, and the watcher polls without errors.
Shipped features: hourly scheduled builds (atTimes: ["??:05"]) and the artifact page showing the command a build actually runs.
Verified live: the branch's atTimes: ["??:00"] — rejected by v0.9.15 with a warning on every poll cycle — is accepted, and its 06:00 UTC slot fired right after the restart.
Update to v0.9.17 (2026-08-29): same procedure, ~/opt/werkator.0.9.16.bak as the rollback copy.
Deployed under the operator's condition "only if no build is running": the deploy script re-checks /api/builds/current immediately before the stop and exits without touching anything when a build is executing.
Verified live: bin/werkator --version reports v0.9.17 before the start, the service is active, /releases lists v0.9.17, the served werkator.js carries the resume listeners, and no errors in the log.
Shipped fix: a page returning from the background fetches the current state immediately instead of showing (and ticking) the state it was left in.
Update to v0.9.18 (2026-08-29): same procedure, ~/opt/werkator.0.9.17.bak as the rollback copy, no build was running.
Verified live: bin/werkator --version reports v0.9.18 before the start, the service is active, /releases lists v0.9.18, the watcher polls without fetch or poll errors, and the only warnings are the two known builds.maxConcurrent lines from the repository's committed config.
Shipped feature: a configuration file can declare the Werkator it is written for (werkator.version.since/below), so an incompatibility is named instead of silently ignored.
The configs of the watched repository declare nothing yet and are unaffected — a missing declaration is never an error.
Update to v0.9.19 (2026-08-29): same procedure, ~/opt/werkator.0.9.18.bak as the rollback copy, no build was running.
Shipped feature: a build definition describes its build completely (requirePullRequest, the whole docker section), builds.default is the settings base of every other definition, and the per-branch branches section is superseded — read only while nothing defines a build at all.
The machine config .git/werkator/.werkator.yml was rewritten to the new shape beforehand (backup .werkator.yml.20260829T085959Z.bak), in a form valid under both versions: builds.default plus builds.master for the new one, a reduced branches block for v0.9.18, which has no sandbox policy inside a definition.
It also drops the machine-local --no-build-cache command that had shadowed master's own buildCommand for every on-push build; the commands now come from origin/master's committed config.
Verified live: bin/werkator --version reports v0.9.19 before the start, the service is active, /releases lists v0.9.19, and the log carries the expected "ignoring the branches section" warning next to the known builds.maxConcurrent one.
The new master@master job fired on the first poll after the restart — its 01:00 slot was due and unmarked for that pool — and runs in hsadmin-ng-build-env:latest with bootJarWithDocumentation: the pinned docker.enabled/network reached it through the inheritance from builds.default, while its own command won.
The legacy branches block stays in the machine config for the transition week as the rollback path to v0.9.18; it is inert under v0.9.19.
Update to v0.9.20 (2026-08-29): same procedure, ~/opt/werkator.0.9.19.bak as the rollback copy, no build was running.
Shipped feature: a definition's trigger block, ! exclusion patterns in trigger.branches, and a per-build Gitea statusContext.
The machine config had to be migrated in the same window (backup .werkator.yml.20260829T100842Z.bak): v0.9.19 drops an unknown trigger block silently — which would leave every definition without a trigger — and v0.9.20 refuses the flat keys, so the file is valid for exactly one of the two versions and had to be swapped while the service was down.
The new configuration was validated with the new binary (config:print --full) after the swap and before the start.
Verified live: --version reports v0.9.20, the service is active, /releases lists v0.9.20, the watcher polls without errors, and the two expected warnings (builds.maxConcurrent, the ignored branches section) are the only ones from the host configuration.
The branch-scoped refusal showed itself in production immediately: mihoe/reactivate-pi-test still commits its triggers flat, so its committed config is refused with a message naming the branch, the commit, and each definition's offending keys — the watcher falls back to the host's definitions for scheduling, and builds of that branch fail until the file is migrated. Every other branch is unaffected, which is the whole point of the per-file scoping.
Update to v1.0.0 (2026-08-31), the rename to Werkator, deployed from the branch as the final test of PR#1: ~/opt/gittally.0.9.21.bak as the rollback copy, no build was running, and an 8.8 KB snapshot of the state directory without its worktrees (~/gittally-state-20260831T065716Z.tar.gz) as the way back — everything that cannot be recreated fits in it, the 878 MB are worktrees the migration drops and the next build recreates.
The artifact root was moved by hand (~/.local/state/gittally to ~/.local/state/werkator, 1.3 GB, instant on the same filesystem), the state directory moved itself.
Two defects surfaced and were fixed before the service was started, both of the silent kind this release is about: the directory move left the machine configuration under its old name in the new directory, a pair of names the lookup did not expect, so the instance resolved empty credentials and none of the host's build definitions; and init --systemd wrote a fresh template .werkator.yml into the watched working tree beside its committed .gittally.yml, which would have made that repository build ./gradlew test instead of its own command. The bundle was rebuilt from the fixed branch before the units were switched.
Verified live: --version reports v1.0.0, the service is active, the build history is the one from before, the watcher polls without errors, HTTPS through the managed nginx answers 200 with the certificates found under the moved state path, and a master build started by itself — worktree recreated, container werkator-build-… running in hsadmin-ng-build-env:latest under the new org.hoennig.werkator label.
The two expected warnings (builds.maxConcurrent, the ignored branches section) are still the only ones, both from master's committed configuration.
Update to v0.9.21 (2026-08-30): same procedure, ~/opt/werkator.0.9.20.bak as the rollback copy, no build was running; the machine config needed no change this time.
Shipped feature: an unreachable origin is shown in the web UI (step 19), and a lasting fetch failure is logged once per message instead of once per poll.
The occasion was an outage the same morning: the git.token in the machine config had been overwritten with a placeholder string, Werkator failed every fetch for 57 minutes, and the branches view kept showing its last known list as if nothing were wrong.
Verified live: --version reports v0.9.21, the service is active, / answers 200 with v0.9.21 in the footer, /api/watcher reports lastFetchError: null, the served werkator.js carries refreshWatcherBanner, /branches carries the banner element, and the only warnings are the two expected ones from the repository's committed config (builds.maxConcurrent, the ignored branches section).