Flaky test: portCheck assumes the TCP side of a random UDP port is free
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- electron, typescript
- 領域
- testing
調査の方向性
まず tests/portCheck.test.ts を確認し、「sees a udp port that is bound」テストと、ポートの取得方法を調べてください。TCP のアサーションを削除するか、提案されている再試行ループを使って、両方のプロトコルを同じポートにバインドしてください。ポートチェックのテストを実行し、別の TCP ソケットが選択されたポートを使用する可能性がある状況でも、安定して成功することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
tests/portCheck.test.ts > "sees a udp port that is bound" failed twice today on my machine, then passed on rerun.
The test binds UDP on port 0 (any free port), then checks isPortFree(port, 'tcp') is true because "tcp and udp ports are separate". That's true for our socket, but the OS only promised the UDP port was free. Something else on the PC can have that same number bound on TCP (Windows hands out ephemeral ports from the same range for both), and then the assertion fails.
Fix idea: drop the TCP assertion from this test, or pick the port by first binding TCP and UDP on the same number in a short retry loop so the test owns both sides.
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 0
- 平均マージ
- 2分
- マージ済み PR(30日)
- 35
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
A21-devs/Virtual-Machine-Manager のほかの issue
-
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 日以内に返信
-
enhancement ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
A21-devs/Virtual-Machine-Manager#72 ·
メンテナーはふだん 1 日以内に返信
A21-devs/Virtual-Machine-Manager の issue をすべて見る
似ている issue
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFD対応中かも @goranai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vercel-labs/ui#1494 ·
メンテナーはふだん 1 日以内に返信
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing対応中かも @chaitanya0305 が今日担当しました。 オープンbug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
BaaRai/ARTEX#652 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信