Repository navigation
CI: run the tests on every pull request (upstream's tests.yml plus the launchers), newest actions, Dependabot - #48
Conversation
|
Probe. |
|
The Tool tests job here fails on four test files: |
…llow the fork, across syncs With the tests running in CI (LNPANDY#48) and the x bits back, four 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. - docs/env_switches.tsv had no rows for DM_FULL_ROMFS and DM_PROFILE, which only the fork reads; the sync drops them when upstream rewrites the table. They are back. - test_nro_header asserted a call in patch_nso.py that the sync fe56176 replaced. It is not put back: an NRO's text starts at memory offset 0 with its header inside, so segs[0][1] never skipped the header; the real bound (0x80) belongs upstream, and issue LNPANDY#14 is open again. The two iOS tests and the switch table are carriers now: a patcher each, idempotent, reproducing this tree from upstream's files. The NRO test is in OURS. A sync run with --old = --new ends SYNC OK.
… 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.
… 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.
|
The
self.assertEqual(archive.read('Payload/DmIOS.app/romfs/marker'), b'romfs')but this fork packs the slim IPA (the RomFS goes to That assertion was already fixed on main by PR #51 ( I merged today's main into your branch locally and everything is green:
So a rebase onto One thing worth doing while you are here, since this PR is the one that makes CI run on every PR: |
…e actions current No workflow ran a test on a pull request: pr-scope checks file ownership, and the daily health check builds the host and runs its unit tests once a day. upstream's tests.yml (seedds/nxnative) never came along because .github is not synced, though docs/agents/06-dev-loop.md describes it. This takes it as it is: host unit tests and ThreadSanitizer, CPU-only gfx tests, the Python tool tests, Mac host builds for an NVN, a Vulkan and an OpenGL profile, the iOS source compile and smoke project. Two jobs are the fork's: the Mac launcher (swift build -c release, swift test) and the Qt front end's tests. The actions are the newest releases, pinned by commit SHA with the tag in a comment (checkout v7.0.1, setup-python v7.1.0, setup-dotnet v6.0.0, upload-artifact v7.0.2) on macos-26; dependabot.yml raises them weekly in one grouped pull request.
…library lists the app testCompletedBuildAppearsAutomaticallyInCollection checked model.done and model.running as soon as the library listed the app. On GitHub's macOS runner the library got there first, and both checks failed; on a faster Mac the order hid it. The test now waits for the model to settle too.
…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.
|
Rebased onto main ( |
The update machinery was already here — checkAppUpdate finds the newest release, performAppUpdate downloads it, swaps the bundle and relaunches — but the only signal was a status line naming a tag. A user whose app worked had no way to judge whether the new version mattered, so "Update to v0.4.8" was a leap of faith, and most people took the leap only when something broke. Now a found update opens a sheet: the version they have, the one on offer, the release notes for their interface language, Open the release page, Later, and Update now. It opens from the launch check and from Check for updates, so an old install learns what changed without visiting GitHub. The notes are the release body, which this project writes in both languages (docs/RELEASE-NOTES-GUIDE.md). UpdateSheet.lines splits them by the `**中文**` / `**English**` markers rather than by looking for Han characters — the first version did the latter and handed an English reader the Chinese paragraph, because that line contains both. A body with no markers is shown whole instead of being split in half. Six tests cover the split, including the two cases that failed on the first attempt (a monolingual body, and inline **bold** inside a marked paragraph). Checked against the real v0.4.7 body: 19 lines each way, aligned. appVersion 0.4.7 → 0.4.8: today's merges (#28, #48, #54–#57, #59, #60 and the #52/#53 fixes) were shipping under a version number that also names the 0.4.7 release, so a bug report could not say which one it came from.
No workflow here runs a test on a pull request.
pr-scopechecks file ownership, and the daily health check builds the host and runs its unit tests once a day. The launcher'sswift test, the Qt tests and the Python tool tests ran nowhere. upstream'stests.ymlnever came along because.githubis not synced, althoughdocs/agents/06-dev-loop.mddescribes it.What this adds
.github/workflows/tests.ymlruns on every pull request, on pushes to main, and by hand. It contains upstream'stests.ymlunchanged:dm/tools/tests,dm/ios/tests,dm/gfx/tests)Plus two jobs for the fork:
swift build -c releaseandswift testinfrontend/.frontend-qt/tests.Action versions: the newest releases, pinned by commit SHA with the tag in a comment, as upstream pins them. That is
actions/checkoutv7.0.1,actions/setup-pythonv7.1.0,actions/setup-dotnetv6.0.0 andactions/upload-artifactv7.0.2, onmacos-26.The other five workflows, which used
checkout@v4,setup-python@v5andupload-artifact@v4, now use the same pins.pr-scopediffs from the merge base. It 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. #51 failed onenv_switches.pyanddocs/agents/README.md, which main had just changed. It now uses three dots, as its own comment already said, and checks out the history it needs for that..github/dependabot.ymlopens one grouped PR a week when an action releases, so the pins stay current.One launcher test fix:
testCompletedBuildAppearsAutomaticallyInCollectioncheckedmodel.doneas soon as the library listed the app. On GitHub's runner the library got there first, so the test failed there and only there. It now waits for the model to settle.First runs (on my fork)
Run 40486737621: five of six jobs pass. The Tool tests job fails on three files, all of them fork problems that already exist on main:
test_docs.pydocs/geometry-metal-research.mdanddm/ios/ENTITLEMENTS.mdtest_image_atomic_bounds.pyspirv-crossis100644here: the sync wrote files without their modetest_env_switches.pydocs/WORK-IN-PROGRESS.mdnamesDM_TOUCH_PREVIEW(andDM_PROF), which nothing reads any moreFound on the way: the Mac touch preview is gone
9112ddaaddedDM_TOUCH_PREVIEWtodm/host/front_mac.m(93 lines, usingtouchpad_geometry.h).front_mac.mis neither in OURS nor PATCHED, so the sync8ed25b4took upstream's file and dropped it, the case #29 describes.touchpad_geometry.hand its test are still in the tree, but nothing uses them.WORK-IN-PROGRESS.mdstill lists the feature as done. Should it come back through a patcher, or go upstream? Either way the doc line goes; I left it alone because the choice is yours.Until those land, the Tool tests job stays red on every PR. That is accurate, and the three causes above are its whole list.