wolk-jjba-daa2cd2c-c443

job failed

starting new job...


→ running command: dir='/etc/byggsteg/job-clone//wolk-jjba/trunk'
branch='trunk'
if ! command -v git >/dev/null 2>&1; then
  echo 'byggsteg: git is not on this deployment PATH, so the clone cannot be updated' >&2
  exit 1
fi
if ! cd "$dir"; then
  echo "byggsteg: cannot enter the clone $dir" >&2
  exit 1
fi
root=$(git rev-parse --show-toplevel 2>/dev/null)
if [ "$root" != "$(pwd -P)" ]; then
  echo "byggsteg: $dir is not a git checkout; remove it and the next run clones it again" >&2
  exit 1
fi
if ! origin=$(git remote get-url origin 2>/dev/null); then
  echo "byggsteg: $dir has no origin remote to fetch $branch from" >&2
  exit 1
fi
before=$(git rev-parse --short HEAD 2>/dev/null) || before=none
attempt=1
while :; do
  if GIT_TERMINAL_PROMPT=0 git fetch --quiet origin "+refs/heads/$branch:refs/remotes/origin/$branch"; then
    break
  fi
  if [ "$attempt" -ge 3 ]; then
    echo "byggsteg: could not fetch $branch from $origin after 3 attempts; is the branch still there, and is the remote reachable?" >&2
    exit 1
  fi
  echo "byggsteg: fetching $branch from $origin failed; retrying in $((attempt * 2))s" >&2
  sleep $((attempt * 2))
  attempt=$((attempt + 1))
done
if ! git checkout --quiet --force -B "$branch" FETCH_HEAD; then
  echo "byggsteg: fetched $branch from $origin but could not check it out" >&2
  exit 1
fi
after=$(git rev-parse --short HEAD)
if [ "$before" = "$after" ]; then
  echo "byggsteg: $branch was already at $after"
else
  echo "byggsteg: $branch moved from $before to $after"
fi


byggsteg: trunk was already at b2be5c7
✓ command finished in 0.36s


→ running command: cd /etc/byggsteg/job-clone/wolk-jjba/trunk && uname -a

Linux wolk-jjba 7.2.11-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
✓ command finished in 0.01s


→ running command: cd /etc/byggsteg/job-clone/wolk-jjba/trunk && git log --name-status HEAD^..HEAD

commit b2be5c7dd42cc67b71c8091e6d8d491f1fc9ed22
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Mon Nov 9 13:55:43 2026 +0100

    feat: Add ggg and sift

M       src/wolk-jjba/certbot.scm
M       src/wolk-jjba/nginx.scm
✓ command finished in 0.01s


→ running command: cd /etc/byggsteg/job-clone/wolk-jjba/trunk && maak test

channels.scm:55:6: warning: channel 'jointhefreeworld' is not trusted

scanning directories for unit tests...
scanning present working directory for unit tests...

shuffled the files with seed 139825687 (replay with VERITAS_SEED=139825687)

found unit tests: (nginx-spec.scm operating-system-spec.scm logging-spec.scm bash-spec.scm temp-spec.scm gfs-spec.scm secrets-spec.scm security-spec.scm certbot-spec.scm sysctl-spec.scm iptables-spec.scm containers-spec.scm prelude-spec.scm radio-spec.scm maintenance-spec.scm ggg-spec.scm cve-spec.scm jobs-spec.scm)


