Android backends: Redroid images as components, doctor checks and the setup guide
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, typescript
- Ambito
- backend, cli, devops, documentation, testing
Direzione di ricerca
Start with #2041 and ADR 0102 §6, then read the named component installer, doctor and Android prerequisite modules, alongside the component and prerequisite tests. The change spans image lifecycle, lease pulls, diagnostics, CLI output, documentation and slow end-to-end coverage; done means the listed unit, typecheck, website build and end-to-end checks pass, including the Linux and Colima setup guide.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of #2041.
Scope
An operator installs, lists and removes Redroid images as components (simlock component install android redroid-34), a lease with an exact model pulls a missing one when downloads are on, and simlock doctor names what keeps Redroid from booting (no docker, a missing context, an engine that is down or not Linux, binder missing or not checkable) with a fix line. The website gains a Redroid setup guide for Linux and Colima.
If it goes wrong, an image in use is removed under a running device, a pull fills the engine's disk with no warning, or doctor sends the operator to the wrong fix.
Technical spec
Commit b037ae2a0.
Rows
- Behaviours: B21, B22, B23
- Stored state: S5
- Interfaces: I13
- Existing code: X13, X14
Facts
| # | Fact | Source |
|---|---|---|
| F1 | Doctor's binder check runs docker run --rm alpine:3.20 grep -w binder /proc/filesystems: nodev\tbinder, exit 0, when loaded |
/private/tmp/claude-501/redroid-design/facts1.log (cited by the parent's I13) |
Modules touched
src/drivers/android/redroid/ (components, prerequisites), src/drivers/android/prerequisites.ts, src/core/component-installer.ts, src/core/doctor.ts, src/cli/commands/ (component and doctor output), new website/src/content/docs/docs/worker/redroid.mdx, website/astro.config.mjs (sidebar), website/src/content/docs/docs/worker/runtimes-and-images.mdx, website/src/content/docs/docs/reference/cli.mdx, e2e/slow-android-redroid.test.ts (from #2051; its setup installs through simlock component install). Searches: rg "androidPrerequisites|installComponent|removeComponent" src.
Rules in play
- ADR 0102 §6: Accepted — not yet implemented; simlock pulls the upstream image and ships none; the operator sets up the engine and binder.
- ADR 0010: components are installed, recorded and removed only through
ComponentInstaller; consent followsdownloads.*. src/drivers/AGENTS.md"Prerequisites": the Redroid checks are noDrivermethod and only doctor runs them.docs/internal/agent-rules/documentation.mdrule 9: the setup guide and the CLI reference change in this PR.
Tests
Seam: each row's Seam cell in #2041; model on src/core/component-installer-remove.test.ts, e2e/component-install.test.ts and src/drivers/android/prerequisites.test.ts.
- B21: A Redroid lease whose image is missing pulls it when downloads are allowed (progress per layer), and records the component; otherwise answers
RUNTIME_MISSINGnamingredroid-<API level>.: downloads on → pull,component.installed; downloads off →RUNTIME_MISSING; tag not found upstream → install failure with the engine's message; second request during the pull joins it; pull pastdownloads.timeoutMs→ the existing timeout error - B22: An operator runs
simlock component install,listorremove android redroid-34; remove is refused while a device uses it.: install; already installed; list showsredroid-34with its size; remove; remove in use →COMPONENT_IN_USE;redroid-99→Unknown component redroid-99; known: redroid-31, redroid-33, redroid-34, redroid-35;redroid-34on a worker not running Redroid → the same unknown-component refusal - B23:
simlock doctoron a worker that listsredroidreports what keeps Redroid from booting, with a fix line (I13).: all fine → nothing;dockernot found; context not found; engine unreachable; engine not Linux; binder missing; thealpine:3.20run past its limit, or its pull refused →redroid-binder-unknown; worker that does not listredroid→ no Redroid checks
Done when
pnpm test:changedandpnpm typecheckpass; each Tests line above is a case table in one test.pnpm test:e2e e2e/component-install.test.ts e2e/component-list.test.ts e2e/component-remove.test.tsstill pass: the fake driver keeps the component contract (I12, changed in #2049); Redroid components are proven by the Tests lines above.- The website build passes:
pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjs;worker/redroid.mdxis in the sidebar and gives the Linux and Colima recipes, the provision hook that keeps binder across a VM restart, and the root-equivalence of the docker group. - Slow lane, on a Mac with Colima:
scripts/slow-e2e.sh e2e/slow-android-redroid.test.tsstill passes, its setup now installing each image throughsimlock component install android redroid-<API level>in place ofdocker pull.
Out of scope
Disk-space reservation for Redroid pulls (a non-goal of the parent); Docker Desktop, OrbStack and Windows hosts.
Depends on
- #2051
- #2049
Written by an agent.
- Lingua principale
- TypeScript
- Stelle
- 730
- Fork
- 44
- Merge medio
- 15h 28m
- PR unite (30g)
- 387
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstackincubator/simlock
-
bug:new
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
callstackincubator/simlock#2088 ·
I maintainer di solito rispondono entro 1 giorno
-
bug:new
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
callstackincubator/simlock#2080 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
task:ready
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
callstackincubator/simlock#2079 ·
I maintainer di solito rispondono entro 1 giorno
-
platform:ios task:ready
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
callstackincubator/simlock#2078 ·
I maintainer di solito rispondono entro 1 giorno
-
iOS copy: keep the app database at the copy's own UDIDForse già presa @V3RON l’ha presa oggi. Apertaplatform:ios task:ready
callstackincubator/simlock#2077 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di callstackincubator/simlock
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
melgarafael/DeskcommCRM#5614 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
slackapi/slack-health-score#253 ·
I maintainer di solito rispondono entro 1 giorno
-
feature needs triage site
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
owid/owid-grapher#8019 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
simstudioai/sim#10710 ·
I maintainer di solito rispondono entro 1 giorno
-
via-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno