Skip to content

release check: hrx-placement searched beside the launcher's symlink, not the payload - the row measures on a release instead of SKIPping - #3469

Merged
bong-water-water-bong merged 1 commit into
mainfrom
fix/3353-release-check-skip
Nov 24, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
fix/3353-release-check-skip

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Fixes what engine#3353 item 2 still had open: the hrx-placement row still SKIPs on a release image, for a reason that is wrong. Items 1 and 3 (the SKIP-as-pass footer; sha256sums/payload-name) were fixed by #3354 and are verified below — no change needed for them.

Why the row still skipped

#3354 fixed the model lookup ($HF_HOME/hub + --fetch) and #3368 reworked the measurement. But #3368's own body says "Not run: the full release check on the board with this script" — it drove the row's functions extracted from the script, so the gate that finds the lib was never exercised on a release image.

hrxp_has_switch() (os/mini/release-check.sh:1884) takes dirname() of the engine binary and looks 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 then took its "does not carry GGML_HRX_MODEL_BUFFER_COPY" SKIP (:1970-1971) over a lib that does carry the string.

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 -> /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 has 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: rc1's cut payload carries the switch, rc1's source at pin 5776842d has it, main's pin 39ed69b58 does too.
  • the two function bodies run against the real image: pre-fix -> NOT found; fixed -> found.

The change

  • os/mini/release-check.sh:1884-1901: resolve the engine launcher with readlink -f before searching for libggml-hrx (the same resolution the identity launcher already uses at :2816); when readlink cannot resolve, keep the old path so a SKIP can't become an error.
  • os/mini/release-check.sh:1451-1467: three self-test arms 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, not a blanket pass).
  • No C++, no other row, no other file.

Verification of #3353's already-fixed items (no change made)

  • The counters are written only in pass()/fail()/skip() (:39-46) — 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).
  • On the real v2026.49-rc1 image the VM run prints RESULT: PASS (42 rows: 22 PASS, 20 SKIP, 0 FAIL), and neither sha256sums nor payload-name is in its SKIP set (the rc1 payload README is 1bit engine v2026.49-rc1 ..., which the new tag pattern passes).
  • --fetch pulls Qwen3-4B-Instruct-2507-1bit = unsloth/Qwen3-4B-Instruct-2507-GGUF:Qwen3-4B-Instruct-2507-Q4_K_M.gguf (the file the row names), and that file is staged under $HF_HOME/hub on the board.

Evidence

Self-test, both shells the ctest rows use (CMakeLists.txt:486/:527):

$ sh   os/mini/release-check.sh --self-test  -> 250 ok, "release-check self-test PASS", rc=0
$ bash os/mini/release-check.sh --self-test  -> 250 ok, "release-check self-test PASS", rc=0

Control — origin/main's function (git show 943da215:os/mini/release-check.sh) with these same arms inserted:

$ sh 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): pre-fix function -> NOT found -> row SKIPs (what /data/release-check.log shows); fixed function -> 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

File's own test scripts (as CI runs them): release_check_payload_modes: 0 failures; release_check_hrx_init_reason: ok; release_check_hold_cycle: ok.

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).

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 makes the row reach them instead of SKIPping, so the next release-image run is the one #3353's closure criterion asks for.

Refs #3353

…not the payload - the row measures on a release instead of SKIPping

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
@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) November 24, 2026 08:05
@bong-water-water-bong
bong-water-water-bong merged commit e285cf0 into main Nov 24, 2026
10 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix/3353-release-check-skip branch November 24, 2026 08:19
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3353 - Partially compliant

Compliant requirements:

  • The hrx-placement row now correctly identifies the library path when the launcher is a symlink, fixing the issue where it was skipping due to incorrect path resolution.

Non-compliant requirements:

Requires further human verification:

  • Verification that the release notes template now correctly uses the pass/skip/fail counts.
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Symlink resolution in hrxp_has_switch

The hrxp_has_switch function was not correctly resolving symlinks to find the libggml-hrx.so library. This caused the hrx-placement row to skip on release images where the launcher is a symlink, even though the library exists. The fix ensures that readlink -f is used to resolve the symlink before determining the library path.

_e=${1:-}
_r=$(readlink -f "$_e" 2>/dev/null) || _r=
[ -n "$_r" ] && _e=$_r

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