Repository navigation
docs: make the testing guide's provisioning default match provision.sh - #515
Conversation
testing.md said the VM harness defaults to llama3.2:3b while provision.sh pulls qwen3:8b — the model the same section calls unusable on a CPU-only VM. A contributor without a GPU followed the guide, pulled 5 GB, and lost every story to the thinking-mode HTTP 500 the docs promised could not happen. State qwen3:8b as the default (needs a GPU) and llama3.2:3b as the CPU-only override, and anchor them: provider-parity.test.sh now reads the default back out of provision.sh's SYSKNIFE_TEST_MODEL expansion and requires the guide's default sentence and its `# default` comment to name the same model. The assertion refuses to pass when the line it reads cannot be found, so a renamed variable cannot silently uncheck itself. Fixes lacs-project#501
vladimirrott
left a comment
There was a problem hiding this comment.
Reviewed at 7aeda743. Nothing here blocks.
You kept to the scope: the guide now says what provision.sh does, the default is untouched, and line 124 about the CI smoke test stays as it was. The new assertion reads the default out of the script rather than restating it, and it reports when the expansion is missing instead of comparing nothing. That last part is what keeps it from going quiet after a rename.
What I checked
maintainer screen marks the test script as executable, and my container sandbox was unavailable today, so I did not run provider-parity.test.sh. I did replay its two document checks with my own grep, using the same patterns, against the guide on main and on your branch:
$ bt='`'; for ref in origin/main p515; do git show $ref:docs/contributing/testing.md > /tmp/r28-testing.md; a=0; grep -Eq "^(We default to|The harness default is) \*\*${bt}qwen3:8b${bt}\*\*" /tmp/r28-testing.md && a=1; b=0; grep -Eq "^SYSKNIFE_TEST_MODEL=qwen3:8b .+# default" /tmp/r28-testing.md && b=1; echo "$ref sentence=$a comment=$b"; done
origin/main sentence=0 comment=0
p515 sentence=1 comment=1
Both fail on today's guide and pass on yours, which matches your before-and-after. shellcheck --severity=warning is clean on the new script, all five workflows at your head passed, and the branch merges clean. Before I approve, I will run your qwen2.5:3b mutation myself.
Optional
Two sentences read a little off after the move, and neither will go red:
- "~2 GB if you override" does not say override to what. "~2 GB for
llama3.2:3b" says it. - "On a CPU-only VM, override to
llama3.2:3bafter empirical live testing on a CPU-only 4-vCPU / 10 GB VM" reads as though the reader has to do the testing first. Something like "On a CPU-only VM, override tollama3.2:3b. In live testing on a 4-vCPU / 10 GB VM it downloads ~2 GB, has no thinking mode, calls tools reliably and takes ~2-4 min per story."
Once this lands, #411 is another place where the docs leave a contributor to guess about their platform: nothing says the suite is only observed on Linux, and a macOS contributor dropped a working fix over it. Comment on #411 if you want it and I will assign it to you there.
vladimirrott
left a comment
There was a problem hiding this comment.
Approved at 7aeda743.
Reading the default back out of provision.sh instead of hardcoding it is what makes this hold. The section now fails when either side moves, and the failure names the model: a future bump to the provisioning default breaks the doc check rather than quietly restoring the drift you are fixing.
The second assertion is the one I would have left out and been wrong to. Requiring # default to sit on the override line for the model the script pulls with no override means a reader who copies any line from that block gets a working command, and the one they get by copying nothing is labelled.
What I ran:
$ maintainer-merge verify 515 7aeda743 tests/e2e/provider-parity.test.sh \
's%SYSKNIFE_TEST_MODEL:-qwen3:8b%SYSKNIFE_TEST_MODEL:-llama3.2:3b%' shell
running 'tests/e2e/provider-parity.test.sh' unmutated
shell suite: evidence of 1 executed unit(s), passing unmutated
applying the mutation and re-running
receipt recorded for #515 at 7aeda743 (observed: clean pass, mutated fail)
That flips provision.sh to pull a different model and leaves your doc alone. Your check fires and says testing.md does not name it. That is the direction the guard has to work in, and it does.
local_bt=$(printf '')reads odd out of context and is correct: a backtick inside the double-quotedgrep -Eq` pattern would start command substitution. Worth the comment you put on it.
Board: 12 pass, container-smoke skipping, merge clean. CHANGELOG entry at merge is mine.
The #411 offer from this morning still stands: nothing in the suite says it is only observed on Linux, and a macOS contributor dropped a working fix over that silence. Comment there and I will assign it.
Anyone who chases a 5 GB model pull down to the line of shell that caused it is running VMs for real work. sysknife history and sysknife audit verify are read-only and answer what changed on a box, if that is ever useful to you.
#515 added `[HACKING.md](../../HACKING.md)` to the testing guide. HACKING.md is not in `docs/SUMMARY.md`, so mdBook rewrites the target to `../../HACKING.html` and publishes a link to a page it never wrote. #379's new `scripts/check-mdbook-links.sh` caught it on the merged tree, within an hour of #515 landing, which is the class of defect that check exists for. The second relative link on the same page is rewritten the same way by #379 itself, so this touches only the line #515 introduced. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BYyuZWfzSYSH2CQG1GTmgc
Four contributor pull requests landed today and the Unreleased section was empty, so `maintainer-repo release-check` had nothing to read and said so. #516 is stories only and carries no entry. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BYyuZWfzSYSH2CQG1GTmgc
|
Merged as One thing I should have caught in review and did not. The sentence you added links to That is my miss rather than yours. The #411 offer still stands: nothing in the suite says it is only observed on Linux, and a macOS contributor dropped a working fix over that silence. Comment there and I will assign it. |
Middle digit for one reason: #520 changes behaviour a caller relied on. `CreateScheduledJob` now writes `sysknife-<name>.service` and `.timer` instead of `<name>.service` and `.timer`, and refuses when either path already exists where the old helper opened it with "w" and truncated it. A request that used to succeed now exits non-zero, which docs/release.md counts as a break in the 0.y series whether or not a signature moved. That is also the reason to ship rather than wait: every installed copy still has a helper that will destroy a systemd unit named after the job. Nothing else here reaches the published crates. #379, #512, #513, #515, #516 and #523 are documentation, CI gates and end-to-end stories, and `git diff v0.22.0..HEAD -- crates apps packages` named only the four files #520 touches. All release versions match 0.23.0 (15 internal dependency pins checked). Full release rehearsal passed; every public crate packaged and verified. Summary 1880 tests run: 1880 passed Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01BYyuZWfzSYSH2CQG1GTmgc
TLDR
docs/contributing/testing.mdtold readers the VM harness defaults tollama3.2:3b.tests/e2e/provision.shactually defaults toqwen3:8b— the model the same section warns cannot finish a call on a CPU-only VM. This makes the guide say what the script does, and pins the pairing so the two cannot drift apart again.User Flow
A contributor with no GPU reads the provisioning section, runs
./tests/e2e/atomic-vm.sh provisionwith nothing set, and gets what the current guide promises to make impossible: a 5 GBqwen3:8bpull (the guide promised ~2 GB) followed by every story failing with the thinking-mode HTTP 500 the same page warns about.HACKING.md:305andcrates/sysknife-brain/src/config.rs:24both agree with the script; the testing guide has been the odd one out since the initial public release.Changes
docs/contributing/testing.md— the provisioning section now matchesprovision.sh:qwen3:8b(~5 GB) with ~2 GB for the override, not the reverseSYSKNIFE_TEST_MODELblock listsqwen3:8bfirst with# default, GPU passthrough only, and moves# default-style annotation off thellama3.2:3bline (now# CPU-only friendly)qwen3:8b) and points at the expansion inprovision.sh; thellama3.2:3bparagraph now describes the recommended CPU-only override rather than the default.github/workflows/e2e.ymldoes pullllama3.2:3bon that pathllama3.2:3bon a 4-vCPU VM is kept verbatim in substance (moved to the override paragraph)tests/e2e/provider-parity.test.sh— new assertion in the same test that already derives provider tables fromconfig.rs:provision.sh'sSYSKNIFE_TEST_MODEL="${SYSKNIFE_TEST_MODEL:-...}"expansionThe harness default is **qwen3:8b**...) to name that model# defaultcomment in the block to sit on that model's lineTest evidence
Written test-first against the unfixed guide, in a scratch checkout of the branch:
Only the two files named in the issue are touched; both are LF-only and the diff against
maincontains only the intended hunks.Checklist
provision.shdoes today, not a proposed default (per the issue's scope note — changing the default is a maintainer decision)bash -npasses on the modified test; no other test asserts on these linesFixes #501