Mac source Home: Browser shows 'needs preparation' (unstamped image row, missing TURN program, config-only exit)

Aberta
#477 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
rust
Domínio
backend, testing

Direção de pesquisa

Read elastos/crates/elastos-server/src/setup.rs and trace ensure_browser_vm_image_for_local_engine, then compare it with scripts/prepare-release-platform.sh and scripts/release-platform-input.py's stage-browser-image path. Add a test for setup-source-home with a verified staged image set; done means Browser opens without the preparation error and the source Home setup test passes.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

What happens: on a Mac source Home set up with a locally staged Browser image set, Browser says "Browser Engine needs preparation. Prepare it or choose another approved Engine." Prepare can't fix it. The gateway log says "Browser image release package requires a stamped lowercase SHA-256 checksum".

Why:

  • setup-source-home copies the template's darwin-arm64 browser-vm-image row, which has no checksum or size (present since 82ae48cd9, 8 Oct; Mac-only since b725316d7, 13 Oct).
  • The Runtime checks a locally staged image in place only when that row is absent (elastos/crates/elastos-server/src/setup.rs ensure_browser_vm_image_for_local_engine). With the unstamped row, browser_vm_image.rs validate_info fails, and Prepare runs the same code.

Release path: release preparation writes this row with a checksum and size (scripts/prepare-release-platform.sh runs scripts/release-platform-input.py stage-browser-image, which writes both), and the 0.8.0 Browser image admission run stamped it. From the source, this gap is in the source setup path. No installed packaged Home has opened Browser with the new image yet; the installed check on the packaged candidate covers that.

Fix: when setup-source-home links a verified staged image set, drop the unstamped row, or stamp it from the image receipt. Add a test that a source Home with a staged image opens Browser without the error.

Found during the 0.8.0-alpha.25 Browser check on 21 Oct (#474, #473). The test Home was repaired by removing the row by hand. After that change, the restart helper refuses to restart that Home (installation receipt components_hash).

Linguagem predominante
Rust
Estrelas
6
Forks
2
Merge médio
1d 3h
PRs com merge (30d)
42

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de elastos/elastos-runtime

Todas as issues de elastos/elastos-runtime

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.