A crashed long-running action shows as `stopped` and the instance stays `ready`
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #288 @Spheroman による — マージ済み
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by tracing how newgit supervises long-running actions and builds the status, start, and action log output; the issue does not name source files or tests. Compare an action that exits on its own with one stopped by newgit, then check that the exit reason is logged, status reflects the dead process, and an exited autostart action can be started again.
索引モデルが issue の本文から書いたものです。
説明
A long-running action that exits on its own (it crashes, gets OOM-killed, or someone kills it) is reported exactly like one that was stopped on purpose, and the instance stays ready.
Repro
newgit spawn race # web.start autostarts
pkill -f 'http.server 18001' # simulate a crash
newgit status race # race ... ready ... web:stopped
newgit action web.stop race # compare: an intentional stop
newgit status race # race ... ready ... web:stopped (identical)
newgit start race # Nothing stopped by `newgit stop` for `race`
The action's log ends at the command line. There's no exit code or signal, so nothing anywhere says the server died.
For an agent driving several instances, ready is the signal to start testing against WEB_URL. Here it's a dead port.
Expected
- Record how a supervised process ended: exit code or signal, and whether newgit stopped it. Append that to its log (
[newgit] exited 1/[newgit] killed by SIGKILL). statusshows a process that exited without being asked asexited (1)orcrashed, and anautostartresource in that state makes the instancenot ready, with a retry hint (newgit action web.start).newgit startrestarts autostart actions that died, not only whatnewgit stopstopped. Or a separatenewgit restart.
Environment: newgit 0.7.0 (06fc371005bc), macOS (Darwin 27.0.0), APFS, git 2.55.0. Minimal scratch project: one secret tracker env owning .env.local, a deps install (hash/recompute), and a web process (python3 -m http.server $WEB_PORT, autostart) with a [[render]] into app.conf.
- 主要言語
- Rust
- スター
- 0
- フォーク
- 0
- 平均マージ
- 7時間 20分
- マージ済み PR(30日)
- 80
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Spheroman/newgit のほかの issue
-
Port allocation order within a resource is unspecified対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdocumentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Spheroman/newgit#59 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
Spheroman/newgit#289 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Symlinks: a render writes through a link, a check-then-use race, and a bad link blocking checkoutオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
Spheroman/newgit の issue をすべて見る
似ている issue
-
bug priority: low ui
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
storytold/photocraft#10370 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:doc bug in progress needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bherbruck/solvecraft#9634 · コメント 2 件 · リアクション 1 件 ·
-
inflate: total_in uses plain += on c_ulong (32-bit on Windows), panics in debug for streams > 4 GiBオープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
trifectatechfoundation/zlib-rs#570 · コメント 1 件 ·
-
bug discord-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
LanternOps/breeze#10755 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
aranya-project/aranya#803 ·