Repository navigation
Fork tests green: the iOS tests and the switch table follow the fork, across syncs - #51
Conversation
|
The dry run has finished: all six jobs of #48's workflow pass with this PR (https://github.com/v0lumehi/NX2Apple/actions/runs/40489457905). |
b1cb837 to
5027f32
Compare
… across syncs With the tests running in CI (LNPANDY#48), three test files failed on main, each on a fork change upstream's file does not know: - test_romfs_startup compiles main.m's RomFS locator alone; the fork's locator reads id and romfs_marker through dm_profile(), which the fixture did not stub. The fixture gets one. - test_profile_pack expects the RomFS in the IPA; the fork packs the slim IPA by default (DM_FULL_ROMFS=1 packs it), so it checks that the RomFS stays out. - test_env_switches: docs/env_switches.tsv loses the rows of the switches only the fork reads (DM_FULL_ROMFS, DM_PROFILE) whenever upstream rewrites the table; 9f7d421 put them back, and a patcher keeps them. The two iOS tests and the switch table are carriers: a patcher each, idempotent, reproducing this tree from upstream's files. The NRO test is in OURS (it tests the fork's patch_nso.py carrier). A sync run with --old = --new ends SYNC OK.
5027f32 to
cbf1323
Compare
…m the merge base The five older workflows used actions/checkout@v4, setup-python@v5 and upload-artifact@v4; they take the same pins as tests.yml (checkout v7.0.1, setup-python v7.1.0, upload-artifact v7.0.2, by commit SHA), and Dependabot keeps all of them current. checkout v6 moved the persisted token to a file under RUNNER_TEMP; git push in sync-upstream.yml works on as before (the action's notes: no workflow changes required). pr-scope compared the base branch's tip with the PR's head (two dots), so every commit main gained after a PR branched counted as the PR's: LNPANDY#51 failed on env_switches.py and docs/agents/README.md, which main had just changed. It diffs from the merge base now (three dots, as its comment said), with the history checked out for it.
|
On point 1 (the NRO bound): I found a real NRO after all. Hades ships The text segment starts at offset 0, with the 0x80-byte header inside it. So |
|
Merged as I had done two of these by hand this morning and they were the weaker version of the same idea: I edited Verified on top of today's main (
Two notes, neither a request for a change:
The row ordering moved |
…m the merge base The five older workflows used actions/checkout@v4, setup-python@v5 and upload-artifact@v4; they take the same pins as tests.yml (checkout v7.0.1, setup-python v7.1.0, upload-artifact v7.0.2, by commit SHA), and Dependabot keeps all of them current. checkout v6 moved the persisted token to a file under RUNNER_TEMP; git push in sync-upstream.yml works on as before (the action's notes: no workflow changes required). pr-scope compared the base branch's tip with the PR's head (two dots), so every commit main gained after a PR branched counted as the PR's: LNPANDY#51 failed on env_switches.py and docs/agents/README.md, which main had just changed. It diffs from the merge base now (three dots, as its comment said), with the history checked out for it.
With #48's test workflow, three test files fail on main. Each fails on a fork change that upstream's version of the file does not know about. This PR makes them pass and keeps them passing across syncs.
Rebased onto
b54504e, after #39 and9f7d421.dm/ios/tests/test_romfs_startup.pymain.m's RomFS locator on its own. The fork's locator readsidandromfs_markerthroughdm_profile(), which the fixture did not stub.dm_profile()with the marker the test already uses.dm/ios/tests/test_profile_pack.pyDM_FULL_ROMFS=1packs the RomFS in.dm/tools/tests/test_env_switches.pydocs/env_switches.tsvloses the rows of the switches only the fork reads (DM_FULL_ROMFS,DM_PROFILE) whenever upstream rewrites the table.9f7d421put the rows back by hand.Staying fixed across syncs. The two iOS tests and the switch table are carriers now. Each has a patcher that is idempotent and rebuilds this tree from upstream's files; I checked that against
seedds/main.test_nro_header.pygoes into OURS, because it tests yourpatch_nso.pycarrier. A sync run with--old = --newendsSYNC OK. The three tests,test_nro_headerandtest_docspass locally.Two things for you:
patch_patch_nsorestoresTEXT_LO = segs[0][1]. A real NRO shows that this value is 0: Hades'EOSSDK-Switch-Shipping.nrohas text{0x0, 0xa41000}, with the header inside it. So the bound does not skip the header, and Fix: Skip the NRO header when scanning code ranges #14 is still open. The fix is upstream as seedds/nxnative#397, with a behavioural test; the details are in this comment.PATCHED.dm/host/front_mac.m,dm/tools/patch_nso.pyand the Hades IIgame.tsvhave patchers but are not inPATCHED. The sync still re-applies them in its second pass, butpr-scopewill flag a PR that touches them.The earlier dry run with #48 passed all six jobs: https://github.com/v0lumehi/NX2Apple/actions/runs/40489457905. That was before this rebase.