Docs: document `doctor --json` output and exit codes for monitoring scripts

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, shell

調査の方向性

hub/cloudbridge_hub/doctor.pyを読んで--jsonの出力フィールドと終了コードを特定し、次にhub/tests/test_selfhost.pyを確認して既存のテストパターンを調べます。docs/install/hub-docker.mdまたは新しいdocs/operations.mdにドキュメントアドレスを使った例を記載し、終了コード2に対するローカルなシェルアラートの例を追加して、hub/tests/配下のテストでトップレベルのJSONキーを固定します。

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

説明

backend difficulty: beginner documentation good first issue self-hosting

Context

cloudbridge-hub doctor exits 0/1/2 and supports --json, which is handy for cron or monitoring, but the JSON shape
is only visible in the code.

Acceptance criteria

  • A section in docs/install/hub-docker.md (or a new docs/operations.md) with an example JSON output using
    documentation addresses, the meaning of each field and the exit codes.
  • A small example shell snippet that alerts locally on exit code 2.
  • A test in hub/tests/ that pins the top-level JSON keys, so the docs stay correct.

Pointers

  • hub/cloudbridge_hub/doctor.py, hub/tests/test_selfhost.py
主要言語
Kotlin
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

ft-dev-org/cloudbridge-oss のほかの issue

ft-dev-org/cloudbridge-oss の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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