bcpack: BCPack refusal inspector review follow-up #3348
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3348
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3346"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@romn4rch on GitHub · 2026-11-28 11:23 UTC · original
romn4rch:copilot/pr-1940-review-f8d2d51e→main· +583 −7 · 4 files · 8 commits · merged 2026-11-30 19:35 UTCAlternate review revision for #1940. This branch contains the existing BCPack inspector work plus verified review fixes and consistency checks. The original PR remains open because its author-owned branch was not writable from this account; these submissions overlap, so please keep only one and close/mark the other as superseded when choosing.
Validation:
git diff --checkand the Python consistency check across inspector, decoder, and fixture lane tables passed. C++ tests were not run because the required MSVCcltoolchain is unavailable in this environment.@KelboLive on GitHub · 2026-11-28 21:24 UTC · original · approved these changes
LGTM — clean cold-path inspector that names the class of BCPack failure.
LaneFailureenum andLaneReportstruct thread throughdecode_lanes_referencewithnote()andstall_failure()helpers.bcpack_inspect.his independent of the hot path: runs the lane decode with a report, maps failures toInspectClass, supports BC1–BC7.bcpack_inspect_check.cppcovers exact/truncated/padded/damaged streams for BC1/BC7 plus BC2/BC3/BC4/BC5/BC6 edge cases, with a--mutate collapsenegative control.The inspector is a pure read of lane state — no request-path changes.
@KelboLive on GitHub · 2026-11-28 21:57 UTC · original · approved these changes
LGTM — clean cold-path inspector that names the class of BCPack failure.
LaneFailureenum andLaneReportstruct thread throughdecode_lanes_referencewithnote()andstall_failure()helpers.bcpack_inspect.his independent of the hot path: runs the lane decode with a report, maps failures toInspectClass, supports BC1–BC7.bcpack_inspect_check.cppcovers exact/truncated/padded/damaged streams for BC1/BC7 plus BC2/BC3/BC4/BC5/BC6 edge cases, with a--mutate collapsenegative control.The inspector is a pure read of lane state — no request-path changes.
@Leyukaka on GitHub · 2026-11-29 06:54 UTC · original · reviewed
Reviewed head
f8d2d51eby reading its diff againstmain212d4b5f. Nothing was built or run.git merge-tree --write-tree origin/main f8d2d51eexits 0.Checked by reading
INSPECT_LAYOUTS(bcpack_inspect.h:59-67) matchesdecode_bcpackonmainfor all seven formats: thealphabetstable (bcpack_decoder.h:1391-1399), the lane counts (:1404), the block sizes (:1400) and the per-lane targetoutput_size / 8(:1403).return falseindecode_lanes_referencenow records a failure first (bcpack_decoder.h:280, 285, 379, 399, 405, 419, 423at head).phase1returns false in two places only::165(eab > 8) and:230(flushed fragment not at the home state, reached only after a header witheab <= 8). Theln.eab > 8test at head:378therefore separatesheader_invalidfromfragment_not_homeexactly.bcpack_blocks_extra.inl:108, mode = symbol + 1). BC7 refuses an unmapped control code (bcpack_decoder.h:1104at head).symbols[30] = 31, symbols[31] = 3gives code(3 << 5) | 31 = 0x07f, whose table entry hasvalid = 0(bcpack_tables.h:975).decode_bcpackis unchanged, anddecode_laneswithout a report takes the same path as before. No refusal is removed.Needs a run before merge
cmake --build --preset prandctest --preset pr(windows.yml:490-493). InCMakePresets.jsontheprbuild targets (:28-38) do not includebcpack_inspect_check, and theprtest filter (:51) matches nobcpack_inspectname. The PR description says the C++ tests were not run. So nothing shows thattest_bc2_bc6_bc7andtest_inspect_layoutscompile or pass at this head. Please post adevrun ofctest -R "^bcpack_inspect"atf8d2d51e(2 tests, the collapse control isWILL_FAIL).Relation to #1940
7de1131bplus one commit, and it edits the same four files.23ab9d48, which also adds the BC2 and BC6H layouts. Two differences remain between the heads:bc6_mode_invalid. #1940 reports it ascontrol_code_unmapped.test_all_formats_agreeruns a 17-block fixture stream for each of formats 1 to 7, checksokandrequest_shorter_than_stream, and compares each answer withdecode_bcpack. Here BC2 and BC6H get a 1-block exact case, and the two block-stage failures are 1-block cases.Minor
inspect_bcpackmapslanes_ok == falsewithfailure == nonetook(bcpack_inspect.h:136-138). No exit leavesnonetoday. Mapping that case to a failure class would keep a future exit withoutnote()from reportingok.if(EXISTS "${INTAKE_PYTHON}")block but needs no Python.bcpack_encoder_checkis registered outside it.bcpack_decoder.h:328,!met &&is redundant afterif (met) return.No defect found by reading
f8d2d51e. Open before merge: thedevrun of the twobcpack_inspecttests, and the choice between this PR and #1940.@JohnConnorNPC on GitHub · 2026-11-29 13:06 UTC · original
Independent re-review of head
f8d2d51eagainstmainaf1cab5c. Verdict: 2 MUST. Holding, not merging.Checked
git merge-tree --write-tree origin/main f8d2d51eexits 0.mainhas not touched the four files since.cmake --build --preset pr/ctest --preset pr(windows.yml,GITHUB_EVENT_NAME -eq 'pull_request'branch).CMakePresets.jsononmainhas 0bcpack_inspectentries, sotests/bcpack_inspect_check.cpphas never been compiled at this head.MUST
ctest --preset dev --no-tests=error -R '^bcpack_inspect$' -Von this head, plus its--mutate collapsenegative control. The body says no MSVC was available, and CI cannot build it. Leyukaka asked for the same thing.23ab9d48also carries the 17-block per-format agreement test againstdecode_bcpack(see Leyukaka's comparison). Please say which one you want to keep.AI-assisted review.