Repository navigation
Conversation
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.
Summary
Perf audit, size lane, item P1 (finding 18c-1). This is the correctness step that per-arch registry plugins need first.
PluginManager.validateBundleVersionsnow also checks that a user plugin's executable holds the running process's architecture. It readsContents/MacOS/<CFBundleExecutable>withCFBundleCopyExecutableArchitecturesForURL, not the cachedBundle, so a bundle repaired in place passes at once. Under Rosetta the app wants x86_64.assertLoadable,applyStagedUpdates, loose-bundle and local-zip installs, andPluginInstaller.validateBundlefor a registry download.sourceparameter. They ship inside the sealed app, one arch per build, andbuild.shalready runsverify-plugin-loads.sh --archon them. This also avoids 16 header reads on the main actor at launch.PluginError.missingArchitecture. Its message is the loader's existing sentence, moved toPluginBundleLoader.missingArchitectureReason, so no new string.Before and after
Deliberately not fixed here
plugins/v3.json). Listed in the follow-up issue..zipor.tablepluginwithout the arch fails with the arch message. No test covers that path end to end: it checks the code signature first, and a test fixture cannot carry TablePro's signature. The registry-download gate, which shares the same check, is tested.Test plan
PluginArchitectureCheckTests: no executable and a non-Mach-O file pass; a thin executable passes only for its own arch; a universal one passes on both; a built-in skips the check; a bundle replaced in place passes at once; a registry download without the arch is refused; the message matches the loader's.PluginRegistryUpdatePassTests: launch marks an other-arch registry plugin for repair and the pass installs it at once, not staged; a sideloaded one keeps its message and is never a target; a staged update without the arch is dropped and the installed copy stays.PluginBundleVersionTests,PluginLazyRegistrationTests,PluginRegistryUpdatePassTests(includinginPlaceRepairPassesKitCheck),PluginBundleLoaderDescribeLoadFailureTests,PluginInstallerHelpersTests,PluginLazyActivationVerificationTests,PluginManagerInitialLoadTests,DriverUnavailabilityTests. No test changed on purpose.verify.sh teston those suites: 113 cases, all pass.verify.sh linton every changed file: 0 violations.