Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

A crashed long-running action shows as `stopped` and the instance stays `ready`

クローズ
#261 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

関連するプルリクエストがすでにマージされています。

  • #288 @Spheroman による — マージ済み

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, rust
領域
backend, cli

調査の方向性

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).
  • status shows a process that exited without being asked as exited (1) or crashed, and an autostart resource in that state makes the instance not ready, with a retry hint (newgit action web.start).
  • newgit start restarts autostart actions that died, not only what newgit stop stopped. Or a separate newgit 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Spheroman/newgit のほかの issue

Spheroman/newgit の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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