maak-f63f82d1-0e9c

job failed

starting new job...


→ running command: cd "/etc/byggsteg/job-clone//maak/trunk" && git reset --hard && git pull

HEAD is now at c5693e7 feat: Add net, zip and git utils
From https://codeberg.org/jjba23/maak
 * [new tag]         v0.12.0    -> v0.12.0
Already up to date.

→ running command: cd /etc/byggsteg/job-clone/maak/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/maak/trunk && git log --name-status HEAD^..HEAD

commit c5693e720e704a54ab8fd13588ad938122d72971
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Mon Oct 19 21:33:28 2026 +0200

    feat: Add net, zip and git utils

M       README.org
M       maak.scm
M       manifest.scm
A       src/maak/archive.scm
A       src/maak/container.scm
M       src/maak/dsl.scm
M       src/maak/git.scm
M       src/maak/maak.scm
A       src/maak/net.scm
A       src/maak/niri.scm
A       test/veritas/unit/archive.scm
M       test/veritas/unit/commands.scm
A       test/veritas/unit/container.scm
M       test/veritas/unit/dsl.scm
A       test/veritas/unit/elevation.scm
A       test/veritas/unit/git.scm
A       test/veritas/unit/net.scm
A       test/veritas/unit/niri.scm

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


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

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

found unit tests: (cli.scm archive.scm elevation.scm tasks.scm errors.scm niri.scm guix.scm shell.scm git.scm net.scm integration.scm commands.scm docstrings.scm container.scm dsl.scm)


running unit tests from file: cli.scm, entrypoint: spec


+----------------------------------------------+
[📑 suite] Command line switches
  [🧪 test] the environment switch understands the usual negatives
    ✅ got: #f
    ✅ got: #f
    ✅ got: #f
    ✅ got: #t
    ✅ got: #f
    ✅ got: #f
    ✅ got: #t
  [🧪 test] the banner is on unless something turns it off
    ✅ got: #t
    ✅ got: #t
    ✅ got: #f
  [🧪 test] MAAK_NO_BANNER turns the banner off and --banner wins over it
    ✅ got: #t
    ✅ got: #f
    ✅ got: #f
  [🧪 test] environment files come from the flag, the environment, or the file
    ✅ got: (one.env two.env)
    ✅ got: (a.env b.env)
    ✅ got: (test/maak/fixtures/.env)
    ✅ got: ()
+----------------------------------------------+
[📑 suite] Banner and listing
  [🧪 test] the banner greets and names the Maak file
    ✅ got: the infinitely extensible
    ✅ got: test/maak/fixtures/cli.scm
    ✅ got: 0
    ✅ got: ok-task-ran
  [🧪 test] --no-banner keeps the task output
    ✅ got: #f
    ✅ got: 0
    ✅ got: ok-task-ran
    ✅ got: #f
  [🧪 test] MAAK_NO_BANNER is honoured by the run, not only by the switch
    ✅ got: #f
    ✅ got: 0
  [🧪 test] --list shows every task with its docstring
    ✅ got: ok: Print a line and succeed.
    ✅ got: boom: Fail the way a task is supposed to fail.
    ✅ got: 0
