Repository navigation
The shell's framework mirror is the primary copy, and the installer makes it - #406
Merged
Merged
Conversation
…akes it The mirror in NX2Apple-shell/frameworks is now a clone made with copyItem. It costs no space on APFS. Later writes to the build folder do not reach it. On another volume it is a real copy. shell.json always points at the mirror for a game that has one. dropMissing checks one path. The second loop that rewrote paths is gone. The installer mirrors every game whose framework it finds in its build folder, before dropMissing. A game built before the mirror existed gets one too. The build callback no longer mirrors. A failed mirror is logged in the install log and the game keeps its build folder path. One helper, shellRoot, gives the shell folder to the cache row and to installShell. The first call of resolveRoot can no longer save a different root than the install uses. The semicolons in the English, Swedish, French and Chinese texts of shellCache.note are now full stops.
Merged
1 task done
3 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@LNPANDY, this implements the points from my review on #399: #399 (comment)
I propose it without waiting for your reply, so it is ready for 0.8.0. #399 is merged, this is the follow-up.
Fix or feature
What changed
mirrorFrameworkremoves the old mirror and callsFileManager.copyItem. It costs no space on APFS, and later writes to the build folder do not reach it. On another volume it is a real copy. ThelinkItembranch is gone.shell.jsonpoints atNX2Apple-shell/frameworks/for every game that has a mirror.dropMissingchecks one path. The second loop that rewrote paths is gone.ShellInstallermirrors every game whose framework is in its build folder, beforedropMissing. A game built before The shell folder caches every game's framework, and Settings names it (#398) #399 gets a mirror at its next install. The build callback inContentViewno longer mirrors.BuildModel.shellRootgives the shell folder to the cache row and toinstallShell. The first call ofresolveRootcan no longer save a different root than the install uses.shellCache.noteare now full stops in English, Swedish and French. The Chinese text had a full-width one, which I changed too.frontend-qt/nspb_qt/localization.pyis regenerated withgen_localization.py, so it matches. No other mirror text had a semicolon.Checked
swift test --filter "ShellMirrorTests|ShellInstallTests"passes (39 tests). The new tests cover the clone (a write to the source does not reach the mirror, another inode), the mirror paths inshell.json, the installer mirroring a build from before The shell folder caches every game's framework, and Settings names it (#398) #399, a game that plays from its mirror when its build folder is gone, and a failed mirror that keeps the build folder path.swift testinfrontend/passes, run without--parallel. The localization tests pass.python3 -m unittest discover -s frontend-qt/testshas the same 19 errors asmainin a checkout withoutengine/(the tests that read the engine). The localization tests there pass.Screenshots
None, no visible change beyond the wording of the note in Settings > Build tools > Cache files. The row sits below the first screen of the Settings capture, so I did not attach one. The English text now reads: "The shell's mirrored frameworks, its library file (shell.json) and the banner cache. Deleting it means every game's framework must come from its build folder again at the next install. A game whose build folder is also gone must be rebuilt."
Scope
dm/,scripts/,docs/,ref/) is added to the repository