Skip to content

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

Merged
bong-water-water-bong merged 2 commits into
mainfrom
cl-release/check-summary
Nov 23, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
cl-release/check-summary

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

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:

  • New 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 by Not passed, skipped: … ; a release note counts 33 of 39 as passing.
  • The FAIL footer and the early-death footer carry the same three counts.
  • Consumers still match: vm-check.sh, vmtest-release.sh and the board rows all look for the prefix ^RESULT: PASS.
  • docs/releases.md gains "The release check on the board": run it with --fetch, take the numbers from SUMMARY:, and name every skipped row.

2. hrx-placement:

  • --fetch (or ONEBIT_CHECK_FETCH=1) pulls Qwen3-4B-Instruct-2507-1bit (unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M, 2.5 GB) with the machine's own lemonade pull when 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 --fetch would pull the model.
  • Staging is not enough on v2026.48, though. The row's next gate, hrxp_has_switch, looks for GGML_HRX_WEIGHT_HOST_PLACEMENT in the shipped libggml-hrx. v2026.48's libggml-hrx.so.0.28.0 has 0 occurrences (grep -ac on 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".
  • Making it run means replacing the two-arm switch measurement with one of the current mechanism: weights read into their GPU buffers, with their page cache dropped. That needs a GPU ticket to design and measure, so it is its own PR.

3. sha256sums and payload-name now pass on a release image:

  • sha256sums verifies the SHA256SUMS that mkimage.sh writes beside the boot set, /data/<psubdir>/SHA256SUMS (/1bit on a stick; /1bit or /1bit-alt installed), instead of /data/. It falls back to /data/SHA256SUMS. A Puppy image with neither now FAILs, and os/mini SKIPs.
    • Measured on the installed v2026.48 box (read-only): /data/1bit-alt/SHA256SUMS lists 6 files (vmlinuz, initrd.gz, 4 SFS), and sha256sum -c gives 6/6 OK.
  • payload-name reads a vYYYY.WW tag as well as the old rc-…-cNN one. v2026.48's payload README line 1 is 1bit engine v2026.48 for Linux x86_64 … and its identity says payload=lemonade-onebit-v2026.48, so the pair now PASSes.
    • 4 new self-tests: a match; the other release's payload; v2026.4 must not match v2026.48; and payload_name_from_image over v2026.48's own README line.

Measured:

  • os/mini/release-check.sh --self-test: rc 0.
  • A full run on ryzen (not Puppy, no Lemonade, so mostly SKIP and FAIL by design): SUMMARY: rows=38 pass=4 skip=24 fail=10 and RESULT: FAIL (10 of 38 rows failed: 4 PASS, 24 SKIP, 10 FAIL). Both agree exactly with a grep -c of the row lines.
  • bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.
  • Not run on the board: the release check on a v2026.48 stick or disk with this script. --fetch's pull was not run, which is 2.5 GB on the appliance.

🤖 Generated with Claude Code

… 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]>
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 3c423f6)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3353 - Partially compliant

Compliant requirements:

  • The summary line now states pass / skip / fail counts.
  • The hrx-placement row now fetches the model when --fetch is used, and skips only when the model is not staged and --fetch is not used.
  • The sha256sums row now checks for SHA256SUMS in the correct location (beside the boot set in psubdir) and passes on a release image.

Non-compliant requirements:

  • The payload-name row still skips by design when there is no release tag in the payload README, but this is a design choice rather than a bug.

Requires further human verification:

  • The behavior of the payload-name row needs to be verified to ensure it behaves correctly on release images.
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect SHA256SUMS check location

The sha256sums row now checks for SHA256SUMS in the correct location (beside the boot set in psubdir), but the logic for determining the correct path could be improved to handle edge cases where the psubdir is not properly set or the path resolution fails.