running unit tests from file: nginx-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 139825687 (replay with VERITAS_SEED=139825687)
+----------------------------------------------+
[📑 suite] Nginx Suite
  [🧪 test] A static vhost applies the shared security baseline
    [⚙️ assert] HSTS is sent
    ✅ got: #t
    [⚙️ assert] A CSP is sent
    ✅ got: #t
    [⚙️ assert] nosniff is sent
    ✅ got: #t
    [⚙️ assert] HTTP/2 is enabled
    ✅ got: #t
    [⚙️ assert] Per-IP connections are capped
    ✅ got: #t
    [⚙️ assert] with-listdir? turns the index on
    ✅ got: #t
    [⚙️ assert] with-rate-limit? #f removes the request cap
    ✅ got: #f
  [🧪 test] The administrative vhosts are locked down
    [⚙️ assert] Grafana uses the strict request bucket
    ✅ got: #t
    [⚙️ assert] Prometheus uses the strict request bucket
    ✅ got: #t
    [⚙️ assert] The node exporter uses the strict request bucket
    ✅ got: #t
    [⚙️ assert] Grafana caps connections per address
    ✅ got: #t
    [⚙️ assert] and not with the application bucket
    ✅ got: #f
    [⚙️ assert] The node exporter is no longer public
    ✅ got: #t
    [⚙️ assert] Grafana is not behind basic auth as well as its own login
    ✅ got: #f
    [⚙️ assert] Prometheus keeps its password
    ✅ got: #t
    [⚙️ assert] An admin vhost takes no large uploads
    ✅ got: #t
  [🧪 test] Every upstream a vhost names is declared
    [⚙️ assert] Ten upstreams are declared
    ❌ fail - error, expect: 10, got: 11
    [⚙️ assert] Each proxy_pass names a declared upstream
    ✅ got: ()
  [🧪 test] Minimal mode keeps only the ACME and metrics vhosts
    [⚙️ assert] A new machine gets two blocks
    ✅ got: 2
    [⚙️ assert] A configured machine serves seventeen
    ✅ got: 17
  [🧪 test] A proxied static asset keeps the client's Host
    [⚙️ assert] The server block sends the client's Host
    ✅ got: #t
    [⚙️ assert] Upstream keepalive still speaks HTTP/1.1
    ✅ got: #t
    [⚙️ assert] The asset location declares none, so it inherits
    ✅ got: #f
  [🧪 test] The global block carries the tuning and the zones
    [⚙️ assert] sendfile is on
    ✅ got: #t
    [⚙️ assert] The proxy rate-limit zone exists
    ✅ got: #t
    [⚙️ assert] The static rate-limit zone exists
    ✅ got: #t
    [⚙️ assert] The WebSocket map is defined
    ✅ got: #t
    [⚙️ assert] The nginx version is hidden
    ✅ got: #t
  [🧪 test] Every vhost denies dotfiles
    [⚙️ assert] The dotfile rule is the first location
    ✅ got: ~ /\.(?!well-known)
    [⚙️ assert] and it denies everything
    ✅ got: (deny all;)
  [🧪 test] Restricted vhosts carry basic authentication
    [⚙️ assert] torikomi is password protected
    ✅ got: #t
  [🧪 test] A reverse proxy passes the client's view upstream
    [⚙️ assert] The domain defaults to jointhefreeworld.org
    ✅ got: (probe.jointhefreeworld.org www.probe.jointhefreeworld.org)
    [⚙️ assert] The vhost proxies to its own upstream
    ✅ got: #t
    [⚙️ assert] The upstream learns the client's scheme
    ✅ got: #t
    [⚙️ assert] WebSocket upgrades survive the proxy
    ✅ got: #t
    [⚙️ assert] Static assets are cached upstream too
    ✅ got: #t
    [⚙️ assert] with-gzip? #f disables upstream gzip
    ✅ got: #t
    [⚙️ assert] with-cors? adds the CORS header
    ✅ got: #t
  [🧪 test] The ACME vhost answers on plain HTTP and redirects
    [⚙️ assert] The ACME vhost listens on port 80
    ✅ got: #t
    [⚙️ assert] Minimal mode emits no TLS vhost
    ✅ got: #f
    [⚙️ assert] Plain HTTP is redirected to HTTPS
    ✅ got: #t
    [⚙️ assert] The ACME block answers for the Grafana name
    ✅ got: #t
  [🧪 test] Upstreams are on loopback with keepalive
    [⚙️ assert] No upstream leaves the machine
    ✅ got: #t
    [⚙️ assert] Every request/response upstream keeps connections alive
    ✅ got: #t
    [⚙️ assert] The streaming upstream is not pooled
    ✅ got: #t
    [⚙️ assert] byggsteg listens where its daemon does
    ✅ got: (127.0.0.1:50002)
  [🧪 test] The access log is nginx's logfmt format
    [⚙️ assert] The capability selects its own log format
    ✅ got: wolk
    [⚙️ assert] Request time is logged
    ✅ got: #t
    [⚙️ assert] Upstream response time is logged
    ✅ got: #t
    [⚙️ assert] The status code is logged
    ✅ got: #t
    [⚙️ assert] The request's position on its connection is logged
    ✅ got: #t
    [⚙️ assert] TLS session resumption is logged
    ✅ got: #t
    [⚙️ assert] No empty-able field is logged, logfmt would fail on it
    ✅ got: #f
  [🧪 test] A static vhost serves its own directory
    [⚙️ assert] with-www? #f leaves the bare name alone
    ✅ got: (example.test)
    [⚙️ assert] The root is the site directory under /srv/http
    ✅ got: /srv/http/example.test
    [⚙️ assert] The certificate follows the name
    ✅ got: /etc/letsencrypt/live/example.test/fullchain.pem
    [⚙️ assert] TLS and QUIC are both served
    ✅ got: (443 ssl 443 quic)
  [🧪 test] The work-in-progress site is never cached
    [⚙️ assert] wip-site is served
    ✅ got: #t
    [⚙️ assert] Every response is no-store
    ✅ got: #t
    [⚙️ assert] HTTP/1.0 caches are told not to cache
    ✅ got: #t
    [⚙️ assert] nginx caches no file metadata either
    ✅ got: #t
    [⚙️ assert] No asset gets the two-day cache
    ✅ got: #f
    [⚙️ assert] No location overrides the header
    ✅ got: #f
    [⚙️ assert] Only the dotfile rule is left
    ✅ got: (deny all;)
  [🧪 test] The ACME vhost on port 80 is rate limited
    [⚙️ assert] Plain HTTP gets a request bucket
    ✅ got: #t
    [⚙️ assert] and a connection cap
    ✅ got: #t
  [🧪 test] Every vhost has a server block
    [⚙️ assert] The count is the one the README documents
    ✅ got: 17
    [⚙️ assert] jointhefreeworld.org is served
    ✅ got: #t
    [⚙️ assert] byggsteg is served
    ✅ got: #t
    [⚙️ assert] torikomi is served
    ✅ got: #t
    [⚙️ assert] symbanta is served
    ✅ got: #t
  [🧪 test] The static sites serve from /srv/http
    [⚙️ assert] A static site is rooted at its own name
    ✅ got: /srv/http/jointhefreeworld.org
    [⚙️ assert] A site may point somewhere else
    ✅ got: /srv/symbanta.jointhefreeworld.org
