test(agc): make sampled cache fixture imports deterministic #4161

Closed
devavijitsingh wants to merge 2 commits from upstream-pr/4161 into main
devavijitsingh commented 2026-10-12 00:13:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by devavijitsingh on 2026-10-12T00:13:55Z.


What

Closes #4141. Give each texture test block an extra 64 KiB of reserved but unregistered address space, keeping adjacent fixture registrations from being merged into one host import. In viewEvictionTests, check that the snapshot is actually charged bytes before using it as the budget divisor, so a bad fixture produces a useful assertion rather than a divide-by-zero.

Tested

The issue reports Windows 11 controls: the contiguous fixture failed 5/5 times with divide-by-zero, while the same fixture with a 64 KiB unregistered gap passed 5/5 times. I could not run the test locally: CMake Tools was unable to configure the workspace. python tools/check_conventions.py --base origin/main and git diff --check origin/main...HEAD passed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823434585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4161). Originally posted by [devavijitsingh](https://github.com/devavijitsingh) on 2026-10-12T00:13:55Z. --- ### What Closes #4141. Give each texture test block an extra 64 KiB of reserved but unregistered address space, keeping adjacent fixture registrations from being merged into one host import. In `viewEvictionTests`, check that the snapshot is actually charged bytes before using it as the budget divisor, so a bad fixture produces a useful assertion rather than a divide-by-zero. ### Tested The issue reports Windows 11 controls: the contiguous fixture failed 5/5 times with divide-by-zero, while the same fixture with a 64 KiB unregistered gap passed 5/5 times. I could not run the test locally: CMake Tools was unable to configure the workspace. `python tools/check_conventions.py --base origin/main` and `git diff --check origin/main...HEAD` passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-10-12 00:14:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T00:14:30Z.


This appears to duplicate #4159, opened about 50 seconds earlier for #4141 with the same 64 KiB registration gap and nonzero-charge assertion. #4159 also has a successful Linux Release build and both focused CTest cases passed (2/2). Could you coordinate with the maintainers on which PR to keep? I have not changed your branch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115482093 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4161#issuecomment-6115482093). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T00:14:30Z. --- This appears to duplicate #4159, opened about 50 seconds earlier for #4141 with the same 64 KiB registration gap and nonzero-charge assertion. #4159 also has a successful Linux Release build and both focused CTest cases passed (2/2). Could you coordinate with the maintainers on which PR to keep? I have not changed your branch.
devavijitsingh commented 2026-10-12 00:18:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by devavijitsingh on 2026-10-12T00:18:43Z.


Thanks for catching this — I’m closing this as a duplicate of #4159, which has the same fix and has already been tested. Sorry I missed it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115518301 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4161#issuecomment-6115518301). Originally posted by [devavijitsingh](https://github.com/devavijitsingh) on 2026-10-12T00:18:43Z. --- Thanks for catching this — I’m closing this as a duplicate of #4159, which has the same fix and has already been tested. Sorry I missed it.

Pull request closed

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
boykopovar/AnyPS5!4161
No description provided.