Commit Graph
2 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 83994ad063 tests: an installer run stops at a wall, not at the refusal it trusts
Six test files ran install.sh or get.sh whole and counted on one refusal to stop the
run, from the real checkout and against the box's own units. With the refusal they stop
at disabled, the old tests ran step 1 on the box (nvidia-smi, docker, systemctl) and got
as far as sudo -v and docker pull of the pinned 27B image, three of the five stayed
green, and get.sh, started from a clone, went on to git fetch into it. They now run a
copy that exits at a wall before step 1 (after it for test_install_sudo, the one that
means to run it), reads its units from a directory the test owns, starts outside any
clone and has the commands that act on the box fenced; each run checks the wall was not
reached and nothing fenced was asked for. The same mutants now fail every one of them,
with no program of the box run. Both context-mode convergences are asked of fixture
boxes instead of the box running the suite, so the native one runs in CI too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 19:01:57 +02:00
Hasan BasbunarandClaude Opus 5 a856bcac84 v1.12.0: one command, and the thing you open
The one-liner left an engine and an API port. The cockpit, which is the point
of the last four releases, sat behind a second command in a README nobody
reads after a 30 GB download. And the installer accepted being run as root,
which on 2026-09-13 produced a silent success into the wrong home: a clone in
/root, a new API key in /root/.config/qwen38, both units as User=root pointing
at it, the engine started, its own generation smoke test passed, success
reported, and every client on the box on 401 against a healthy engine. Nothing
failed, so nothing could be read from a log.

- get.sh refuses root before it clones, install.sh before it writes. With
  SUDO_USER set the refusal names the login, the key path that would stop
  working and the command that works, with no override; a genuine root login
  is refused by default and ALLOW_ROOT=1 gets through.
- The cockpit installs as step 10/10, after the engine answers a real
  generation. The Agent tab comes with it when opencode is on the PATH and is
  skipped with a note when it is not. A cockpit that fails to install never
  fails an engine that is already serving.
- The summary leads with the cockpit URL, read back from the installed unit,
  with a wildcard bind resolved into an address you can type.
- First install binds the tailnet address when there is one; a re-run
  converges on the installed unit. --no-cockpit persists in cockpit.off.

Three bugs the tests found while being written:
- getent exits 2 on an unknown user, and under set -e + pipefail that killed
  the sudo refusal itself: "Install failed at line 36" instead of the message.
- Four tracked test files were run by no CI step: test_install_preflight,
  test_install_sudo, test_proxy_tls, test_uninstall_inventory. Gate 8 covers
  dashboard/tests only, and tests/ had a hand-kept list they had fallen off.
- test_install_sudo declared 2 tests and ran 0 wherever it skipped, which is
  every runner: SkipTest from setUpClass is one skip with testsRun 0.

New gate "No test file in tests/ is left unrun": unittest modules discovered,
script-style files each named by a step, declared == ran in aggregate and per
file. Negative-controlled both halves.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 11:19:41 +02:00