Save a baseline from a shut-down simulator Simlock did not make
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- ios, macos, sqlite, typescript
- Área
- devtools, testing-qa
Línea de trabajo
The request is a new simlock baseline import command that copies an existing Shutdown simulator from Xcode's default device set into a baseline, so the work spans the baseline save path, lease creation and the path rewrite before first boot. Start from the existing baseline save implementation and the code that writes baseline.saved events, then read how a lease copies stored paths. Done means the refusals happen before copying, the original is never booted or changed, and the UDID rewrite keeps file lengths. The author offered to open a pull request, so check with maintainers before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The problem
A baseline can only be saved from a simulator Simlock leased (simlock baseline save <name> --lease <id>). Some state can only be prepared by hand on a simulator someone already has: for example an app signed in through a provider that needs a person (Sign in with Apple, a passkey, a second factor), with the app's keychain items and data in place. That simulator lives in Xcode's device set and was not made by Simlock, so there is no way to give agents copies of it. Doing the same sign-in again inside a lease is not possible without the person, and has to be repeated whenever the state should be refreshed.
Who runs into this
Coding agents that check an app's signed-in screens against a real account. A person signs in once on a simulator they keep; agents should each get a disposable copy, and the original must never be booted, changed or deleted by the tool.
What you would like to happen
A command that saves a baseline from an existing simulator, for example:
simlock baseline import <name> --device <udid> [--mode slim|full] [--note <text>]
- The simulator must be in Xcode's device set (with
drivers.ios.deviceSet: "default"),Shutdown, and not made by Simlock; anything else is refused before anything is copied. - Simlock only reads it:
simctl cloneinto the sources set, and nothing that boots, shuts down, erases, renames or marks it. A simulator that is no longerShutdownafter the copy has its copy dropped. - The baseline is the next version of the name, as a save is, and
baseline.savedannounces it (with the device in place of the lease). - A lease of it gets the simulator's model and OS version and the requested mode, and is deleted on release as any lease is.
- Before a lease's copy first boots, the original simulator's UDID in the copy's stored paths (text in UTF-8 and UTF-16LE, and link targets) is replaced with the copy's own, and SQLite write-ahead logs it rewrote are sealed again. Without that, a booted copy's daemons write into the original simulator, which still exists. The original and the copy are both in Xcode's device set, so the UDID is the only part of the paths that differs, and the swap keeps every file's length.
To pick up later changes to the original, shut it down and import it again under the same name.
Anything else
I have this built and tested against 0.7.0 (unit tests for the import, the refusals, the copy rewrite and the write-ahead log; used live with a signed-in simulator) and can open a pull request if it is welcome. Related: #1548, where every copy of a seed writes into the seed for the same reason (stored paths), which the UDID swap alone cannot fix because a seed and its copies live in different folders.
- Lenguaje dominante
- TypeScript
- Estrellas
- 705
- Forks
- 40
- Merge medio
- 12 h 9 min
- PR fusionados (30 d)
- 376
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstackincubator/simlock
-
request:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
callstackincubator/simlock#1806 ·
Los mantenedores suelen responder en 1 día
-
bug:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
callstackincubator/simlock#1780 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
task:draft
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
callstackincubator/simlock#1441 ·
Los mantenedores suelen responder en 1 día
-
bug:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
callstackincubator/simlock#1805 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug:new
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
callstackincubator/simlock#1804 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstackincubator/simlock
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Update project links after the repository renamesPosiblemente ocupada @JonathanTSilva la tomó hoy. Abiertoai-generated priority: p2 size: xs type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
JonathanTSilva/jts-website#119 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
promplate/code-review#158 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Docs] CONTRIBUTING points the Backend Remake milestone at a branch that does not existPosiblemente ocupada @franpts2 la tomó hoy. Abiertodocs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 3 días