Smoke test isn't isolated from the real settings and the running app
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- electron, node.js, typescript
调研方向
从 scripts/smoke.mjs 和它实现的 npm run smoke 脚本开始。为 Electron 传入一个临时 --user-data-dir,以隔离设置和实例锁,并在未生成 SMOKE 行时添加诊断信息。完成的标准是 smoke 运行不再读取真实设置,也不再与已打开的开发实例发生冲突。
由索引模型根据 Issue 内容生成。
描述
npm run smoke gives Electron a temp VMM_DATA_ROOT, but the app still uses its normal userData folder:
- It reads the real
settings.json, so a QEMU path set in Settings on the dev machine is what the smoke test sees. Harmless today since nothing is written, but the run isn't what CI sees. - Since #87 the app takes a single instance lock. If the app (same name, so a dev build) is already open, the smoke run is the second instance, quits with code 0 and prints nothing. The script then fails with an empty line, which doesn't say why.
Passing --user-data-dir=<temp folder> to Electron from scripts/smoke.mjs should fix both: separate settings and a separate lock. The script could also say "no SMOKE line, is the app already running?" when the output is empty.
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 0
- 平均合并
- 2 分钟
- 30 天内合并 PR
- 41
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
A21-devs/Virtual-Machine-Manager 的其他 Issue
-
ui
难度 2/5 1-3 小时 新手友好度 74/100
A21-devs/Virtual-Machine-Manager#92 ·
维护者通常 1 天内回复
-
accessibility ui
难度 2/5 1-3 小时 新手友好度 76/100
A21-devs/Virtual-Machine-Manager#83 ·
维护者通常 1 天内回复
-
ui
难度 2/5 1-3 小时 新手友好度 82/100
A21-devs/Virtual-Machine-Manager#82 ·
维护者通常 1 天内回复
-
backend enhancement
难度 2/5 1-3 小时 新手友好度 78/100
A21-devs/Virtual-Machine-Manager#80 ·
维护者通常 1 天内回复
-
backend bug
难度 2/5 1-3 小时 新手友好度 86/100
A21-devs/Virtual-Machine-Manager#79 ·
维护者通常 1 天内回复
查看 A21-devs/Virtual-Machine-Manager 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
MetaMask/eth-phishing-detect#317371 ·
维护者通常 1 天内回复
-
android:player ios:player
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 92/100
erkamyaman/rust-anything#963 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
ZdruzenieSTROM/webstrom-frontend#934 ·
维护者通常 1 天内回复
-
bug(worker): detector run is marked failed and never retried when span download fails可能已有人在做 @jagrutgarg 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
traceroot-ai/traceroot#3434 · 1 条评论 ·
维护者通常 1 天内回复