+----------------------------------------------+
[📑 suite] A task that fails
  [🧪 test] a task error prints one line with its hint and no backtrace
    ✅ got: hint: Run `maak ok' first.
    ✅ got: #f
    ✅ got: #f
    ✅ got: 1
    ✅ got: maak: error: no artefact for cli-test
  [🧪 test] an unknown task lists the tasks that do exist
    ✅ got: Unknown task: nope
    ✅ got: Available tasks: boom, ok
    ✅ got: 1
+----------------------------------------------+
[📑 suite] Environment files at the command line
  [🧪 test] --env-file is read before the tasks run
    ✅ got: TAG=from-env-file
    ✅ got: 0
  [🧪 test] MAAK_ENV_FILE is read when no flag is given
    ✅ got: TAG=from-env-file
  [🧪 test] a .env beside the Maak file is read by default
    ✅ got: DEFAULT=from-default-env
  [🧪 test] --no-env-file reads nothing at all
    ✅ got: DEFAULT=unset
  [🧪 test] the environment beats the file for a name it already has
    ✅ got: TAG=from-the-environment
+----------------------------------------------+
[📑 suite] Several tasks in one run
  [🧪 test] a failure stops the tasks after it by default
    ✅ got: first-pass-ran
    ✅ got: #f
    ✅ got: no artefact for second-fail
    ✅ got: 1
  [🧪 test] --keep-going runs the tasks after a failure and fails at the end
    ✅ got: first-pass-ran
    ✅ got: last-pass-ran
    ✅ got: (task third-fail):
    ✅ got: 2 tasks failed: second-fail, third-fail
    ✅ got: no artefact for second-fail
    ✅ got: maak: error (task second-fail):
    ✅ got: 1
  [🧪 test] --ignore-errors keeps going and still exits 0
    ✅ got: maak: warning: 1 task failed and --ignore-errors was given: second-fail
    ✅ got: no artefact for second-fail
    ✅ got: 0
    ✅ got: last-pass-ran
+----------------------------------------------+
[📑 suite] Changing directory before anything else
  [🧪 test] --directory reads the Maak file of the directory it entered
    ✅ got: subdir-marker-ran
    ✅ got: 0
    ✅ got: Entering directory
  [🧪 test] a directory that is not there is an error, not a silent fallback
    ✅ got: no such directory: no/such/directory
    ✅ got: 1
    ✅ got: #t
    ✅ got: #t
  [🧪 test] the directory entered is reported by default
    ✅ got: #t
  [🧪 test] --no-print-directory leaves the report out
    ✅ got: #f
  [🧪 test] --quiet asks for silence as well
    ✅ got: #f
  [🧪 test] --no-print-directory runs the same task without the line
    ✅ got: subdir-marker-ran
    ✅ got: #f
    ✅ got: 0
+----------------------------------------------+
[📑 suite] The arguments a run passes on
  [🧪 test] the words after `--' reach the task that was named
    ✅ got: args=one,two
  [🧪 test] a task that takes no arguments is handed none
    ✅ got: 0
  [🧪 test] the arity failure is still the one Guile raised
    ✅ got: Wrong number of arguments
  [🧪 test] a word that names a task is pointed out as an argument
    ✅ got: `beta' names a task of this Maak file
  [🧪 test] the hint spells out the run that was probably meant
    ✅ got: To run several tasks, name them in one comma separated list (`maak alpha,beta') or one word each after `--' (`maak -- alpha beta')
  [🧪 test] a word that names no task leaves the arity error alone
    ✅ got: #f
  [🧪 test] the hint is printed where a run keeps going as well
    ✅ got: `beta' names a task of this Maak file
ℹ️ info - ran 7 tasks in: 0 seconds, 10344 microseconds

running unit tests from file: archive.scm, entrypoint: spec

;;; note: source file ./src/maak/dsl.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/maak/dsl.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/maak/trunk/src/maak/dsl.scm.go
;;; note: source file ./src/maak/main.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/maak/main.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/maak/trunk/src/maak/main.scm.go
;;; note: source file ./src/maak/maak.scm
;;;       newer than compiled /run/current-system/profile/lib/guile/3.0/site-ccache/maak/maak.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/maak/trunk/src/maak/maak.scm.go
mkdir: created directory '/tmp/maak-test-archive-tar-create-15838'
removed '/tmp/maak-test-archive-tar-create-15838/a.txt'
removed '/tmp/maak-test-archive-tar-create-15838/b.txt'
removed '/tmp/maak-test-archive-tar-create-15838/p.tar.gz'
removed directory '/tmp/maak-test-archive-tar-create-15838'
mkdir: created directory '/tmp/maak-test-archive-tar-exclude-15838'
tar: .: file changed as we read it
Backtrace:
In ice-9/boot-9.scm:
  1784:12 18 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
          17 (apply-smob/0 #<thunk 7fa79c7b0340>)
In ice-9/boot-9.scm:
    733:2 16 (call-with-prompt _ _ #<procedure default-prompt-handler (k proc)>)
In ice-9/eval.scm:
    619:8 15 (_ #(#(#<directory (guile-user) 7fa79c7b3c80>)))
In ice-9/command-line.scm:
   187:19 14 (_ #<input: custom-port 7fa79c79a3f0>)
In unknown file:
          13 (eval (exit ((@ (veritas runner) run-tests))) #<directory (guile-user) 7fa79c7b3c80>)
In ice-9/eval.scm:
   191:35 12 (_ _)
In veritas/runner.scm:
   434:16 11 (run-tests)
In srfi/srfi-1.scm:
    750:9 10 (for-each #<procedure 7fa79a861940 at veritas/runner.scm:434:26 (file)> _)
In veritas/runner.scm:
    64:13  9 (run-test-file #:test-file _ #:test-type _ #:entrypoint-function _)
In ice-9/threads.scm:
    399:8  8 (_ _)
In ice-9/boot-9.scm:
  3307:13  7 (_)
In ice-9/threads.scm:
    399:8  6 (_ _)
In ice-9/boot-9.scm:
  3596:20  5 (_)
   2890:4  4 (save-module-excursion #<procedure 7fa799eca120 at ice-9/boot-9.scm:3597:21 ()>)
  3616:26  3 (_)
In unknown file:
           2 (primitive-load-path "veritas/unit/archive" #<procedure 7fa79a3d3e80 at ice-9/boot-9.scm:3603:37 ()>)
In maak/archive.scm:
    165:2  1 (_)
In maak/dsl.scm:
    148:2  0 (run _ #:verbose? _ #:env _ #:sudo? _ #:dev-null? _ #:allow-failure? _ #:async? _ #:expand? _)

maak/dsl.scm:148:2: In procedure run:
ERROR:
  1. &maak-error:
      message: "command failed (exit code 1): tar -c -z -f /tmp/maak-test-archive-tar-exclude-15838/p.tar.gz -C /tmp/maak-test-archive-tar-exclude-15838 '--exclude=*.log' ."
      hint: "Fix the command above, or run `maak --dry-run' to inspect it first."
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 7f3038a77340>)
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) 7f3038a7ac80>)))
In ice-9/command-line.scm:
   187:19  3 (_ #<input: custom-port 7f3038a623f0>)
In unknown file:
           2 (eval ((@ (maak main) main)) #<directory (guile-user) 7f3038a7ac80>)
In srfi/srfi-1.scm:
    750:9  1 (for-each #<procedure 7f3037b61198 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 shell -m manifest.scm -- env VERITAS_TEST_MODULE=veritas VERITAS_TEST_TOP_DIR=test VERITAS_TEST_TYPE=unit VERITAS_RUN_BENCHMARKS=false guile -L ./src -L ./test -c '(exit ((@ (veritas runner) run-tests)))'
Exit code: 1



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

Maak: the infinitely extensible command runner

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

Executing Maak tasks: test

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

=> Running Maak task: test

  Run the project's unit test suite with Veritas.

The specs live under test/veritas/unit and are located by the Veritas runner,
which needs both the library sources and the test tree on the load path.
inspect the job's lambda expression
(lambda()
  (list
   `((task . "maak-test")
     (project . "maak")
     (branch-name . "trunk")
     (clone-url . "https://codeberg.org/jjba23/maak.git"))
   `((task . "trivial")
     (project . "maak")
     (branch-name . "trunk")
     (clone-url . "https://codeberg.org/jjba23/maak.git")
     (trivial-cmds . ("cd /etc/byggsteg/job-clone/maak/trunk &&
                              sudo guix shell -f guix.scm -- maak deploy")))))