Wait for the kept ports to free before the live-prototype server restarts
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with cmd_restart in plugins/planning/shared/share.py (around lines 675-689), where stop_server is followed immediately by start_server on the kept ports, then read bridge.port_free and the ensure-running check near lines 566-577 for the existing pattern. Reproduce by running test_a_restart_keeps_a_running_live_prototype in plugins/planning/shared/tests/test_share.py repeatedly. Done means restart waits on a bounded timeout for both ports to free, refuses with a message naming a still-busy port, and two new tests cover the wait and the refusal.
索引モデルが issue の本文から書いたものです。
説明
Problem
plugins/planning/shared/tests/test_share.py::TestLives::test_a_restart_keeps_a_running_live_prototype failed in CI with the server did not start: cannot start: [Errno 98] Address already in use (test_share.py:1388), in Test Python (0), job 137962517716. It passes locally (113 passed). The failing PR's diff does not touch the planning plugin.
cmd_restart (plugins/planning/shared/share.py:675-689) calls stop_server(d, s) and then, straight away, start_server(d, ports.get("guest", 0), ports.get("control", s["port"])) on the same ports. If the stopped server has not released its sockets yet, the bind fails. ensure-running (share.py:566-577) checks bridge.port_free before reusing a port. Restart cannot move to a new port the same way, because a named tunnel's ingress rule points at the guest port.
Done when
- After
stop_server,cmd_restartwaits until both kept ports are free (bridge.port_free), with a bounded timeout. If a port is still busy after the timeout, it refuses with a clear message naming the port. - A test holds the old port open briefly after stop and shows that restart waits and then binds the same ports, and a second test shows the refusal when the port stays busy.
-
test_a_restart_keeps_a_running_live_prototypepasses 20 consecutive runs locally (python3 -m pytest -q -k test_a_restart_keeps_a_running_live_prototype --count=20or a loop).
- 主要言語
- Shell
- スター
- 22
- フォーク
- 2
- 平均マージ
- 2時間
- マージ済み PR(30日)
- 960
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
melodic-software/claude-code-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
melodic-software/claude-code-plugins#19225 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
melodic-software/claude-code-plugins#17779 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
recurring
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
melodic-software/claude-code-plugins#19274 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
melodic-software/claude-code-plugins#19270 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
melodic-software/claude-code-plugins#19269 ·
メンテナーはふだん 1 日以内に返信
melodic-software/claude-code-plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nais/attest-sign#139 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
community-scripts/core#303 ·
メンテナーはふだん 1 日以内に返信
-
severity: low
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
luainkernel/lunatik#2727 ·
メンテナーはふだん 1 日以内に返信
-
[quality] release publish.mjs integrity guards have no unit test対応中かも @robarnold が今日担当しました。 オープンagent/quality stage/040-covered-by-pr testing
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
marinatedconcrete/config#1155 ·
メンテナーはふだん 1 日以内に返信
-
bug report-to-upstream
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
flatpark/flatpark#1585 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信