starting new job...
→ running command: dir='/etc/byggsteg/job-clone//sift/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 moved from 7a60afb to 5538e72
→ running command: cd /etc/byggsteg/job-clone/sift/trunk && uname -a
Linux wolk-jjba 7.2.11-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
→ running command: cd /etc/byggsteg/job-clone/sift/trunk && git log --name-status HEAD^..HEAD
commit 5538e72329fd0fd50a4562948083dea3a33c31d2
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Sun Nov 1 22:10:28 2026 +0100
refactor(build): write the Maak file the way the rest of the collection does
sift's Maak file had grown its own dialect: the whole DSL imported under a
`dsl:' prefix, shell words quoted by hand with `'~a'`, refusals raised with
`error`, and a section layout that matched no other Maak file. It reads like
the others now.
The prefix is gone, because `(maak maak)` already re-exports the DSL: only
`(maak git)` stays prefixed, and the comment says why that one earns it. A
command is run with `run' -- a program and the words it was given, no shell --
and a *line* is run with `manifest-shell' or `$', which join their words into
one command line, so `run-guile' and the new `run-script' quote what has to
survive as one word with `shell-quote' instead of pasting quote marks around it.
Two helpers replace the sixteen hand-quoted scripts that were the old shape:
`run-guile' and `run-script'.
Refusals go through `task-error', which is what maak prints without a
backtrace and what can carry a hint -- so a missing Veritas checkout now says
where to get one, and the release's three refusals (not a version, already a
tag, no version named) read like the rest of the collection's. Strings are
built with `~' and progress is logged with `log-info'.
New: `maak help' and `maak version', the two tasks every Maak file in the
collection has. `version' reports what the checkout states and every place the
number is quoted; `release' with no argument answers with the same report
rather than printing it a second time, so there is one implementation of it.
Dead in the old file: `project-name', which nothing read -- sift's own
SIFT062 found it.
`maak' now lists tasks and only tasks, which is what the export list is for:
without it maak runs every procedure the file defines, helpers included.
Every task was run after the change -- test, check, self-check, fixture-check,
emacs-check, emacs-test, editors-check, docs, bench, install and uninstall into
a temporary PREFIX -- and each one passes.
🤖 Generated with [ECA](https://eca.dev) (deepseek/deepseek-flash)
Co-Authored-By: eca-agent <git@eca.dev>
M maak.scm
→ running command: cd /etc/byggsteg/job-clone/sift/trunk && maak test
;;; note: source file /etc/byggsteg/job-clone/sift/trunk/maak.scm
;;; newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/sift/trunk/maak.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /etc/byggsteg/job-clone/sift/trunk/maak.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/sift/trunk/maak.scm.go
maak: error: veritas: no checkout at /Hacking/veritas/src
hint: Set VERITAS_DIR, vendor it as a submodule, or check out https://codeberg.org/jjba23/veritas.
--------------------------------------------------------------
Maak 0.14.0: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/sift/trunk/maak.scm
Executing Maak tasks: test
--------------------------------------------------------------
=> Running Maak task: test
Run the whole Veritas suite.
Veritas is the only test framework this project uses; it is loaded from
VERITAS_DIR (~/Hacking/veritas by default) so that the checkout under test is
the checkout that is being developed, and the load path is passed here rather
than exported by the caller, so `maak test' works from a clean checkout.