ℹ️ info - ran 1 tasks in: 0 seconds, 18844 microseconds

❌ error - 
aborting due to error in test case...



--------------------------------------------------------------

Maak 0.14.0: the infinitely extensible command runner

Loading tasks from Maak file: /etc/byggsteg/job-clone/wolk-jjba/trunk/maak.scm

Executing Maak tasks: test


--------------------------------------------------------------

=> Running Maak task: test

  Run the Veritas unit-test suite, one process per test file.

Runs inside the manifest shell like the other Scheme tasks: the suite
imports (guix gexp) and (gnu services ...) and needs veritas, none of
which are in the machine's system profile, so a bare `guile' fails with
`no code for module (veritas runner)' -- which is what the Byggsteg CI
task `maak-test' used to hit.

The files run in parallel, one process each, in as many processes as
this machine may use up to four; VERITAS_JOBS overrides that count.
Four things are deliberate, so that a failure here is a failure of the
code under test rather than of the schedule:

  - the order the files run in is shuffled, and the seed is printed:
    `VERITAS_SEED=<the seed> VERITAS_SHUFFLE_FILES=true maak test'
    replays a failing order, and `VERITAS_SHUFFLE_FILES=false' runs them
    in the fixed one;
  - every fixture is created under a name unique to the run and removed
    when it ends (see test/veritas/temp.scm), so two workers -- or two CI
    jobs sharing /tmp -- cannot collide on one;
  - GUILE_LOAD_PATH names the channel's module directory, because
    evaluating config.scm needs the jointhefreeworld channel and the pinned
    shell does not carry it -- worked out from the pulled guix when there is
    one and from the guix that pinned the channels when there is not (see
    the comments above);
  - a suite that needs the network or the machine's own root-only files
    is a suite that fails for reasons nobody can act on, and there is
    none of those: see the Commentary of each spec.

Executing: env VERITAS_JOBS=1 GUILE_LOAD_PATH=/gnu/store/y97i8h2pqrybn2ca9qh7a521yfl25c6v-jointhefreeworld/share/guile/site/3.0 guix time-machine --channels=channels.scm -- shell -m manifest.scm -- env GUILE_AUTO_COMPILE=0 XDG_CACHE_HOME=/tmp/wolk-jjba-test-16985-cache guile -L ./src -L ./test -c '(use-modules (veritas runner)) (run-tests)'

maak: error: command failed (exit code 1): env VERITAS_JOBS=1 GUILE_LOAD_PATH=/gnu/store/y97i8h2pqrybn2ca9qh7a521yfl25c6v-jointhefreeworld/share/guile/site/3.0 guix time-machine --channels=channels.scm -- shell -m manifest.scm -- env GUILE_AUTO_COMPILE=0 XDG_CACHE_HOME=/tmp/wolk-jjba-test-16985-cache guile -L ./src -L ./test -c '(use-modules (veritas runner)) (run-tests)'
        hint: Fix the command above, or run `maak --dry-run' to inspect it first.
✗ command failed (exit 1) after 1.35s
inspect the job's lambda expression
(lambda()
  `((task . ("maak-test"))
    (project . "wolk-jjba")
    (branch-name . "trunk")
    (clone-url . "https://github.com/jjba23/wolk-jjba.git")))