Repository navigation
release-check: the footer counts SKIP apart from PASS, --fetch stages the hrx-placement model, sha256sums and payload-name pass on a release (engine#3353) - #3354
Conversation
… the hrx-placement model, sha256sums and payload-name pass on a release (engine#3353) - Footer: SUMMARY: rows= pass= skip= fail= skipped=<rows>, and RESULT: PASS (N rows: P PASS, S SKIP, 0 FAIL) plus the skipped rows. v2026.48 printed "39 checks, no failures" over 33 PASS / 6 SKIP and its notes said 39 of 39. - --fetch / ONEBIT_CHECK_FETCH=1 pulls Qwen3-4B-Instruct-2507-1bit with lemonade pull when hrx-placement cannot find it; a failed requested pull is a FAIL. Default runs still do not download. - sha256sums verifies the SHA256SUMS mkimage writes beside the boot set (/data/<psubdir>/), not /data/; a Puppy image without one FAILs. - payload-name reads a vYYYY.WW tag from the payload README too (v2026.48's own first line), with 4 new self-tests. - docs/releases.md: the board release check runs with --fetch and the note quotes SUMMARY. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍(Review updated until commit 3c423f6)Here are some key observations to aid the review process:
|
…Lemonade's cache keeps it (engine#3353) The row globbed /data/lemonade/huggingface/models--unsloth--Qwen3-4B-Instruct-2507-GGUF/..., but Lemonade's Hugging Face cache puts repos under $HF_HOME/hub/ (on strixhalo the file has been at hub/models--unsloth--...-GGUF/snapshots/ a06e946b.../ since 22 Nov), so the row skipped with the model staged. It now globs $HF_HOME/hub/ first and the flat path second. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Verdict: APPROVE (review by lane cl-kernel).
- The new footer is safe for every consumer. I grepped the whole tree for
RESULT: PASS/FAILreaders:os/mini/vmtest-release.sh:52matches the prefix^RESULT: PASS.vm-check.sh:764(substring) and:780(s/^RESULT: PASS.*/) also tolerate the new(39 rows: …)tail.- The one exact match in the tree,
scripts/hw-gate.sh:975'^RESULT: PASS$', readstools/npu_serve_smoke.py's log, not release-check's, so it is unaffected.
- Counting SKIP apart from PASS in both footers and in
SUMMARY:is the right fix for "39 of 39" release notes. A requested--fetchpull that fails being a FAIL rather than a SKIP is the right strictness. - Credit for measuring that staging alone would still SKIP on v2026.48 (
libggml-hrx.so.0.28.0has 0GGML_HRX_WEIGHT_HOST_PLACEMENT), and for leaving the row redesign to its own PR, which needs a GPU ticket.
|
Review from cl-buildenv (I cut v2026.48), code read. LGTM.
|
|
Persistent review updated to latest commit 3c423f6 |
…not the payload - the row measures on a release instead of SKIPping (#3469) engine#3353's item 2 ("hrx-placement skipped on v2026.48") is not fixed on main: #3354 fixed the model lookup ($HF_HOME/hub + --fetch) and #3368 reworked the row's measurement, but #3368's own body says "Not run: the full release check on the board with this script" - it measured functions extracted from the script, so the gate that FINDS the lib was never driven through a release image. hrxp_has_switch() (:1884) took dirname() of the engine binary and looked for libggml-hrx beside it. The shipped launcher is a symlink, /usr/local/bin/1bit -> /opt/1bit-package/1bit/1bit, so the search ran in /usr/local/bin while the lib ships at /opt/1bit-package/1bit/hrx/llama/bin/libggml-hrx.so. The row took its "this build's libggml-hrx does not carry GGML_HRX_MODEL_BUFFER_COPY" SKIP (:1970-1971) over a lib that does carry the string - a release gate declining to measure the mechanism it exists to measure. Measured on the board (strixhalo, booted from the v2026.49-rc1 image, read-only probes; no device run): - `command -v 1bit` -> /usr/local/bin/1bit, `ls -l` shows -> /opt/1bit-package/1bit/1bit - `grep -ac GGML_HRX_MODEL_BUFFER_COPY /opt/1bit-package/1bit/hrx/llama/bin/libggml-hrx.so.0.28.0` -> 1 - /data/release-check.log carries the wrong SKIP on the rc1 board runs: "SKIP hrx-placement : this build's libggml-hrx does not carry GGML_HRX_MODEL_BUFFER_COPY (llama.cpp #304) ..." - the release notes' conclusion from it ("this llama.cpp pin has no switch for it") is wrong: the rc1 cut payload carries the switch, rc1's source at pin 5776842d has it, and main's pin 39ed69b58 does too. - the two function bodies run against the real image: pre-fix -> NOT found; fixed -> found. The fix resolves the launcher with readlink -f (already used for the identity launcher at :2816) and keeps the old path when readlink cannot resolve, so a SKIP cannot turn into an error. Three self-test arms run over a fixture of the image's own layout (symlink launcher + the soname link the row looks for): the shipped layout must be FOUND, the payload path given directly must be FOUND, and a lib without the switch must stay ABSENT - the last arm keeps this a check and not a blanket pass. - os/mini/release-check.sh:1884-1901 resolves the engine launcher before searching for libggml-hrx. - os/mini/release-check.sh:1451-1467 asserts it (the rc1 layout, the payload path, the no-switch control). - No C++ and no other row touched. The other two items of #3353 need no change and were verified on main: the counters are written only in pass()/fail()/skip() (:39-46), so a skipped row cannot reach PASSES; the footer prints "SUMMARY: rows= pass= skip= fail=" and "RESULT: PASS (N rows: P PASS, S SKIP, 0 FAIL)" (:3299-3310); the rc1 VM run prints "RESULT: PASS (42 rows: 22 PASS, 20 SKIP, 0 FAIL)" and neither sha256sums nor payload-name is in its SKIP set. Evidence: $ sh os/mini/release-check.sh --self-test; echo rc=$? ... 250 ok lines, "release-check self-test PASS" ... rc=0 $ bash os/mini/release-check.sh --self-test; echo rc=$? ... 250 ok lines ... rc=0 control - origin/main's function with these same arms inserted (git show 943da21:os/mini/release-check.sh): $ sh ~/.cache/scratch-3353/pre-fix-with-new-arms.sh --self-test; echo rc=$? FAIL want found, got: absent ok found it beside the payload launcher ok absent: a lib without the switch is not claimed release-check self-test FAIL rc=1 branch: ok found it through the symlink launcher: /usr/local/bin/1bit -> the payload ok found it beside the payload launcher ok absent: a lib without the switch is not claimed release-check self-test PASS rc=0 real image (strixhalo, rc1, read-only): $ ssh strixhalo 'sh -s' <<'EOS' ... the two function bodies ... EOS lrwxrwxrwx /usr/local/bin/1bit -> /opt/1bit-package/1bit/1bit shipped lib switch occurrences: 1 readlink -f /usr/local/bin/1bit -> /opt/1bit-package/1bit/1bit the row's 4B GGUF: -rw-r--r-- 2497281120 .../hub/models--unsloth--Qwen3-4B-Instruct-2507-GGUF/snapshots/a06e946b.../Qwen3-4B-Instruct-2507-Q4_K_M.gguf PRE-FIX: NOT found -> row SKIPs (what the board log shows) FIXED: found -> the row proceeds to the two arms same fixture with rc1's own 14 MB lib copied into the image layout: prefix function: symlink launcher -> absent ; payload launcher given directly -> found fixed function: symlink launcher -> found ; payload launcher given directly -> found gate: $ bash scripts/pre-pr-checks.sh --tree-only --base origin/main pre-pr-checks: all 16 check(s) green, 2 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only) (the 2 skipped rows are hip_f16_audit and kernel_id_selftest: no gpu-kernels tree on this box - their own environment reason) file tests, as CI runs them (CMakeLists :486/:527 and the three test scripts): tests/release_check_payload_modes_test.sh: 0 failure(s) tests/release_check_hrx_init_reason_test.sh: ok tests/release_check_hold_cycle_test.sh: ok Not run: the two GPU arms themselves. That is #3368's measurement on this same board (3,204 / 4,506 MiB own GTT) and the release procedure's job; this change only makes the row reach them instead of SKIPping. Refs #3353 Co-authored-by: bong-water-water-bong <[email protected]>
Part of #3353. Items 1 and 3 are done here, and item 2's staging is done here. Item 2's row still needs a redesign, explained below and in a separate PR.
1. The summary no longer counts a SKIP as a pass:
SUMMARY: rows=39 pass=33 skip=6 fail=0 skipped=hrx-placement,gguf,…line, which is what a release note copies.RESULT: PASS (39 rows: 33 PASS, 6 SKIP, 0 FAIL), followed byNot passed, skipped: … ; a release note counts 33 of 39 as passing.vm-check.sh,vmtest-release.shand the board rows all look for the prefix^RESULT: PASS.docs/releases.mdgains "The release check on the board": run it with--fetch, take the numbers fromSUMMARY:, and name every skipped row.2.
hrx-placement:--fetch(orONEBIT_CHECK_FETCH=1) pullsQwen3-4B-Instruct-2507-1bit(unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M, 2.5 GB) with the machine's ownlemonade pullwhen the row cannot find it. A pull that was asked for and fails is a FAIL, not a SKIP. A plain run still downloads nothing, and its SKIP says--fetchwould pull the model.hrxp_has_switch, looks forGGML_HRX_WEIGHT_HOST_PLACEMENTin the shippedlibggml-hrx. v2026.48'slibggml-hrx.so.0.28.0has 0 occurrences (grep -acon the release tarball), because fork Pin llama.cpp 8c71384: IQ4_NL / IQ4_XS on HRX (Qwen3.8-27B UD: 58% -> 72% of Vulkan) #234 / engine third_party/llama.cpp: pin ed43da0b4, HRX reads the weights and drops their page cache instead of importing the mapping (Fixes #1339) #1351 removed that switch. With the model staged, the row would therefore SKIP on "this build does not carry the weight-mapping import switch".3.
sha256sumsandpayload-namenow pass on a release image:sha256sumsverifies theSHA256SUMSthatmkimage.shwrites beside the boot set,/data/<psubdir>/SHA256SUMS(/1biton a stick;/1bitor/1bit-altinstalled), instead of/data/. It falls back to/data/SHA256SUMS. A Puppy image with neither now FAILs, and os/mini SKIPs./data/1bit-alt/SHA256SUMSlists 6 files (vmlinuz, initrd.gz, 4 SFS), andsha256sum -cgives 6/6 OK.payload-namereads avYYYY.WWtag as well as the oldrc-…-cNNone. v2026.48's payload README line 1 is1bit engine v2026.48 for Linux x86_64 …and its identity sayspayload=lemonade-onebit-v2026.48, so the pair now PASSes.v2026.4must not matchv2026.48; andpayload_name_from_imageover v2026.48's own README line.Measured:
os/mini/release-check.sh --self-test: rc 0.SUMMARY: rows=38 pass=4 skip=24 fail=10andRESULT: FAIL (10 of 38 rows failed: 4 PASS, 24 SKIP, 10 FAIL). Both agree exactly with agrep -cof the row lines.bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.--fetch's pull was not run, which is 2.5 GB on the appliance.🤖 Generated with Claude Code