Repository navigation
Add optional save and indexed cache seeds to Mac app builds - #555
victorwads wants to merge 3 commits into
Conversation
|
Engine companion is now open as draft: seedds/nxnative#1053. It implements cache capacity from packaged application metadata and enumerates existing indexed cache directories, with native and Mac packing tests. Both PRs explicitly list remaining review limits; cached provisional update selection still needs its own fix. |
|
The separate stale provisional update-selection safeguard is open as seedds/nxnative#1055: selects from actual inputs and rejects a stale profile with an actionable --profile-out message instead of silently packing an older base. Its full NSP group (241 tests) and pinned lint ratchet passed locally; remote Python lint passed, other engine jobs are queued. Cache support remains draft seedds/nxnative#1053. |
|
Thanks. I put this in v1.1.1 with #553. As for every outside feature, one maintainer tries the app that CI built and reviews the code. It is a large change (13 files), so it may take a while. |
d3d803b to
428571b
Compare
|
Maintenance update: rebased onto current upstream main and squashed to one commit, preserving both shell-move and offline-preparation cancellation paths. Added partial-copy failure cleanup: a failed app copy is now inside the candidate transaction cleanup; the regression injects out-of-space after creating partial output, verifies original preservation and candidate removal. Full pre-push checks passed without bypass: Swift suite 718 tests / 24 skipped / zero failures, plus Qt/tool checks and interaction budgets. Current head 428571b. Remaining concerns from the PR description (source mutation during copy, large-copy progress/picker cost and final-publication recovery) are still open; this is not a claim that those are fixed or that generic real-game UI import was validated. The current reported GitHub checks only include label success; local validation is not being represented as completed remote CI. |
428571b to
15b782f
Compare
|
The current rebased head 15b782f passed all mandatory local pre-push checks. GitHub Actions tests (run 41672074314) and macOS app build (run 41672074155) both conclude action_required before tests execute. Could a repository maintainer inspect/approve those workflow runs if appropriate? I have read-only permissions on this upstream, so cannot authorize them. I will not treat the successful label check as full CI approval or bypass repository workflow policy. Remaining design/safety limitations are still documented in the PR body. |
86c7f2f to
667112a
Compare
|
Local validation blocker isolated: the minimal pair LauncherControlWidthTests.testEveryRowControlOnTheRealPagesFitsInEveryLanguage followed by LibraryTests.testCompletedBuildAppearsAutomaticallyInCollection hangs on BOTH this branch and a clean detached upstream 8e1a26f checkout. The library test/class passes alone. macOS sample on pristine upstream reports Dispatch Thread Soft Limit: 70 reached, many AppKit NSAnimation _runBlocking workers, and main waiting in SystemProcessRunner.capture at ProcessRunner.swift:132 via Toolchain.dotnetRoot (LibraryTests.swift:617). A dedicated stderr-thread experiment moved the wait to build completion at line 624 but did not fix the full flow; it was reverted, as were unsuccessful window/spinner teardown experiments. No hooks were bypassed. Remote remains 667112a; the current-main rebase plus inventory-cancellation improvement are retained locally but unpublished until required validation passes. The independent GitHub workflow authorization barrier also remains. This documents a locally reproduced upstream/test-environment issue, not a claim about all machines or CI runners. |
|
Thanks @victorwads, I read the change in full. I move it from v1.1.1 to v1.2.0, and here is why. Why not for v1.1.1. The cache half cannot work without seedds/nxnative#1053, and the PR says so itself. It changes how every Mac build with a chosen folder ends, it re-signs the app and it puts saves in a new place. That is a lot for a release candidate with no run on a real game yet. Before it can merge, @LNPANDY and I also need to agree how the launcher handles seeds of saves and caches at all. That is a decision about behaviour of the launcher, so it belongs in #553 first. What I would change.
About the hang. I do not approve the CI runs for now, because the PR is not going into the release candidate and the head changed between the comments. Please tell me when your branch is final. |
|
@victorwads thanks for the work. This branch conflicts with main. Please rebase onto main. The list from my Nov 4 comment is still open: the six language files, English text in code, the leftover @LNPANDY and I still need to agree on the seed behavior in #553. The cache part also needs seedds/nxnative#1053 merged. Please open an issue for the test hang in |
667112a to
03d3fb1
Compare
|
Review update: rebased onto current main and pushed head 03d3fb1. Mandatory hooks passed without bypass, including 923 Swift tests / 34 skipped / zero failures plus patch queue, Qt, tools and iOS shell checks. Changes address six-language coverage (including correcting German), localized validation/summary, explicit shared-app save privacy notice, removal of rollback copy after successful publication, preservation of the produced app signing identity and metadata, no forced DM_SAVE_SYNC override, .nx2apple-library marker on success, chunk-level copy cancellation and tracked signer cancellation (including startup race). Added finishOfflineApp model tests for success, signer failure and Stop, asserting state cleanup. Remaining work before claiming review complete: updated English screenshots/docs, separate historical test-hang issue with actual sample, and engine companion validation including the requested TotK run. The old contaminated default Swift cache was preserved and rebuilt rather than bypassing hooks. Remote label status is not being represented as full CI. |
|
The requested separate historical hang report is #1054. It includes exact macOS sample excerpts recovered from diagnostic history; the original temporary full sample is no longer present, explicitly disclosed rather than reconstructed. It is not claimed reproducible on current main: the rebased branch passed the full hook suite. The English after screenshot and PR usage/privacy/cloud-sync documentation are updated. No game data or private save content is in the screenshot. |
|
One final cancellation presentation correction is published in ab5d759: Stop now displays the normal localized stopped status, not an offline import error. The finishOfflineApp Stop model test asserts that status. Mandatory pre-push checks passed again without bypass. The review-response branch is now ready for your next review/CI authorization; #1054 contains the requested historical sample excerpts and is cross-linked to the existing closed #854 timeout report. Engine #1053 has also been rebased and is mergeable; requested TotK runtime validation remains explicitly outstanding. |
|
Thank you for the implementation, tests and time you put into this. We have decided not to embed save and indexed offline-cache seeds into generated applications. That creates an additional packaging and first-run storage lifecycle, with duplication, provenance and compatibility concerns. Explicit save import/export with backups remains the chosen workflow. The selected-update correctness problem in #553 is separate and remains in scope. This is a product-scope decision, not a judgment on the effort behind the contribution. We are closing it rather than keeping it in a waiting state. |
Fix or feature
Related: #553. Target milestone: v1.2.0; seed design remains subject to maintainer review.
What and why
Adds Save and offline data (optional) to the Mac build page, with separate Initial save and Indexed cache storage folder selectors. This packages an initial data seed, not a Switch installer or a downloader. No DBI, game-specific assets, account credentials or unlock logic are included.
How to use
Select the base game, matching update and optional DLCs as usual. Choose This Mac.
Optionally choose an Initial save folder. Select the extracted save contents (the folder directly holding the game's save files), not an NSP, encrypted console save container or an entire backup-tool directory.
Optionally choose Indexed cache storage. Select the parent folder directly containing indexed directories such as:
The equivalent names
temp_cache0andtemp_cache1are accepted. Indices are normalized; duplicate indices, symbolic links and out-of-range indices are rejected.Check the selected paths and file-size summary, then build. Empty selections retain the normal build behavior. Save-only and cache-only imports are supported.
The new app carries the seed. On first launch it copies the data into separate writable storage under
~/Library/Application Support/nxnative/offline/<bundle identifier>/. Later launches reuse that storage and preserve progress; rebuilding does not overwrite an existing imported save. Cloud synchronization follows the existing launcher/environment choice; import no longer forces it off. Sharing or exporting the app shares its embedded save and offline data: do not distribute private saves.Use your own extracted backup. Check free space both for the app seed and the writable first-launch copy; large caches can require tens of GB. Keep the source backup until you have verified the game. This is not a merge/import-over-existing-save tool, and there is no automatic overwrite of your normal save.
When is it useful?
It is not for installing NSP updates/DLCs into cache folders, supplying DBI, downloading missing songs, bypassing authentication/subscriptions/ownership, or making online-only features work without their services. A valid folder layout does not establish version compatibility or content completeness.
Which games can use it?
The packaging mechanism is generic, but runtime support is game-dependent: save formats, title/update version, cache indices, filesystem APIs, codecs and services must match. No supported-games list is implied.
Observed local example: Just Dance, title ID 0100BEE017FC0000, update v983040 / display 25.0.3. A manually integrated candidate mounted nine cache indices and read OfflineSaveNx.txt; the user reports that A Queda played normally and that language was changed through the in-game menu. This is one user-reported playback result, not full-catalog, motion-scoring, account or network-independent validation. The supplied catalog identifies itself as a third-party mod, so official-cache compatibility is not inferred.
Other games: compatible save seeds may be useful, and games using indexed cache storage may benefit, but no additional title has been validated through this feature. Do not treat building an app as proof of gameplay support.
Maintainer-requested changes (head 03d3fb1)
Checked
Review follow-up and remaining limits
Screenshots
English Save and offline data interface, before and after. Uploaded through the user-owned fork because upstream attachment upload requires write permission.
Scope