Restore the beta asset-policy check #18

Merged
HandshakeHackin merged 1 commit from upstream-pr/18 into beta 2026-11-26 09:57:38 +00:00
HandshakeHackin commented 2026-11-25 16:40:54 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T16:40:54Z.


I reproduced the xtask failure mentioned in #15 and #16 on clean beta c71c7d6. Four paths fail. emit/lower.rs exceeds 512 KiB, and the checker rejects the extensions of the project logo, log summarizer, and cold-cache test.

This moves the existing shader-lowering tests into emit/lower/tests.rs, preserving the Rust module path and reducing lower.rs from 539,786 to 508,963 bytes. The checker recognizes the three project files by exact path and still applies every size, binary-signature, NUL, and encoded-data check. A test covers binary and encoded data on those paths and the same file names elsewhere.

On Linux, cargo xtask policy passed for all 190 files. cargo test --locked -p victory-shader -p xtask passed 176 shader tests and 5 policy tests. The same two shader tests were ignored on beta and on this branch.

On Windows the policy passed for all 190 files. All five policy tests and all 15 active tests in the moved module passed (one ignored). The full Windows shader suite had 223 passes, three ignored, and one failure. glc_heap_uav_loads_stores_and_atomics_execute_on_gpu requires both hardware and WARP. This runner has WARP only. I confirmed the same assertion on unmodified beta.

Windows policy and moved tests · Unmodified beta control · Full Windows shader result

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:6609155225 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/18). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-25T16:40:54Z. --- I reproduced the `xtask` failure mentioned in #15 and #16 on clean beta `c71c7d6`. Four paths fail. `emit/lower.rs` exceeds 512 KiB, and the checker rejects the extensions of the project logo, log summarizer, and cold-cache test. This moves the existing shader-lowering tests into `emit/lower/tests.rs`, preserving the Rust module path and reducing `lower.rs` from 539,786 to 508,963 bytes. The checker recognizes the three project files by exact path and still applies every size, binary-signature, NUL, and encoded-data check. A test covers binary and encoded data on those paths and the same file names elsewhere. On Linux, `cargo xtask policy` passed for all 190 files. `cargo test --locked -p victory-shader -p xtask` passed 176 shader tests and 5 policy tests. The same two shader tests were ignored on beta and on this branch. On Windows the policy passed for all 190 files. All five policy tests and all 15 active tests in the moved module passed (one ignored). The full Windows shader suite had 223 passes, three ignored, and one failure. `glc_heap_uav_loads_stores_and_atomics_execute_on_gpu` requires both hardware and WARP. This runner has WARP only. I confirmed the same assertion on unmodified beta. [Windows policy and moved tests](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45657379328/job/139357584452) · [Unmodified beta control](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45657379328/job/139357583821) · [Full Windows shader result](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45656380643/job/139354073868)
PastiiJay commented 2026-11-25 17:02:38 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T17:02:38Z.


Thanks a lot @HandshakeHackin! Noted. I'll test it on the RX 9070 XT in the next test build and report back here.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7168916412 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/18#issuecomment-7168916412). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-25T17:02:38Z. --- Thanks a lot @HandshakeHackin! Noted. I'll test it on the RX 9070 XT in the next test build and report back here.
HandshakeHackin commented 2026-11-25 17:21:07 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-25T17:21:07Z.


I combined the current heads of #13, #14, #17, #18, #20 and #21 on top of beta c71c7d6 before the RX 9070 XT run. All six merged cleanly. The Windows release built and passed the cold-cache, missing-input and zero-second warm-up checks. The asset check also passed.

The software-only Windows workspace run recorded 582 passed and one failed. The depth-bounds test drew an out-of-range pixel. I ran that test on untouched beta and got the same failure. This run excluded the previously confirmed test that requires both a physical GPU and WARP.

Integrated source · Release and CLI checks · Workspace output · Depth-bounds baseline

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7169377742 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/18#issuecomment-7169377742). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-25T17:21:07Z. --- I combined the current heads of #13, #14, #17, #18, #20 and #21 on top of beta `c71c7d6` before the RX 9070 XT run. All six merged cleanly. The Windows release built and passed the cold-cache, missing-input and zero-second warm-up checks. The asset check also passed. The software-only Windows workspace run recorded 582 passed and one failed. The depth-bounds test drew an out-of-range pixel. I ran that test on untouched beta and got the same failure. This run excluded the previously confirmed test that requires both a physical GPU and WARP. [Integrated source](https://github.com/HandshakeHackin/klbf-lab/tree/68dd5fc5d2339b1b4e87f34e2ff269593bee349e) · [Release and CLI checks](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45661825264/job/139373398952) · [Workspace output](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45661825264/job/139373398144) · [Depth-bounds baseline](https://github.com/HandshakeHackin/klbf-lab/actions/runs/45662763978/job/139376715569)
PastiiJay commented 2026-11-25 17:39:06 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-25T17:39:06Z.


Thanks a lot @HandshakeHackin, that combined run is really useful. It makes testing them together on the 9070 XT much easier. I'll report back here.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7169806560 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/18#issuecomment-7169806560). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-25T17:39:06Z. --- Thanks a lot @HandshakeHackin, that combined run is really useful. It makes testing them together on the 9070 XT much easier. I'll report back here.
PastiiJay commented 2026-11-26 09:58:34 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-26T09:58:34Z.


Merged, good to have the asset check guarding beta again.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7188735242 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/18#issuecomment-7188735242). Originally posted by [PastiiJay](https://github.com/PastiiJay) on 2026-11-26T09:58:34Z. --- Merged, good to have the asset check guarding beta again.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
PastiiJay/klbf-lab!18
No description provided.