Repository navigation
Merged
Conversation
… catalog, and document where models come from
… the mark, not the catalog
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 #215
The catalog now marks Android models that come from Android Studio's
devices.xmlwith an optionalcustomModelslist. The CLI docs say where Android models come from.DeviceProfileRegistry.catalog()marks a listed model custom when the profile its name resolves to has kindproperties. The mark and the resolution use the same matcher, so adevices.xmlname that a built-in profile already answers to is listed but not marked.simlock catalogprints(custom)after a custom model.Done when
docs/CLI.mdsays where Android models come from, which source wins on a name clash, that a newer built-in model needs newercmdline-tools, and how to add a custom profile. Checked by reading the new section.simlock catalog --jsonmarks custom Android models, and built-in and iOS models have no mark. Tested indevice-profile-source.test.ts, the Android and iOSindex.test.ts, and e2egateway-fleet.test.ts.cli/index.test.tsand in the e2e test.worker list --json(e2e test). The humanworker listprints no models, so there is nothing to mark there.devices.xmlstill yields the built-in models. Tested indevice-profile-source.test.tsand Androidindex.test.ts.pnpm checkis green.Review
Spec review: 8 findings, 2 fixed. Code review: 1 finding, 1 fixed.
Rejected:
worker listdoes not show the mark. That view prints no models, and the spec asks for the mark only "where it prints a worker's models". The mark is in--json, and the docs point there.docs/internal/ARCHITECTURE.mdwas edited without being asked. The documentation rules keep maintainer docs in step with the code, and its catalog-union paragraph would otherwise be incomplete.fitPlatformCatalogwas not asked for. Without it, a custom name over the schema's name bound fails the wholecatalog.getanswer, which the code review confirmed. spec needs: a line on what the daemon does with a custom name that is over the bound.customModelslimit is 4096, not "the same limit asmodels".modelshas no limit in the schema, so 4096 is the existing per-model list bound. spec needs: the limit stated as a number.Written by an agent.