starting new job...
→ running command: cd "/etc/byggsteg/job-clone//byggsteg/trunk" && git reset --hard && git pull
HEAD is now at 1b82e14 feat: Fake path in test
Already up to date.
→ running command: cd /etc/byggsteg/job-clone/byggsteg/trunk && uname -a
Linux wolk-jjba 7.1.5-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
→ running command: cd /etc/byggsteg/job-clone/byggsteg/trunk && git log --name-status HEAD^..HEAD
commit 1b82e14d60c55c0e64e06b709e7bc9da93c8ae8b
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Sat Oct 24 10:08:14 2026 +0200
feat: Fake path in test
M test/veritas/unit/tasks-spec.scm
→ running command: cd /etc/byggsteg/job-clone/byggsteg/trunk && maak test
scanning directories for unit tests...
scanning present working directory for unit tests...
shuffled the files with seed 347149388 (replay with VERITAS_SEED=347149388)
found unit tests: (job-pipelines-spec.scm container-spec.scm log-poll-spec.scm api-v2-spec.scm error-pages-spec.scm logs-live-spec.scm retention-spec.scm password-reset-spec.scm password-strength-spec.scm ansi-spec.scm form-width-spec.scm terminal-glass-spec.scm tasks-spec.scm logs-page-spec.scm console-resources-spec.scm deployment-identity-spec.scm analytics-spec.scm heatmap-spec.scm artifact-spec.scm about-page-spec.scm retry-spec.scm user-bootstrap-spec.scm job-pipeline-spec.scm log-streaming-spec.scm footer-version-spec.scm job-search-spec.scm runners-spec.scm)
running unit tests from file: job-pipelines-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
+----------------------------------------------+
[📑 suite] job pipelines
[🧪 test] the jobs a request asks for are read from its data
[⚙️ assert] a list of jobs and a single job are read alike
✅ got: ((a-list-of-two 2) (a-list-of-one 1) (the-first-project-names-the-job byggsteg) (a-pipeline-of-unnamed-jobs pipeline) (a-pipeline-of-bare-commands trivial))
[🧪 test] every job of a pipeline is run, in the order it is written
succeeded?: #t
[⚙️ assert] both stages ran, the first before the second
✅ got: ((the-first-job-ran #t) (the-second-job-ran #t) (in-the-order-they-are-written #t) (outcome (1 0 0)))
[🧪 test] a job that fails stops the pipeline
succeeded?: #f
[⚙️ assert] the job after the failure did not run, and the pipeline failed
✅ got: ((the-later-job-ran #f) (outcome (0 0 1)))
[🧪 test] a task that fails stops the tasks behind it in the same job
succeeded?: #f
[⚙️ assert] the task behind the failure did not run, and the job failed
✅ got: ((the-failing-task-ran #t) (the-task-behind-it-ran #f) (outcome (0 0 1)))
[🧪 test] a command's output outside ASCII reaches the log it wrote
succeeded?: #t
[⚙️ assert] the accented word, the block and the Japanese word are all there
✅ got: ((the-line-is-what-the-command-printed #t) (a-replacement-character #f) (outcome (1 0 0)))
[🧪 test] a job's commands read text in a locale of their own
succeeded?: #t
succeeded?: #t
[⚙️ assert] a command with no locale counts characters, and one a job named counts bytes
✅ got: ((the-characters-of-a-word #t) (the-bytes-of-it #f) (a-locale-the-job-names-itself #t) (outcome (1 0 0)))
[⚙️ assert] a locale a deployment names, or an empty naming, is read as it is
✅ got: ((a-deployment-that-names-none #t) (a-deployment-that-names-its-own LANG=de_DE.UTF-8) (an-empty-naming #t) (a-name-both-of-them-set PATH=/usr/bin LC_ALL=C) (the-environment-a-command-is-handed PATH=/usr/bin LC_ALL=C.UTF-8))
[🧪 test] every task of a job is run, and each is a step of its own
succeeded?: #t
[⚙️ assert] a job that asks for two tasks ran two, and the job passed
✅ got: ((how-many-tasks-ran 2) (outcome (1 0 0)))
[🧪 test] a pipeline of one job is a job
succeeded?: #t
[⚙️ assert] a single job's commands ran and its row says so
✅ got: ((the-job-ran #t) (outcome (1 0 0)))
[🧪 test] a stage that names several bundles collects a tarball for each
succeeded?: #t
[⚙️ assert] the bare path's tarball keeps the title, and each bundle its name
✅ got: ((how-many 3) (named-as-asked (spec-spec-collecting.tar.gz binaries-2.tar.gz docs-3.tar.gz)) (the-tarballs-are-there (#t #t #t)) (outcome (1 0 0)))
ℹ️ info - ran 1 tasks in: 0 seconds, 261974 microseconds
running unit tests from file: container-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
+----------------------------------------------+
[📑 suite] Container Suite
[🧪 test] The runtime an image is built with can be named per deployment
[⚙️ assert] BYGGSTEG_CONTAINER_IMAGE is the default image
✅ got: alpine
[⚙️ assert] and empty means no default image
✅ got: #f
[🧪 test] A deployment that names a runner runs the runtime as it
[⚙️ assert] the runtime is started as the other account
✅ got: #t
[⚙️ assert] and the account is named
✅ got: #t
[⚙️ assert] HOME is passed through sudo
✅ got: #t
[⚙️ assert] and so is the runtime directory of that account
✅ got: #t
[🧪 test] The clone is mounted where it already is
[⚙️ assert] The workdir is named
✅ got: #t
[⚙️ assert] and mounted at the same path
✅ got: #t
[⚙️ assert] the shell is the entrypoint
✅ got: #t
[⚙️ assert] the command is a login shell's -c
✅ got: #t
[🧪 test] A job that names its own runtime keeps it
[⚙️ assert] the job's own DOCKER_HOST is what the command sees
✅ got: #t
[⚙️ assert] and byggsteg does not add a second one
✅ got: #f
[🧪 test] A docker build names the user to write as
[⚙️ assert] docker has no keep-id, so the identity is named
✅ got: #t
[⚙️ assert] and the podman-only flag is not passed
✅ got: #f
[🧪 test] A socket that is not there is not handed out
[⚙️ assert] A DOCKER_HOST that points at nothing is worse than none
✅ got: ()
[🧪 test] The deployment says which runtime, and none is a real answer
[⚙️ assert] podman is taken at its word
✅ got: podman
[⚙️ assert] so is docker
✅ got: docker
[⚙️ assert] none is a runtime a deployment may name
✅ got: none
[🧪 test] A socket that exists is the one a client is told about
[⚙️ assert] DOCKER_HOST wins when the deployment set it
✅ got: /tmp/byggsteg-container-spec-1539.sock
[⚙️ assert] the job is handed one DOCKER_HOST
✅ got: #t
[⚙️ assert] the reaper is off unless a deployment wants it
✅ got: #t
[⚙️ assert] the reaper is told which socket is mounted
✅ got: #t
[🧪 test] A job that names no image runs on the machine
[⚙️ assert] Nothing is wrapped when nothing asked for it
✅ got: maak test
[⚙️ assert] No image, no runtime
✅ got: maak test
[⚙️ assert] A runtime of none leaves the command alone
✅ got: maak test
[🧪 test] The image is the word before the shell's arguments
[⚙️ assert] the image is what -lc runs in
✅ got: example/build:1
[⚙️ assert] the shell is named as the entrypoint
✅ got: --entrypoint
[🧪 test] A locale the job names is left as it is;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling ./test/veritas/unit/job-pipelines-spec.scm
;;; compiling ./lib/byggsteg/job/pipeline.scm
;;; compiling ./lib/byggsteg/preferences.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/preferences.scm.go
;;; compiling ./lib/byggsteg/artifacts.scm
;;; compiling ./lib/byggsteg/upkeep.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/upkeep.scm.go
;;; compiling ./lib/byggsteg/domain/artifact.scm
;;; compiling ./lib/byggsteg/domain/repo.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/domain/repo.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/domain/artifact.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/artifacts.scm.go
;;; compiling ./lib/byggsteg/job/steps.scm
;;; compiling ./lib/byggsteg/container.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/container.scm.go
;;; compiling ./lib/byggsteg/job/runners.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/job/runners.scm.go
;;; compiling ./lib/byggsteg/job/streaming.scm
;;; compiling ./lib/byggsteg/domain/log.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/domain/log.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/job/streaming.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/job/steps.scm.go
;;; compiling ./lib/byggsteg/job/tasks.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/job/tasks.scm.go
;;; compiling ./lib/byggsteg/domain/job.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/domain/job.scm.go
;;; compiling ./lib/byggsteg/sqlite/job.scm
;;; compiling ./lib/byggsteg/sqlite/util.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/sqlite/util.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/sqlite/job.scm.go
;;; compiling ./lib/byggsteg/sqlite/log.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/sqlite/log.scm.go
;;; compiling ./lib/byggsteg/sqlite/artifact.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/sqlite/artifact.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/job/pipeline.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/job-pipelines-spec.scm.go
;;; compiling ./test/veritas/unit/container-spec.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/container-spec.scm.go
;;; compiling ./test/veritas/unit/log-poll-spec.scm
;;; compiling ./app/views/logs.scm
;;; compiling ./lib/byggsteg/ansi.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/ansi.scm.go
;;; compiling ./lib/byggsteg/faces.scm
WARNING: (hygguile hygguile): imported module (hygguile components select) overrides core binding `select'
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/faces.scm.go
;;; compiling ./lib/byggsteg/html.scm
;;; compiling ./lib/byggsteg/permissions.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/permissions.scm.go
;;; compiling ./lib/byggsteg/version.scm
;;; compiled
[⚙️ assert] the job's locale is passed
✅ got: #t
[⚙️ assert] and not overruled by the default
✅ got: #f
[🧪 test] A podman build is the caller's, rootless
[⚙️ assert] keep-id maps the container's user to the caller
✅ got: #t
[⚙️ assert] the build is not root
✅ got: #f
[🧪 test] An executable is found in PATH by its full path
[⚙️ assert] a program that is installed is found
✅ got: #t
[⚙️ assert] a program that is not is not
✅ got: #f
[⚙️ assert] an absolute name is not looked up in PATH
✅ got: #f
[🧪 test] The job's environment reaches the container
[⚙️ assert] variables are passed with --env
✅ got: #t
[⚙️ assert] the job's own variables are passed as written
✅ got: #t
[⚙️ assert] a locale is named when the job named none
✅ got: #t
ℹ️ info - ran 1 tasks in: 0 seconds, 10530 microseconds
running unit tests from file: log-poll-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
+----------------------------------------------+
[📑 suite] what a page following a job is answered with
[🧪 test] a job that is still writing is answered with its output and its state
[⚙️ assert] the answer carries the status, the mark of work in progress, and the output
✅ got: (#t #t #t #t #t)
[⚙️ assert] and it is closed where its place ends, with nothing left open
✅ got: />
[🧪 test] a job that is over is answered with the run's own readings
[⚙️ assert] the answer says the job stopped, and how it went
✅ got: (#t #t #t)
[⚙️ assert] and the mark of work in progress is left empty, and hidden
✅ got: (#t #f)
[⚙️ assert] and the output is not sent again to say it has not changed
✅ got: (#f #f)
[⚙️ assert] a job that failed says so where the page reads its status
✅ got: job failed
[🧪 test] the retry a finished job allows arrives with the answer
[⚙️ assert] a reader who may submit a retry is drawn one
✅ got: (#t #t)
[⚙️ assert] a reader who may not is drawn an empty place rather than a form
✅ got: (#t #f #t)
ℹ️ info - ran 1 tasks in: 0 seconds, 18940 microseconds
running unit tests from file: api-v2-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
+----------------------------------------------+
[📑 suite] the JSON API under /api/v2
[🧪 test] every route the API registers is a call this deployment can answer
[⚙️ assert] every route of the API goes through `api-route', which is what answers its failures in its own shape
✅ got: ((POST . /api/v2/login) (POST . /api/v2/logout) (GET . /api/v2/me) (GET . /api/v2/permissions) (GET . /api/v2/deployment) (GET . /api/v2/tasks) (GET . /api/v2/jobs) (POST . /api/v2/jobs) (GET . /api/v2/jobs/{id}) (DELETE . /api/v2/jobs/{id}) (POST . /api/v2/jobs/{id}/retry) (GET . /api/v2/logs) (GET . /api/v2/logs/{id}) (GET . /api/v2/artifacts) (GET . /api/v2/artifacts/{id}) (GET . /api/v2/artifacts/{id}/download) (GET . /api/v2/profiles) (POST . /api/v2/profiles) (GET . /api/v2/profiles/{id}) (DELETE . /api/v2/profiles/{id}) (GET . /api/v2/users) (POST . /api/v2/users) (GET . /api/v2/users/{id}) (PATCH . /api/v2/users/{id}) (DELETE . /api/v2/users/{id}) (POST . /api/v2/password/resets) (GET . /api/v2/password/resets/{token}) (POST . /api/v2/password/resets/{token}) (POST . /api/v2/password/strength) (GET . /api/v2/search) (GET . /api/v2/activity) (POST . /api/v2/maintenance/sweep-artifacts) (POST . /api/v2/maintenance/prune-runs) (POST . /api/v2/maintenance/sweep-logs) (POST . /api/v2/preferences/locale))
[⚙️ assert] every method a route is registered in is one `server.allowedmethods' names
✅ got: ()
[⚙️ assert] the API answers the two verbs the console does not, so a removal and a change can be asked for
✅ got: (DELETE PATCH)
[🧪 test] a run is read as the page that draws it reads it
[⚙️ assert] the three flags a row carries are the four statuses a client is told
✅ got: ((finished-well succeeded) (failed failed) (still-going running) (taken-and-not-started queued))
[⚙️ assert] a run is its id, its title, its status, its two instants and the log it wrote
✅ got: ((id . spec-run) (title . spec run & its output) (status . succeeded) (created-at . 1791922811) (updated-at . 1791922999) (log-id . spec-log))
[⚙️ assert] a run whose log row is gone says so with a null rather than by leaving the field out
✅ got: ((id . spec-run) (title . spec run & its output) (status . succeeded) (created-at . 1791922811) (updated-at . 1791922999) (log-id . null))
[🧪 test] a log is read with the run behind it, or as a log of a run that is gone
[⚙️ assert] a log is its id, its title, the run it belongs to, its two instants and the size of its output
✅ got: ((id . spec-log) (title . spec run & its output) (run-id . spec-run) (created-at . 1791922811) (updated-at . null) (length . 61))
[⚙️ assert] the length of a log is the size of the output a pane polls with
✅ got: (61 0)
[⚙️ assert] the log of a run is found by the row that names it, and a run no log names has none
✅ got: (spec-log #f)
[⚙️ assert] a list of logs carries the run behind each of them
✅ got: (((log (id . spec-log) (title . spec run & its output) (run-id . spec-run) (created-at . 1791922811) (updated-at . null) (length . 61)) (run (id . spec-run) (title . spec run) (status . queued) (created-at . null) (updated-at . null) (log-id . spec-log))))
[⚙️ assert] a log whose run is gone is answered with a null for the run rather than dropped
✅ got: (null)
[🧪 test] the output of a run is read the two ways the console's two tabs read it
[⚙️ assert] the rendered reading is the output a terminal would have left, and the raw one is what the command wrote
✅ got: (green a needle in the output
second line ^[[32mgreen^[[0m a needle in the output
second line)
[🧪 test] a tarball and a saved profile are read as the pages that list them read them
[⚙️ assert] a tarball names the run it belongs to, its title, its size and a path on this deployment to fetch it
✅ got: ((id . spec-artifact) (run-id . spec-run) (title . spec run.tar.gz) (size . 224) (created-at . 1791922811) (download-url . /api/v2/artifacts/spec-artifact/download))
[⚙️ assert] a profile is its id, its title, the Lisp it holds and its two instants
✅ got: ((id . spec-profile) (title . spec profile) (data . (lambda () (list (cons (quote task) "needle")))) (created-at . 1791922811) (updated-at . null))
[🧪 test] an account is read without the two columns that make it sign-in-able
[⚙️ assert] an account is its id, its name, its address and the permissions the ACL knows
✅ got: ((id . spec-account) (username . spec) (email . spec@example.org) (permissions . #(byggsteg:job-create)))
[⚙️ assert] no answer of this API carries the hash of a password or the salt it was taken with
✅ got: (email id permissions username)
[⚙️ assert] the session says what the token was minted with, and when it stops being read
✅ got: ((permissions . #(byggsteg:job-create byggsteg:job-delete)) (expires-at . 1792692817))
[⚙️ assert] a token that carries no permissions is read as a token that holds none
✅ got: ((permissions . #()) (expires-at . null))
[🧪 test] a request's fields are read the same way whatever sent them
[⚙️ assert] a string, a number and a boolean are read as the text they carry, a field written twice as the first of them, and a field that is not there as nothing
✅ got: ((a-string a@b.c) (a-number 1) (yes true) (no #f) (written-twice first) (not-there #f))
[🧪 test] a list field is read as a list, and a field that said nothing as nothing
[⚙️ assert] an array, one value, a field written twice, and the difference between an empty list and a request that said nothing
✅ got: ((an-array (a b)) (one-value (a)) (written-twice (a b)) (empty-array ()) (not-there #f))
[🧪 test] a page is bounded rather than refused
[⚙️ assert] nothing, a limit of none, an ordinary page, the most a page may be, more than that, and a limit that is not a number
✅ got: ((nothing-at-all 24) (a-limit-of-none 1) (an-ordinary-page 5) (the-most-a-page-may-be 200) (more-than-that 200) (a-number-that-is-not-one 7))
[🧪 test] the guard asks what a token is missing, and is told it in the order it asked
[⚙️ assert] an endpoint that takes nothing, a token that holds it all, one that holds none, and one that holds half
✅ got: ((an-endpoint-that-takes-nothing ()) (a-token-that-holds-it-all ()) (a-token-that-holds-none (byggsteg:job-create byggsteg:job-delete)) (a-token-that-holds-one-of-two (byggsteg:job-create)))
[🧪 test] a deployment says what it is, what it speaks and what it may be asked for
[⚙️ assert] the names and addresses of a deployment are the ones this source ships, and the address it named is the one it is read by
✅ got: ((name . byggsteg) (description . byggsteg is a hackable and extensible CI/CD orchestrator written in Guile Scheme: a pipeline is Lisp code, a running job's log is read while it is written, and the runner, the logs, the artifacts and the users are all yours to host.) (logo-url . /img/byggsteg-logo.png) (source-url . https://codeberg.org/jjba23/byggsteg) (manual-url . https://codeberg.org/jjba23/byggsteg/src/branch/trunk/README.org) (documentation-url . https://jointhefreeworld.org/manuals/byggsteg/) (public-url . https://byggsteg.example.org) (asset-base-url . ))
[⚙️ assert] the shape of its API is the version, the address and the document that describes it
✅ got: ((version . 2) (base . /api/v2) (spec . /openapi.yaml) (documentation . https://codeberg.org/jjba23/byggsteg/src/branch/trunk/README.org))
[⚙️ assert] every reading this API has is named in the capabilities it answers with
✅ got: (activity artifacts deployment jobs logs maintenance password-resets permissions preferences profiles search tasks users)
[⚙️ assert] the four languages the console speaks are the four the chooser offers
✅ got: ((en_US . English (US)) (nl_NL . Nederlands) (es_ES . Español) (ja_JP . 日本語))
[⚙️ assert] a language is spoken when it is one of those, and unknown when it is not
✅ got: ((#t #t #t #t) (#f #f #f #f))
[⚙️ assert] the settings a deployment runs with are the ones it answers with
✅ got: ((days . 7) (interval-seconds . 3600) (batch . 300) (concurrency . 3) (result-limit . 11))
[🧪 test] the tasks a job may name are the ones the worker dispatches
[⚙️ assert] every task a client may write is answered with the name it is dispatched by
✅ got: (build test lint check fmt docs package migrate clean coverage benchmark smoke e2e audit maak-build maak-test maak-lint maak-check maak-fmt maak-docs maak-package maak-migrate maak-clean maak-coverage maak-benchmark maak-smoke maak-e2e maak-audit just-build just-test just-lint just-check just-fmt just-docs just-package just-migrate just-clean just-coverage just-benchmark just-smoke just-e2e just-audit make-build make-test make-lint make-check make-fmt make-docs make-package make-migrate make-clean make-coverage make-benchmark make-smoke make-e2e make-audit deploy maak-deploy make-deploy restart pull-and-deploy pull-and-restart byggsteg-version trivial)
[⚙️ assert] every one of them is described, since a client has to be told what it may ask for
✅ got: #t
[🧪 test] one question is read over the three tables it is asked of
[⚙️ assert] the word, the groups it was found in, and what a window of each reading was read from
✅ got: ((the-word needle) (runs-that-carried-it 0) (logs-that-carried-it (spec-log)) (profiles-that-carried-it (spec-profile)) (what-the-log-excerpt-is output) (the-excerpt-itself green a needle in the output second line) (the-profile-excerpt-is-read-from data))
[⚙️ assert] a query of nothing is three empty groups rather than the whole deployment
✅ got: ((jobs ()) (logs ()) (profiles ()))
[🧪 test] a year of runs is read as the grid that draws it
[⚙️ assert] the weeks, the months, the total, the busiest day, the columns of seven days, and a day that has not happened
✅ got: ((weeks 50) (months 12) (total 1) (busiest 1) (columns 50) (days 350) (the-run-is-drawn 1) (a-day-with-no-runs-is-a-day #t) (a-day-that-has-not-happened #t))
ℹ️ info - ran 1 tasks in: 0 seconds, 46316 microseconds
running unit tests from file: error-pages-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
+----------------------------------------------+
[📑 suite] error pages
[🧪 test] a page a reader can act on
[⚙️ assert] a missing credential is answered with the way to sign in
✅ got: /login
[⚙️ assert] a path that answers nothing still leads to the job queue
✅ got: /logs
[⚙️ assert] a server-side failure wears the red hairline
✅ got: border-redwood-700
[⚙️ assert] a client error keeps the phosphor hairline
✅ got: border-redwood-700
[🧪 test] no page closes an element on itself
[⚙️ assert] no element of a status page swallows what follows it
✅ got: ()
[🧪 test] Artanis is handed a page for each status
[⚙️ assert] every status has a handler that answers with a string
✅ got: ()
[⚙️ assert] a status the table does not name still gets a page
✅ got: #t
[⚙️ assert] and it names the status it was asked for
✅ got: 418 unexpected status
[🧪 test] a page is built by the components rather than describing them
[⚙️ assert] no page carries a component call instead of its element
✅ got: ()
[⚙️ assert] the 404 page heads with the code and traces it in a pre
✅ got: ()
[🧪 test] each status answers with a page of this deployment's console
[⚙️ assert] the 400 page carries the chrome, the code and its words
✅ got: ()
[⚙️ assert] the 401 page carries the chrome, the code and its words
✅ got: ()
[⚙️ assert] the 404 page carries the chrome, the code and its words
✅ got: ()
[⚙️ assert] the 500 page carries the chrome, the code and its words
✅ got: ()
ℹ️ info - ran 1 tasks in: 0 seconds, 77377 microseconds
running unit tests from file: logs-live-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
+----------------------------------------------+
[📑 suite] a list of runs while its runs are going
[🧪 test] a row says which job it is about, and whether that job can still change
[⚙️ assert] a job that is running is a row worth asking about
✅ got: (#t #t #t)
[⚙️ assert] a job that has stopped is not asked about again
✅ got: data-log-running="false"
[⚙️ assert] and neither is one that has been taken and not started
✅ got: data-log-running="true"
[🧪 test] the status is read in a place the answer can draw over
[⚙️ assert] a running row draws its status, and the mark of work in progress inside it
✅ got: (#t #t #t)
[⚙️ assert] a finished row draws the status without it
✅ got: (#t #f)
[🧪 test] the answer is the rows that were asked about
[⚙️ assert] each row of the answer names its job, its state and the place its status is read in
✅ got: (#t #t #t #t)
[⚙️ assert] and carries no output, which is a log's page business and not a list's
✅ got: spec data
[🧪 test] a run that fails while the list is open arrives with the retry for it
[⚙️ assert] the row offers the retry the list would have drawn
✅ got: (#t #t)
[⚙️ assert] and so does the answer that keeps the row current
✅ got: (#t #t)
[⚙️ assert] a reader who may not send one is drawn an empty place rather than a form
✅ got: (#t #f)
[🧪 test] a row that has just been taken is read as a run that is still to come
[⚙️ assert] its status says it is queued, and the answer keeps asking about it
✅ got: (#t #t)
[🧪 test] a run taken while the list is open arrives as a row of the list
[⚙️ assert] the run is drawn whole: its row, its state, its name and its page
✅ got: (#t #t #t #t)
[⚙️ assert] and with the controls its row would have been drawn with
✅ got: data-log-actions=""
[🧪 test] a run that is both asked about and newest is drawn once
[⚙️ assert] the row the list already has is answered with its readings, and is not drawn again
✅ got: 1
ℹ️ info - ran 1 tasks in: 0 seconds, 24751 microseconds
running unit tests from file: retention-spec.scm, entrypoint: spec
ℹ️ info - shuffled with seed 347149388 (replay with VERITAS_SEED=347149388)
❌ error - task raised an error: misc-error: (#f statement already finalized ~S (#<<sqlite-stmt> pointer: #<pointer 0x372c4298> live?: #f reset?: #t cached?: #f>) #f)
/root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/version.scm.go
WARNING: (byggsteg html): `get-short-commit-sha' imported from both (hygguile hygguile) and (kracht prelude)
WARNING: (byggsteg html): imported module (hygguile hygguile) overrides core binding `select'
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/html.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/app/views/logs.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/log-poll-spec.scm.go
;;; compiling ./test/veritas/unit/api-v2-spec.scm
;;; compiling ./test/veritas/support/deployment.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/support/deployment.scm.go
;;; compiling ./lib/byggsteg/api.scm
;;; compiling ./lib/byggsteg/auth.scm
;;; compiling ./test/byggsteg/env.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/byggsteg/env.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/auth.scm.go
;;; compiling ./lib/byggsteg/heatmap.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/heatmap.scm.go
;;; compiling ./lib/byggsteg/search.scm
;;; compiling ./lib/byggsteg/domain/profile.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/domain/profile.scm.go
;;; compiling ./lib/byggsteg/sqlite/profile.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/sqlite/profile.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/search.scm.go
;;; compiling ./lib/byggsteg/domain/user.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/domain/user.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/api.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/api-v2-spec.scm.go
;;; compiling ./test/veritas/unit/error-pages-spec.scm
;;; compiling ./lib/byggsteg/errors.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/errors.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/error-pages-spec.scm.go
WARNING: (byggsteg html): `get-short-commit-sha' imported from both (hygguile hygguile) and (kracht prelude)
;;; compiling ./test/veritas/unit/logs-live-spec.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/logs-live-spec.scm.go
;;; compiling ./test/veritas/unit/retention-spec.scm
;;; compiling ./lib/byggsteg/job/retention.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/lib/byggsteg/job/retention.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/byggsteg/trunk/test/veritas/unit/retention-spec.scm.go
ℹ️ info - ran 1 tasks in: 0 seconds, 72797 microseconds
❌ error -
aborting due to error in test case...
Backtrace:
In ice-9/boot-9.scm:
1784:12 7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
6 (apply-smob/0 #<thunk 7f03d9b15340>)
In ice-9/boot-9.scm:
733:2 5 (call-with-prompt _ _ #<procedure default-prompt-handler (k proc)>)
In ice-9/eval.scm:
619:8 4 (_ #(#(#<directory (guile-user) 7f03d9b18c80>)))
In ice-9/command-line.scm:
187:19 3 (_ #<input: custom-port 7f03d9b003f0>)
In unknown file:
2 (eval ((@ (maak main) main)) #<directory (guile-user) 7f03d9b18c80>)
In srfi/srfi-1.scm:
750:9 1 (for-each #<procedure 7f03d7cae198 at maak/maak.scm:87:12 (task)> (test))
In maak/dsl.scm:
89:12 0 ($ _ #:verbose? _ #:join _)
maak/dsl.scm:89:12: In procedure $:
Non-zero exit code when running!
Command: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- guile --fresh-auto-compile -L ./lib -L . -L ./test -c '(begin (setlocale LC_ALL "C.UTF-8") (use-modules (veritas runner)) (run-tests))'
Exit code: 1
--------------------------------------------------------------
Maak: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/byggsteg/trunk/maak.scm
Executing Maak tasks: test
--------------------------------------------------------------
=> Running Maak task: test
Run the project's test suite.
The specs live under test/veritas/unit. That is where the runner looks for
suites -- given the test root ./test, the module prefix `veritas' and the suite
name `unit' -- and it is also what their own `(veritas unit ...)' module names
resolve to on the load path below.
The run names the locale it reads in rather than inheriting one, and it names it
before the runner is asked for: Guile reads a page by the locale in force, and a
pattern over a page that holds a character outside ASCII reports matches where
there are none under a locale that names no encoding. `C.UTF-8' is that name
for a machine that has never generated a locale -- a service, a container, and
this project's own continuous integration, where the job that tests byggsteg is
run by a byggsteg daemon whose Shepherd unit names no locale at all. The suite
reads the pages of this console, whose prose, whose marks and whose console
output are not ASCII; run without a locale it would find elements no browser
knows and fail for a reason that has nothing to do with the change it was run to
judge. Naming it here is part of what the pinned manifest is for: a run of the
suite reads the same pages wherever the pipeline runs.
The specs are compiled rather than read from a cache. A compiled spec outlives
the library it was compiled against -- Guile decides a compiled file is still
good by the spec's own text, and not by the macros and procedures that text was
compiled with -- so a spec compiled before `(veritas veritas)' changed shape is
loaded afterwards as if it still had the old one. What that reads like is a
failure inside this project: `Wrong type to apply: #<syntax-transformer test>'
at the first test of a suite, on a spec whose source is untouched and whose
suite passes when compiled afresh. Compiling from source every run costs a few
seconds and makes the reading depend on the specs alone, which is what a suite
that is run to judge a change has to be.