Skip to content

test(agc): run only the trigger cases in agc_screenshot_trigger - #2221

Open
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/28473
Open

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/28473

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#28473, originally opened by milescoviello.

Source commit: 6e40dd9ce275268057d3e70d4b91efddb583a57e. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

agc_screenshot_trigger runs agc_screenshot_tests trigger. Trigger mode first ran every case of the plain agc_screenshot test (the PNG writes, 32 concurrent writers 20 times, the invalid frames) and only then the trigger cases, so its TIMEOUT 20 also had to cover the whole of agc_screenshot. On the 4-vCPU Windows 11 VM I test on, agc_screenshot alone takes 20.1 to 23.8 s, so agc_screenshot_trigger timed out in each of 5 runs on main.

With this change, trigger mode runs requestsMerge and triggerRequests only. The PNG-writing cases still run in agc_screenshot, and the held-open trigger case from boykopovar#20344 still runs in trigger mode on Windows. Nothing writes a screenshot in trigger mode now, so the test creates its temporary root itself before triggerRequests makes the trigger file in it.

Test only; no source change.

Tested

  • Windows 11 VM (4 vCPU, GeForce GT 1030, WinLibs GCC 16.2, Ninja, Release, ANYPS5_REQUIRE_VULKAN=1):
    • main 9a1d772cf1: agc_screenshot_trigger timed out at 20 s in each of 5 runs. Run directly, outside ctest, trigger mode passed in 22.9 and 22.3 s.
    • 6e40dd9ce2 (this PR, one commit on main 76d0a4a7dc): agc_screenshot and agc_screenshot_trigger pass in each of 3 runs. agc_screenshot_trigger takes 0.06 to 0.08 s and agc_screenshot 20.1 to 22.2 s.
  • Linux (Ubuntu 26.04.1, GCC 15.2, Ninja, Release), 6e40dd9ce2: both pass in each of 3 runs. In two further timed runs, agc_screenshot_trigger took under 0.01 s and agc_screenshot 0.26 and 0.28 s.
  • Windows, run by JJenkx (comment): Windows 11, Ryzen 9 5950X, MinGW-w64 GCC 15.2 UCRT, Release, the PR head built as is: agc_screenshot and agc_screenshot_trigger pass in each of 3 runs.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (the screenshot tests do no GPU work)
  • AI-assisted: yes

Summary by CodeRabbit

  • Tests
    • Screenshot checks now run in separate groups: trigger-related checks run when requested, while the default run covers image writing, concurrent path claims, and invalid-frame handling. This makes test runs more focused and avoids running both groups together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Screenshot test selection

Layer / File(s) Summary
Select screenshot test group
core/libs/prx/libSceAgcDriver/tests/Screenshot.cpp
With the trigger argument, the entry point creates the root directory and runs triggerRequests. Otherwise, it runs the PNG writing, concurrent path claims, and invalid-frame tests.

Change: Other

Merge Risk: Minimal · up to 6e40d

This only changes which screenshot tests run in each test mode and makes the trigger test faster. It does not affect production behavior, and no merge-blocking risk remains.

Security architecture risk: Minimal · up to 6e40d

The two existing AGC screenshot test registrations now run separate groups. The trigger test no longer spends its timeout budget on the default screenshot cases, which still run under their own registration.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 1
  • Waived: $0.25 (charged $0.00)
  • View usage details

Note

This review exceeded your plan’s limits and used usage-based reviews—free during trial, billed after paid activation unless disabled. Manage usage-based reviews.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: de689472-23f1-477f-9727-f4d456545e27
Commits

Reviewing files that changed from the base of the PR and between 4131f51 and 6e40dd9.

Files selected for processing: 1

  • core/libs/prx/libSceAgcDriver/tests/Screenshot.cpp

@github-actions github-actions Bot added the agc libSceAgc* label Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants