Skip to content

CI: host, tool and CPU-only graphics tests and a build check on GitHub's macOS runners - #132

Closed
v0lumehi wants to merge 1 commit into
seedds:mainfrom
v0lumehi:ci-tests
Closed

v0lumehi wants to merge 1 commit into
seedds:mainfrom
v0lumehi:ci-tests

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

One commit on main (#118, which it needs for the clean skips of t_refl and t_rt_range_ro, is merged). Proposed in #119.

Adds .github/workflows/tests.yml, a test workflow on GitHub's hosted macOS runners for pull requests, pushes to main and manual dispatch.

Jobs

Runner macos-26 (Xcode 26.6). The three jobs run in parallel:

  • host-tests: dm/host/tests and the gfx tests that need no GPU: t_dirty_slots, t_dirty_race, t_pace, t_fstep, t_hmap, t_cover, t_pso_skey, plus t_refl and t_rt_range_ro, which skip their sample checks.
  • tool-tests: every test_*.py in dm/tools/tests, dm/ios/tests and dm/gfx/tests, on Python 3.14 with lz4, capstone and fonttools.
  • build:
    • dmhost for Wonder (NVN), Hades (Vulkan) and Digimon Story Cyber Sleuth (GL);
    • every gfx test compiled but not run;
    • an iOS compile check. The check is a new helper, dm/ios/tools/compile_check.py: it takes the host Makefile's file list and flags, as gen_build.py does, and compiles the 133 files for arm64 iOS, with no game files, signing or Xcode project.

Hygiene

  • permissions: contents: read.
  • Superseded runs are cancelled.
  • A timeout per job.
  • Logs are uploaded only on failure.
  • No secrets.
  • Actions pinned to commit SHAs, with the release tag in a comment: checkout v7.0.1, setup-python v7.1.0, upload-artifact v7.0.2. The tags were checked with gh api repos/actions/<name>/releases/latest.

What stays local

Checked

Green on the fork in 3 min 21 s: https://github.com/v0lumehi/nxnative/actions/runs/40096513564. That run had a temporary push trigger for the branch, which this commit removes.

…on GitHub's macOS runners

.github/workflows/tests.yml (pull requests, pushes to main, manual runs; read-only token, superseded runs cancelled, logs uploaded on failure only), three parallel jobs on macos-26 (Xcode 26.6, a virtual Mac without Metal 4, so no test that goes through mtl_init runs there):
- host unit tests (dm/host/tests) and the CPU-only gfx tests t_dirty_slots, t_dirty_race, t_pace, t_fstep, t_hmap, t_cover, t_pso_skey, t_refl and t_rt_range_ro (the last two skip their sample checks since seedds#118);
- every dm/tools, dm/ios and dm/gfx test_*.py file, with lz4, capstone and fonttools from pip (cached);
- build check: the Mac host for three profiles (NVN, Vulkan, OpenGL), every gfx test compiled and not run, and the iOS host sources compiled for the iPhone SDK without signing or a project (dm/ios/tools/compile_check.py, which takes the file list and flags from the host Makefile's expanded commands as gen_build.py does).

Not in CI: the GPU tests, and profile_guess.py --check, which reads the games' extractions. Actions are pinned to commit SHAs with their tags in comments.
seedds added a commit that referenced this pull request Oct 24, 2026
…yml runs, for pull requests, pushes to main and manual dispatch, three jobs on macos-26 in parallel: the host unit tests and the graphics tests that need no GPU (t_dirty_slots, t_dirty_race, t_pace, t_fstep, t_hmap, t_cover, t_pso_skey, t_refl and t_rt_range_ro, the last two skipping their sample checks); every test_*.py of dm/tools/tests, dm/ios/tests and dm/gfx/tests on Python 3.14 with lz4, capstone and fonttools; and a build check: dmhost for Wonder (NVN), Hades (Vulkan) and Digimon Story Cyber Sleuth (GL), every graphics test compiled but not run, and the iOS host sources compiled for the iPhone SDK by a new helper, dm/ios/tools/compile_check.py (the host Makefile's file list and flags as gen_build.py takes them, the host's own command first so its header paths come before libvpx's; 133 files, no game files, signing or Xcode project). Read-only permissions, superseded runs cancelled, a timeout per job, logs uploaded only on failure, actions pinned to commit SHAs (checkout v7.0.1, setup-python v7.1.0, upload-artifact v7.0.2, each checked against its tag). The GPU tests stay local (the hosted runners are virtual Macs without Metal 4, issue #112), and so does profile_guess.py --check (it reads game extractions). test_xcode_workflow.py: the stand-in profile carries the registered profile's title_id, which report_profile_status reads since ce17300 (the test had 3 errors on main). Checked by replaying the three jobs on this Mac on current main: all pass, the tool tests in a fresh Python 3.14 venv with only the three packages
@seedds

seedds commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Taken as 156d3c2 on main, with two additions:

  • dm/ios/tests/test_xcode_workflow.py: it failed on main with 3 errors since ce17300 (report_profile_status reads title_id, which the test's stand-in profile lacked). The stand-in now carries it, so the first run is green.
  • compile_check.py: the host's own compile command comes first, as in gen_build.py, so its header paths precede libvpx's.

First run on main: https://github.com/seedds/nxnative/actions/runs/40119968540 (all three jobs pass, 3 min 20 s). Thanks!

@seedds seedds closed this Oct 24, 2026
@v0lumehi
v0lumehi deleted the ci-tests branch October 26, 2026 09:29
Know-It-All-Brother pushed a commit to Know-It-All-Brother/nxnative that referenced this pull request Nov 9, 2026
…tests.yml runs, for pull requests, pushes to main and manual dispatch, three jobs on macos-26 in parallel: the host unit tests and the graphics tests that need no GPU (t_dirty_slots, t_dirty_race, t_pace, t_fstep, t_hmap, t_cover, t_pso_skey, t_refl and t_rt_range_ro, the last two skipping their sample checks); every test_*.py of dm/tools/tests, dm/ios/tests and dm/gfx/tests on Python 3.14 with lz4, capstone and fonttools; and a build check: dmhost for Wonder (NVN), Hades (Vulkan) and Digimon Story Cyber Sleuth (GL), every graphics test compiled but not run, and the iOS host sources compiled for the iPhone SDK by a new helper, dm/ios/tools/compile_check.py (the host Makefile's file list and flags as gen_build.py takes them, the host's own command first so its header paths come before libvpx's; 133 files, no game files, signing or Xcode project). Read-only permissions, superseded runs cancelled, a timeout per job, logs uploaded only on failure, actions pinned to commit SHAs (checkout v7.0.1, setup-python v7.1.0, upload-artifact v7.0.2, each checked against its tag). The GPU tests stay local (the hosted runners are virtual Macs without Metal 4, issue seedds#112), and so does profile_guess.py --check (it reads game extractions). test_xcode_workflow.py: the stand-in profile carries the registered profile's title_id, which report_profile_status reads since 6b65994 (the test had 3 errors on main). Checked by replaying the three jobs on this Mac on current main: all pass, the tool tests in a fresh Python 3.14 venv with only the three packages
ltrdpper pushed a commit to ltrdpper/BananaNative that referenced this pull request Nov 11, 2026
…ix, 12 GB memory, foldable inner screen, Pokopia frame cap

Memory maps (seedds#127, seedds#132): background pipeline compiles on Turnip are serialized (vk-psoasync / vk-psopt through the heavy-compile hold), contiguous placed segments are joined across pools at submission start, unplace copies through sw_mmap_fixed instead of mremap so the kernel merges anonymous VMAs again, and past 2,000 split anonymous maps the dirty tracker releases its protections once (one re-upload) so guest VMAs merge.
Launcher: android:appCategory="game" (seedds#110); the game fills a foldable's near-square inner screen (GameOrientation.fixedLandscape from the maximum window metrics); overlay blocks inset from rounded corners and cutouts (seedds#105, OverlayInset); Prepare texts say whether the code rewrite or a shader translation runs and that shaders are kept; no "Ready, with limits" dialog at start.
Frame rate: Ocarina of Time (`0400486024DEC000`) fps_limit 60 (was 30). Pokémon Pokopia (`0400A3A01EE4C000`) fps_limit 60 with the new launcher key fps_limit_present: the host limiter's caps are offered with a note that they pace the presents only (seedds#143).
Skipped work: the Vulkan replay counts draws and dispatches skipped for causes of the device (no mesh shading, refused shaders or pipelines, missing features) and warns once per run past DM_VK_SKIP_WARN percent (default 5) in two 300-frame windows in a row; the launcher shows a small notice.
Textures: the pool-read line counts images made again for an ID made before (diagnostic, seedds#131).
Docs: Fire Emblem Fortune's Weave's note links only existing reference entries; docs_patches classifies av1_decoder.
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.

2 participants