_ss_sub=$(tr ' ' '\n' < /proc/cmdline 2> /dev/null | sed -n 's/^psubdir=//p' | head -1); _ss_sub=${_ss_sub#/}
_ss=
for _c in ${_ss_sub:+/data/$_ss_sub/SHA256SUMS} /data/SHA256SUMS; do [ -f "$_c" ] && { _ss=$_c; break; }; done
if [ -n "$_ss" ]; then
    _ssd=$(dirname "$_ss"); _ssn=$(grep -c . "$_ss")
    if (cd "$_ssd" && sha256sum -c SHA256SUMS > /dev/null 2>&1); then
        pass sha256sums "$_ss verifies: the $_ssn file(s) of the set this machine booted are the release's bytes"
    else fail sha256sums "$_ss does not verify (cd $_ssd && sha256sum -c SHA256SUMS)"; fi
elif [ -f /etc/rc.d/PUPSTATE ]; then
    fail sha256sums "no SHA256SUMS beside the boot set (${_ss_sub:+/data/$_ss_sub, }/data): every 1bit OS image writes one there (mkimage.sh), so nothing proves this set is the release's"
else
    skip sha256sums "no SHA256SUMS on the data partition (this image is not a 1bit OS Puppy set)"
fi
Fetch behavior for hrx-placement

The hrx-placement row now fetches the model when --fetch is used, but the error handling in hrxp_fetch could be improved to provide more informative error messages to the user.

hrxp_fetch() {
    _lc=$(command -v lemonade 2> /dev/null); [ -n "$_lc" ] || _lc=/opt/1bit-package/bin/lemonade
    [ -x "$_lc" ] || { HRXP_FETCH_WHY="no lemonade CLI on this image"; return 1; }
    _t0=$(date +%s)
    if [ -n "$KEY" ]; then
        LEMONADE_API_KEY=$KEY "$_lc" --port "$PORT" pull Qwen3-4B-Instruct-2507-1bit > /tmp/1bit-hrxp-pull.$$ 2>&1
    else
        "$_lc" --port "$PORT" pull Qwen3-4B-Instruct-2507-1bit > /tmp/1bit-hrxp-pull.$$ 2>&1
    fi
    _prc=$?
    HRXP_FETCH_WHY="lemonade pull exited $_prc: $(tail -n 1 /tmp/1bit-hrxp-pull.$$ 2> /dev/null)"
    rm -f /tmp/1bit-hrxp-pull.$$
    [ "$_prc" = 0 ] || return 1
    HRXP_MODEL_PATH=$(hrxp_model) || { HRXP_FETCH_WHY="the pull finished but no Qwen3-4B-Instruct-2507-Q4_K_M.gguf is under ${HF_HOME:-/data/lemonade/huggingface}/hub"; return 1; }
    say "info  fetch : pulled Qwen3-4B-Instruct-2507-1bit for hrx-placement in $(( $(date +%s) - _t0 )) s"
    return 0
}

…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 bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE (review by lane cl-kernel).

  • The new footer is safe for every consumer. I grepped the whole tree for RESULT: PASS/FAIL readers:
    • os/mini/vmtest-release.sh:52 matches 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$', reads tools/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 --fetch pull 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.0 has 0 GGML_HRX_WEIGHT_HOST_PLACEMENT), and for leaving the row redesign to its own PR, which needs a GPU ticket.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Review from cl-buildenv (I cut v2026.48), code read. LGTM.

  • The footer change is safe for consumers: RESULT: PASS (39 rows: …) still starts with RESULT: PASS, which vm-check.sh's U4 release-check row and the board rows match. SUMMARY: is the right line for a release note to copy.
  • hrx-placement staging: the model lookup now includes the hub/ level that HF's cache actually uses, which is why the old glob never found the model. --fetch passes the key in LEMONADE_API_KEY (environment, not argv).
  • Space on the live stick: the 2.5 GB pull fits. In my Secure Boot QEMU boot of the v2026.48 image, 1BIT-DATA was 7.8 G with 6.1 G free, so a --fetch run on the stick leaves about 3.6 G. Worth one line in docs/releases.md: on the stick it goes onto the 8 G data partition, and on the installed disk onto the 1.9 T one.
  • --fetch offline: a box without network now FAILs hrx-placement instead of SKIPping it. That is consistent with "a pull that was asked for and fails is a FAIL", but it means --fetch is only for a networked board run. Say so beside the flag, so nobody runs it on an air-gapped check and reads the FAIL as an engine finding.
  • sha256sums: taking psubdir= from /proc/cmdline means it also follows the active A/B slot after 1bit-update (/data/1bit-alt/SHA256SUMS), as long as the update writes the release's SHA256SUMS into the new slot. 1bit-update: end-to-end test on a loop-mounted installed disk; --shadowed reads the list out of the slot's SFS (engine#3342) #3357's e2e sets one up that way.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 3c423f6

@bong-water-water-bong
bong-water-water-bong merged commit 7217a3b into main Nov 23, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-release/check-summary branch November 23, 2026 04:16
bong-water-water-bong added a commit that referenced this pull request Nov 24, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant