agc: agc_unit_shadow (and the refused-import path of agc_pending_key_stores) report Passed without running their checks #7661

Closed
opened 2026-10-18 20:51:58 +00:00 by oneandonlydean · 3 comments
oneandonlydean commented 2026-10-18 20:51:58 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T20:51:58Z.


unitShadowTests returns 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-only wrapper then returns 0, so agc_unit_shadow shows Passed with none of its unit-shadow checks having run. The wrapper's own "unavailable" case returns 77, and agc_unit_shadow declares SKIP_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 same Watched condition 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 passes agc_unit_shadow without 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-only runs its checks and exits 0 without a "not tested" message. So the false pass depends on the device.

pendingKeyStoreTests has the same shape on its two early returns (host imports unavailable, import refused). It does not check Watched, 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 when hostImportAlignment == 0, only for the first case).

Fix: have both functions return whether they ran, and have their main branches return 77 on every "not tested" path, printing a skipped, ... line that names the device limitation (for example "skipped, the device imports no watched host memory for the unit shadow test"). Then check_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. shadowedKeyStoreTests and the --shadowed-key-stores-only branch already work this way.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5914003918 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7661). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T20:51:58Z. --- `unitShadowTests` returns 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-only` wrapper then returns 0, so `agc_unit_shadow` shows Passed with none of its unit-shadow checks having run. The wrapper's own "unavailable" case returns 77, and `agc_unit_shadow` declares `SKIP_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 same `Watched` condition 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 passes `agc_unit_shadow` without 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-only` runs its checks and exits 0 without a "not tested" message. So the false pass depends on the device. `pendingKeyStoreTests` has the same shape on its two early returns (host imports unavailable, import refused). It does not check `Watched`, 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 when `hostImportAlignment == 0`, only for the first case). Fix: have both functions return whether they ran, and have their `main` branches return 77 on every "not tested" path, printing a `skipped, ...` line that names the device limitation (for example "skipped, the device imports no watched host memory for the unit shadow test"). Then `check_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. `shadowedKeyStoreTests` and the `--shadowed-key-stores-only` branch already work this way.
milescoviello commented 2026-10-18 21:03:44 +00:00 (Migrated from github.com)
Author
Contributor

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-only returns 77 with skipped, the device imports no watched host memory for the unit shadow test block, and --pending-key-stores-only returns 77 with skipped, the device does not import the pending key store block. Both lines match check_skips.py's device-limitation pattern. I'm checking it on lavapipe (main should report Passed, the fix Skipped) and on NVIDIA (both run). The PR follows with the results.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255119171 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7661#issuecomment-6255119171). Originally posted by [milescoviello](https://github.com/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-only` returns 77 with `skipped, the device imports no watched host memory for the unit shadow test block`, and `--pending-key-stores-only` returns 77 with `skipped, the device does not import the pending key store block`. Both lines match `check_skips.py`'s device-limitation pattern. I'm checking it on lavapipe (`main` should report Passed, the fix Skipped) and on NVIDIA (both run). The PR follows with the results. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-18 21:30:24 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255382742 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7661#issuecomment-6255382742). Originally posted by [MarcZX10](https://github.com/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.
milescoviello commented 2026-10-19 01:06:19 +00:00 (Migrated from github.com)
Author
Contributor

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_shadow and the two agc_driver_unit_shadow* tests reported Passed on main and Skipped with the fix. agc_pending_key_stores runs in full on lavapipe.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257476122 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7661#issuecomment-6257476122). Originally posted by [milescoviello](https://github.com/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_shadow` and the two `agc_driver_unit_shadow*` tests reported Passed on `main` and Skipped with the fix. `agc_pending_key_stores` runs in full on lavapipe. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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
boykopovar/AnyPS5#7661
No description provided.