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

未關閉
#477 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust
領域
backend, testing

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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).

主要語言
Rust
星號
6
分支
2
平均合併
1 天 3 小時
30 天內合併 PR
42

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

elastos/elastos-runtime 的其他 Issue

查看 elastos/elastos-runtime 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。