Smoke test isn't isolated from the real settings and the running app

オープン 初心者向け
#91 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, node.js, typescript

調査の方向性

scripts/smoke.mjs と、それが実装している npm run smoke スクリプトから始めます。設定とインスタンスロックを分離するように、一時的な --user-data-dir を Electron に渡し、SMOKE 行が出力されない場合に診断を追加します。完了とは、スモーク実行が実際の設定を読み込ま也不再、開いている開発インスタンスと競合しなくなることです。

索引モデルが issue の本文から書いたものです。

説明

ci tests

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分
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

A21-devs/Virtual-Machine-Manager のほかの issue

A21-devs/Virtual-Machine-Manager の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。