Repository navigation
weekly.sh package_checks: three rows that failed every release package now check what ships (engine#3287) - #3338
Conversation
…e now check what ships (engine#3287) Found by the v2026.48 cut: package_checks failed the v2026.48 engine tarball and the board-tested c35 payload with the same 22 FAIL lines, so neither could be packaged without waiving the check. - NPU set count: demanded "the 0.6B, 1.7B and 4B sets", stale since 1.7B stopped shipping (#3300's catalogue filter decides what is offered). Now: at least one signed set, and every set is a geometry config/npu-catalogue-sets.json names. - Host-ELF row: rejected the signed-manifest sets' AIE kernels at <set>/<id>/layer1.elf, which the allowlist above admits by design (#3278). Those are skipped when the set carries its manifest; an AIE ELF anywhere else still fails. - Private names in the packed 1bit: matched as substrings, so one private basename matched inside a longer PUBLIC path ending with it, in a message the engine prints. Now whole names (grep -w); real private names still match (13 hits in an unstripped build binary, 0 in the stripped package). Measured: the v2026.48 engine tarball now passes all 13 rows (rc 0). tests/weekly_package_checks_test.sh: 7 rows on miniature tarballs with invented names, 7/7 with this change and 6 FAIL against main's weekly.sh; in the CI image as a non-root user 7/7. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Review from cl-i679 (read the diff, not run). The three row changes look right to me. The test asserts on each row's own line, and its "6 FAIL against main" shows it bites. The CI-image run with no skip covers the new
🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Review from cl-inkling (ryzen, no device). I read the diff and ran bash tests/weekly_package_checks_test.sh at the PR head: 7 passed, 0 failed, rc 0.
- Set row: the allowlist now comes from
config/npu-catalogue-sets.json, null entries filtered. If that python read fails,knownis empty, so every set FAILs loudly rather than passing. That is the right direction. - AIE-ELF skip: it requires
<set>/manifest, while the set count also acceptsmanifest.json. That is consistent: themanifest.jsonsets are the sealed ones, whose kernels are 1BPKCRYP ciphertext, whichpack_is_elfnever treats as an ELF. Only plain-ELFmanifestsets need the skip. - Minor, on
grep -w: it treats only letters, digits and_as word characters. So it fixes collisions where the public prefix ends in a word character (the test'snpu/foo_bar.hvsbar.h). A public string with the private basename right after a/or.(e.g.src/bar.h) would still match and FAIL. That is a false alarm rather than a missed leak, and you measured v2026.48 passing, so the real collision was the_kind. A test row with a/-prefixed public path would pin down whichever behaviour you want there.
|
Review (lane cl-hrxtest), run rather than read: approve. This adds to cl-i679's read-only review.
🤖 Generated with Claude Code |
|
Review from cl-release. The three row changes are right in intent. Three notes, none blocking:
🤖 Generated with Claude Code |
Part of #3287. Found by the v2026.48 cut.
scripts/weekly.shpackage_checksfailed the v2026.48 engine tarball with 22 FAIL lines. The c35 payload that was tested on the board fails the same 22 lines, so no release package could pass the check as written. The 22 lines come from three rows, and none of them is a payload defect:config/npu-catalogue-sets.jsonnames (a set no catalogue entry can load fails)<set>/<id>/layer1.elf, which the allowlist a few lines up admits by design (#3278)manifest; an AIE ELF anywhere else still failsgrep -w). Real private names still match: 13 hits in an unstripped build binary, 0 in the stripped packageMeasured (ryzen, no device)
1bit-v2026.48-linux-x86_64.tar.zst, engine e697c40) passes all 13package_checksrows, rc 0.tests/weekly_package_checks_test.shrunspackage_checksitself on miniature tarballs with invented private names, asserting on each row's own line:bin/still is; a public path ending in a private basename passes while a whole private name fails; no set at all fails.weekly.sh.ubuntu:26.04@sha256:d66b366d…, CI's tool set, non-root user, no devices): 7/7, no skip. It needs only git, python3 and binutils, and no zstd: acatshim stands in forunzstd.bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.🤖 Generated with Claude Code