10 Commits
Author SHA1 Message Date
adamfandClaude Opus 5.5 a5fabc02d6 CI: scratch directories per run, not per commit
Test and publish / test (push) Successful in 22s
Test and publish / publish (push) Successful in 25s
Test and publish / deploy (push) Successful in 0s
The build runner takes two jobs at once, so the same commit pushed to
two branches (main and a feature branch) ran its test job twice in
parallel against one src-<sha> directory, and each run's clean-up
deleted the other's source mid-test. Suffix the scratch directories
(and activity-tracker's throwaway Postgres and network) with the run id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:14:44 +00:00
adamfandClaude Opus 5.5 0c54e01106 CI: test and publish on the build VM, deploy on stpvm
Test and publish / test (push) Successful in 2m42s
Test and publish / deploy (push) Successful in 12s
Test and publish / publish (push) Successful in 54s
test and publish move to stpbuild's runner (label `build`); rolling the
image out becomes its own deploy job on stpvm (`self-hosted`), the only
host with the stack. The fetch is over HTTP with the job's own
GITEA_TOKEN, so the build VM needs no SSH key or Gitea user.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 16:00:13 +00:00
adamfandClaude Opus 5.5 1dad3583b1 CI: roll out into /home/adamf/deploy/stpweb
Test and publish / test (push) Successful in 19s
Test and publish / publish (push) Successful in 31s
The site's deploy directory moved from web_server to stpweb with the repo
rename, so the publish job's roll-out step failed after pushing the image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 15:19:17 +00:00
adamfandClaude Opus 5.5 c85e6dfbb0 CI: fetch from git.adam-french.co.uk instead of localhost
Test and publish / test (push) Successful in 1m46s
Test and publish / publish (push) Successful in 44s
Gitea runs on its own LXC, and stpvm's localhost:2222 forwarder to it is
being removed. stpvm pins git.adam-french.co.uk to the LXC's LAN IP in
/etc/hosts, so the self-hosted job reaches it directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 17:26:35 +00:00
adamfandClaude Opus 5.5 e0f8399ff7 Roll out under .compose.lock and drop the Docker API pin
Test and publish / test (push) Successful in 34s
Test and publish / publish (push) Successful in 41s
env-apply was removed from web_server, so its run/lock no longer exists
and the roll-out step failed with "cannot open lock file". Take
.compose.lock, which web_server's deploy and maintenance workflows hold.
The DOCKER_API_VERSION=1.41 pin was for the Pi's Docker 20.10; the host
now runs Docker 29.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 18:07:35 +01:00
adamfandClaude Opus 5.5 62f812403a Point docs and the setup page at stpvm, the new CI host
Test and publish / test (push) Successful in 2m25s
Test and publish / publish (push) Failing after 50s
The site and its runner moved from the arm64 Pi (stppi) to stpvm
(x86-64), so the clone URL and the comments about the build host and
image architecture were wrong.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 17:58:03 +01:00
adamfandClaude Opus 5.5 4a07f54884 Drop -race from CI: the Pi's kernel can't run it
Test and publish / test (push) Successful in 1m11s
Test and publish / publish (push) Successful in 3m41s
The runner's arm64 kernel has a 39-bit virtual address space, and the
race detector (ThreadSanitizer) needs 48 bits there, so every test
binary aborted. `make check` still runs -race locally.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 23:12:42 +01:00
adamfandClaude Opus 5.5 cfe17ecf5d Fix location races, run database tests in CI, add make check
Test and publish / test (push) Has been cancelled
Test and publish / publish (push) Has been cancelled
Location: a leave decided its destination before taking the device lock,
so a "leave home" racing an "arrive gym" could undo the arrival. The
decision (now ingest.Destination) runs inside MoveTo under the lock.
Transition external IDs were device|label|time, which collided (500) when
out-of-order events were clamped to the same start; they now name the
interval being closed.

hypr-agent: a control command arriving during shutdown no longer blocks
its goroutine forever.

Tests: internal/testdb gives each database test its own throwaway
database, so they run in parallel and no longer truncate the dev data.
New store tests cover both location bugs. CI starts a Postgres container
so these tests actually run, and adds gofmt, staticcheck (pinned as a go
tool) and -race. `make check` runs the same locally.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 22:48:41 +01:00
adamfandClaude Opus 5.5 0be97384fa Move the dashboard and setup pages to a Vue SPA
Test and publish / test (push) Successful in 1m28s
Test and publish / publish (push) Successful in 3m30s
The pages are now a Vue 3 + Vite + TypeScript app in web/, built into
internal/web/dist/app and embedded in the binary. Go still serves
index.html for / and /setup behind the admin gate, plus the hashed
/assets/* (public, cached forever). The router takes its base from the
current URL, so it works under nginx's /tracker/ prefix unchanged.

Only dist/.gitkeep is committed, so go build and go test need no Node;
an unbuilt binary shows a "run make web" page at /. The Dockerfile gains
a Node stage, CI typechecks and builds the app, and make build/run build
it first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 22:06:41 +01:00
adamfandClaude Opus 5.5 f4ce04875c Add activity tracker server, Hyprland agent and Gitea image publishing
Test and publish / test (push) Successful in 2m38s
Test and publish / publish (push) Failing after 2m30s
The Go API on PostgreSQL ingests desktop, browser, presence, manual and
Health Auto Export events and serves activities and daily goal summaries.
The Hyprland agent records window focus, idle and lock intervals.

The CI workflow publishes adam-french.co.uk/adamf/activity-tracker to the
Gitea registry and rolls the web_server stack onto it. The image probes
itself through a new `tracker healthcheck` command, because distroless
has no wget.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 20:38:12 +01:00