agc: agc_unit_shadow (and the refused-import path of agc_pending_key_stores) report Passed without running their checks #7661
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T20:51:58Z.
unitShadowTestsreturns early, as a void function, when host imports are compared rather than watched (!Watched(address, bytes), message "host imports are compared, not watched: unit shadows not tested") or when the import of its block is refused ("host import of the shadow test block refused: unit shadows not tested"). The--unit-shadow-onlywrapper then returns 0, soagc_unit_shadowshows Passed with none of its unit-shadow checks having run. The wrapper's own "unavailable" case returns 77, andagc_unit_shadowdeclaresSKIP_RETURN_CODE 77, so that case is reported as a skip. These two are not.On lavapipe, host imports are compared, not watched:
agc_shadowed_key_stores, which checks the sameWatchedcondition after a host import, is reported Skipped there with "skipped, the device imports no watched host memory under a unit shadow". So the Linux CI job most likely passesagc_unit_shadowwithout testing anything. ctest prints no output for a passing test, so CI logs can't confirm it directly. On an RTX 4090 (NVIDIA, Linux) the same binary reports "imported ranges stay watched", and--unit-shadow-onlyruns its checks and exits 0 without a "not tested" message. So the false pass depends on the device.pendingKeyStoreTestshas the same shape on its two early returns (host imports unavailable, import refused). It does not checkWatched, so it most likely runs on lavapipe; the issue there is only devices that have no host imports or refuse one, where the wrapper reports Passed (or 77 whenhostImportAlignment == 0, only for the first case).Fix: have both functions return whether they ran, and have their
mainbranches return 77 on every "not tested" path, printing askipped, ...line that names the device limitation (for example "skipped, the device imports no watched host memory for the unit shadow test"). Thencheck_skips.py, which requires such a line for any skip on the Linux job, accepts the skip, and the CI skip report shows the lost coverage.shadowedKeyStoreTestsand the--shadowed-key-stores-onlybranch already work this way.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T21:03:44Z.
@oneandonlydean I have the fix as you describe it, on branch
fix/recorder-unrun-skips(99b37f6023). Both functions return whether they ran.--unit-shadow-onlyreturns 77 withskipped, the device imports no watched host memory for the unit shadow test block, and--pending-key-stores-onlyreturns 77 withskipped, the device does not import the pending key store block. Both lines matchcheck_skips.py's device-limitation pattern. I'm checking it on lavapipe (mainshould report Passed, the fix Skipped) and on NVIDIA (both run). The PR follows with the results.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T21:30:24Z.
I opened #7664 with the same focused-test skip behavior after implementing the issue report. I see @milescoviello has since shared a matching branch and is validating it on lavapipe/NVIDIA. To avoid parallel submissions, I’ll leave their validation/PR path clear; my PR is already open for review, and the two implementations can be compared for correctness and evidence.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T01:06:19Z.
@MarcZX10 thanks for holding off, and #7664 has landed, which covers it. I've dropped my branch. For the record, my lavapipe run showed the same thing:
agc_unit_shadowand the twoagc_driver_unit_shadow*tests reported Passed onmainand Skipped with the fix.agc_pending_key_storesruns in full on lavapipe.AI-assisted: yes (Claude Code)