Repository navigation
Merged
Conversation
…ly other simulators were never used A simulator in the default device set counts as a user of its runtime only when its simctl entry has lastUsedAt. The never-used ones macOS creates for every installed runtime no longer block a removal; they stay in place, and residue says how many became unavailable and how to clear them. ADR 0010 §8 and safety rule 1 are amended to match. Closes #241
…unused simulator is named in the singular Also mark ADR 0010's §8 amendment by #241 in its header.
…image goes Another installed build of the same runtime keeps its simulators available. Also pin how the two residue sentences join, and note in KNOWN-PITFALLS that a simulator first booted after the last count is not seen.
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.
Closes #241
When an iOS runtime install ends, macOS creates about eleven simulators for it in the default device set.
component removecounted them as users, so no runtime Simlock installed could be removed.Now a default-set simulator counts as a user only when its
simctl list -j devicesentry haslastUsedAt. One function,devicesPerRuntime, decides this forlistComponentsandremoveComponent. An entry that is not an object still counts, so an unreadable entry never unblocks a removal.Never-used simulators are left in place. After the removal,
residuesays how many became unavailable and thatxcrun simctl delete unavailableclears them. When the download also stays in the asset store,residuecarries both sentences. If another build of the same runtime is still installed, the simulators stay available, so they are not reported.ADR 0010 §8 and safety rule 1 are amended as the spec says, and the ADR header records the amendment. CLI, HTTP API, client, ARCHITECTURE, EVENTS and KNOWN-PITFALLS docs are updated, including the #79 measurement on Xcode 26.4.1.
Done when
component installwhile its macOS-created simulators are present, and recordresidue. Not run, needs the maintainer's go-ahead.component listforeignDevicesequals the runtime's default-set simulators withlastUsedAt. Not run, needs the maintainer's go-ahead.pnpm check: lint, format, typecheck and unit tests are green. Locally, onlye2e/gateway-fleet.test.tsande2e/held-lease-liveness.test.tsfailed. Both are known to fail on this machine and pass in CI, so CI decides.#213 Completion conditions (last sub-issue)
e2e/component-list.test.ts(fake driver).catalogdrops it:e2e/component-remove.test.ts(fake driver). Real hardware not run.e2e/component-remove.test.ts.e2e/component-remove.test.ts.e2e/component-remove.test.ts, plus the iOS driver test "refuses with ComponentInUseError when one default-set device of the runtime has lastUsedAt". "Uses" now means used at least once (this PR).e2e/component-remove.test.ts.FORBIDDEN:e2e/component-remove.test.ts.docs/CLI.mddescribes the commands and both refusals, anddocs/EVENTS.mdlistscomponent.removed: checked by reading.Review
Spec review: 10 findings, 1 fixed. Code review (two rounds): 10 findings, 5 fixed.
Rejected:
pnpm checkcannot be confirmed from the diff: it ran locally, see Done when.ComponentRemovalcomment and the KNOWN-PITFALLS in-use section go beyond Modules touched: the deliver skill requires fixing every doc the change makes false, and each of these described the old count or a single-sentenceresidue.lastUsedAt:simctlsetslastUsedAtwhen a simulator boots, and "booted" is the word a user can check.residue: its body asserts the whole resulttoEqual({ sizeBytes }), so anyresiduefails it.removeListedComponentandComponentInstaller, and the driver only supplies the count, as architecture rule 2 assigns.lastUsedAtcounts as unused, so a futuresimctlthat drops the key would unblock every removal: the spec keys onlastUsedAt, which is measured on Xcode 26.4.1. Flagged for the maintainer.Written by an agent.