Skip to content

Review: check BIOS assets selected by the setup recipe - #24

Open
Alexbeav wants to merge 2 commits into
review-base/mstan-8d56cf659fd8from
review/setup-bios-assets-20260907
Open

Review: check BIOS assets selected by the setup recipe#24
Alexbeav wants to merge 2 commits into
review-base/mstan-8d56cf659fd8from
review/setup-bios-assets-20260907

Conversation

@Alexbeav

@Alexbeav Alexbeav commented Sep 7, 2026

Copy link
Copy Markdown
Owner

A retail-only SDK currently fails staging when unused OpenBIOS files are absent. Read the staged game.toml and require its selected BIOS profile. OpenBIOS-enabled recipes still require the OpenBIOS profile, image and license. Reject a missing recipe, missing selected profile or profile outside the staged kit.

Ten source-owned synthetic tests cover the policy. The unchanged shell gate rejects a retail-only fixture for missing OpenBIOS; the checker passes the corrected fixture and rejects the negative controls. Run python runtime/tests/test_setup_bios_assets.py.

Fork review exposed a containment gap in default/OpenBIOS paths. Resolve every required path in the common gate before checking that it stays inside the kit. Six external file/directory symlink assertions fail before this correction; all ten tests pass afterward, with no symlink skips on the native Windows test host. Internal symlinks remain supported. The complete SDK stage, owned generation and runtime suite were repeated after this correction. The runtime source and generated bytes remain identical, so the exact previously built game executable is reused for the fresh isolated startup/normal-close check.

The complete stage_setup_sdk.sh also passed with an actual retail-only SCPH1001 SDK and no OpenBIOS assets. The resulting SDK verified an owned disc, generated game and BIOS code, and built the native runtime. Emitters used documented PSXRECOMP_STATIC_CLI=ON to avoid unrelated ambient MinGW DLL selection.

This changes asset validation only. Current upstream's retail CLI generation still selects SCPH1001. Accepting an explicit SCPH5552 profile at the asset gate does not establish full SCPH5552 CLI support; that integration, including existing RetroPortingToolKit#243, remains separate. No retail BIOS is added to source or redistributed.

Validation and limits

  • Exact base: 8d56cf659fd84367c3f778e17851674ac7896371; review head: 406451cb92da4d9f701c81b8271e420cef8677cc.
  • Native Windows GCC 16 runtime builds and passes 69/69 enabled runtime tests; two additional tests are disabled in the source configuration. The build has UI, setup wizard, debug tools, netplay, rewind and Vulkan disabled.
  • Owned Ghost in the Shell (SCES-01050) with owned SCPH1001: verification, current-source generation, native build and an isolated 50-second startup pass; normal SDL window close at frame 2447, process exit 0. Executable SHA-256 474ec448d1fa040f21f121a99695ede07cfc362d893305813419269b535b70d5. This is bounded startup and normal shutdown, not gameplay completion or listening acceptance. Audio used SDL dummy output. No native Linux/macOS game route is claimed.
  • The unchanged current recompiler builds and has 58/61 enabled tests passing, with three pre-existing baseline failures (dirty_text_continuation_guards, aot_overlay_discovery, release_zip) and three disabled tests. This branch does not change that recompiler source. Those baseline failures are not reported as passes.
  • Diff audit: general source repair, synthetic tests and documentation only; no retail disc/BIOS, generated game code, player data or private tooling.

Scope and fork review

This review targets immutable review-base/mstan-8d56cf659fd8. It contains 2 commit and 5 changed files. Do not merge it into the fork default branch; it is the review record before upstream submission.

  • docs/SETUP_BIOS_ASSETS.md: behavior and verification documentation.
  • runtime/CMakeLists.txt: source-owned regression and test registration.
  • runtime/tests/test_setup_bios_assets.py: source-owned regression and test registration.
  • tools/check_setup_bios_assets.py: bounded correction.
  • tools/stage_setup_sdk.sh: bounded correction.

Developed with AI assistance; validated as described (test evidence in PR body). AI writes the code and the PR, but I always test before I send something up. Happy to iterate on this process with your feedback.

@Alexbeav

Alexbeav commented Sep 7, 2026

Copy link
Copy Markdown
Owner Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 7, 2026

Copy link
Copy Markdown

@cubic-dev-ai review this PR

@Alexbeav I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread tools/check_setup_bios_assets.py

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread tools/check_setup_bios_assets.py
@Alexbeav

Alexbeav commented Sep 7, 2026

Copy link
Copy Markdown
Owner Author

The correction and repeated validation are on 406451c; both initial findings have evidence replies and are resolved. Please review this current head before upstream submission.

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 7, 2026

Copy link
Copy Markdown

The correction and repeated validation are on 406451c; both initial findings have evidence replies and are resolved. Please review this current head before upstream submission.

@cubic-dev-ai review this PR

@Alexbeav I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant