The commit that runs: in the footer and at /version
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 24s

Every page's footer names the commit the binary is built from, with a link
to it on the forge, and /version answers with the full hash, open without a
login like /healthz, so a script can tell which release is live.

build.rs writes COMMIT: from VISA_COMMIT, which the flake sets to its
source's revision (a Nix build has no .git), else from git in a checkout,
else empty. The flake sets it on the package alone, not on the
dependencies' build, which so stays cached from commit to commit.
This commit is contained in:
grabowski committed 2026-11-18 14:41:16 +07:00
1 parent a2cedcdd7e
commit 17426dba12
9 files changed
+140 -4

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ async fn the_gate_sends_people_to_the_login(pool: PgPool) {
assert_eq!(r.headers["hx-redirect"], "/login?next=/people");
// open without a session
assert_eq!(app.get("/healthz").await.status, StatusCode::OK);
assert_eq!(app.get("/version").await.status, StatusCode::OK);
assert_eq!(app.get("/static/app.css").await.status, StatusCode::OK);
assert_eq!(app.get("/signed-out").await.status, StatusCode::OK);
// the provider has not answered yet