Skip to content

os: the release check names only the hardware rows that actually skipped - #814

Merged
bong-water-water-bong merged 2 commits into
mainfrom
1bit/release-check-hw-footer
Nov 2, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
1bit/release-check-hw-footer

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

What the hardware test caught

The c20 live USB boot on 2026-11-02 reported RESULT: PASS (19 checks, no failures) — and, in the same transcript,
gpu, npu, models and chat-hrx all PASSed on the board. The PASS footer then printed:

Hardware-only rows (SKIP here): gpu, npu, models, chat-hrx, chat-npu - they need the Strix Halo GPU and NPU.

/data/release-check.log is the release evidence file, and it claimed the four rows that are the entire point of a
hardware run were skipped. The line was unconditional: written for the VM case, printed on every PASS.

The change

skip() records which of the five hardware-only rows (gpu, npu, models, chat-hrx, chat-npu) skipped, and the
footer names exactly those. Nothing else changes: no row's verdict, no count, no exit code, and the VM case prints the
previous sentence verbatim.

VM, all five skipped        Hardware-only rows (SKIP here): gpu, npu, models, chat-hrx, chat-npu - they need the Strix Halo GPU and NPU.
board 2026-11-02 (chat-npu)  Hardware-only rows (SKIP here): chat-npu - they need the Strix Halo GPU and NPU.
board, all five passed      (no line at all)

Verified

  • bash -n clean; tools/copyright.py --check rc=0.
  • The footer logic driven through the real say/pass/fail/skip + footer code extracted from the file, five cases:
    no skips → no line · secureboot only (not a hardware row) → no line · npu chat-hrx → npu, chat-hrx ·
    secureboot chat-npu sealed-sig sha256sums (the actual c20 live set) → chat-npu · all five → the old line verbatim.
  • os/mini/release-check.sh --self-test (the release_check_row ctest) → release-check self-test PASS.

Not run: a full 1bit-release-check on a booted image (it needs the appliance); the fix is confined to the PASS footer.

On the 2026-11-02 c20 live boot four of the five hardware-only rows (gpu, npu, models, chat-hrx) PASSED on the board, and
the PASS footer still printed 'Hardware-only rows (SKIP here): gpu, npu, models, chat-hrx, chat-npu'. That sentence is the
release evidence file's own summary of the run, so it claimed the rows that were the point of the test were skipped.

skip() now records which of those five rows skipped and the footer names exactly those; a boot where none of them skipped
prints no footer, and the VM case (all five skip) prints the previous line verbatim.
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 49c26d2)

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect Hardware Skip Logic

The logic for tracking which hardware-only rows actually skipped is flawed. The HW_SKIPPED variable is initialized as an empty string but is not reset between different execution paths, which could lead to incorrect accumulation of skipped rows across multiple runs or test scenarios.

HW_SKIPPED=   # the hardware-only rows that actually skipped, for the footer; empty means none did
skip() {
    ROWS=$((ROWS + 1))
    case "$1" in gpu|npu|models|chat-hrx|chat-npu) HW_SKIPPED="${HW_SKIPPED:+$HW_SKIPPED, }$1" ;; esac
    say "SKIP  $1 : $2"
}
Inconsistent Footer Message

The footer message now only prints the rows that actually skipped, but it does not clearly indicate whether the test was run on a VM or a physical board, which might be important for interpreting the results.

# Name only the rows that actually skipped. On the 2026-11-02 live boot four of these five PASSED on the board and
# this line still listed all five as skipped "here", which puts a false statement in the release evidence file.
[ -z "$HW_SKIPPED" ] || say "Hardware-only rows (SKIP here): $HW_SKIPPED - they need the Strix Halo GPU and NPU."

@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: READY at 01a9fbe (tprs-ready applied)

Ran it rather than read it. The footer now names only what actually skipped:

  • bash -n os/mini/release-check.sh → rc 0; python3 tools/copyright.py --check → rc 0.
  • os/mini/release-check.sh --self-test → release-check self-test PASS, rc 0.
  • The footer driven through the real say/pass/fail/skip definitions and the new footer statement, extracted from
    the file itself (awk over ROWS=0 … the end of skip(), plus the footer line — nothing re-typed), five cases. It
    reproduces the body's table exactly:
skips                          footer
(none)                         (no line)
secureboot                     (no line — not a hardware row)
npu chat-hrx                   Hardware-only rows (SKIP here): npu, chat-hrx - they need the Strix Halo GPU and NPU.
secureboot chat-npu            Hardware-only rows (SKIP here): chat-npu - they need …      <- the c20 live set
  sealed-sig sha256sums
gpu npu models chat-hrx        Hardware-only rows (SKIP here): gpu, npu, models, chat-hrx, chat-npu - they need …
  chat-npu                     (the old sentence, verbatim, for the VM case)
  • The five case names are exactly the rows that call skip under those names
    (os/mini/release-check.sh:279,284,354,402,404,499,501,509,511), so no other row can enter the list.
  • The bug is in the release lane's own record as well: TRELEASE-3-STATE.md:5517 quotes
    Hardware-only rows (SKIP here): gpu, npu, models, chat-hrx, chat-npu from the 2026-11-02 live boot, in the same
    transcript where four of the five PASSed on the board.

Not run, as the body says: a full 1bit-release-check on a booted appliance. The change is confined to the PASS
footer — no row verdict, count or exit code moves — and the VM sentence is byte-identical, which is what the
release-check ctest and the harness above both show.

Branch is one commit behind main (#811, which only adds npu/mtp/*) and this diff touches os/mini/release-check.sh
alone, so an update-branch is safe; say the word after it and I re-confirm at the new head in one line.

@bong-water-water-bong bong-water-water-bong added the tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied label Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 49c26d2

@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: READY at 49c26d2de (post-update-branch head; tprs-ready already on)

49c26d2 is a merge of main 1346398 (#820) into this branch, so I checked the two things that matter after an
update-branch and re-ran the checks at the new head:

  • the PR's own change is the same bytes: own diff is still only os/mini/release-check.sh (+9/−2), and
    git diff between the file at the head I reviewed (01a9fbe) and at 49c26d2 is empty;
  • bash -n os/mini/release-check.sh rc 0; os/mini/release-check.sh --self-test → release-check self-test PASS,
    rc 0; python3 tools/copyright.py --check rc 0;
  • footer harness through the file's own say/pass/fail/skip + footer statement, on the c20 live skip set
    (secureboot chat-npu sealed-sig sha256sums) → Hardware-only rows (SKIP here): chat-npu - they need the Strix Halo GPU and NPU. — i.e. the four hardware rows that PASSed on the board are no longer named as skipped.
  • CI on this head: build, CodeQL, all four Analyze jobs and pr_agent success, hw_gate skipped (not a
    hardware-touching change). mergeStateStatus=CLEAN.

Merge it whenever the waiter is ready; nothing outstanding from me.

@bong-water-water-bong
bong-water-water-bong merged commit a914271 into main Nov 2, 2026
8 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the 1bit/release-check-hw-footer branch November 2, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review effort 2/5 tprs-ready TPRS: review verdict READY posted by the standing reviewer; merge gate satisfied

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant