Distinguish expected script failures from unexpected errors
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by comparing the script execution paths with NetBox's netbox/netbox/jobs.py and its existing Job statuses and handling. Done means AbortScript produces Failed, unhandled exceptions produce Errored, diagnostics and log sanitization remain useful, rollback behavior is documented, and log_failure() retains its logging-only semantics.
索引モデルが issue の本文から書いたものです。
説明
Plugin Version
v0.0.1
Proposed functionality
Use the final Job status to distinguish success, an intentional refusal, and an unexpected error. AbortScript should result in Failed, while an unhandled exception should result in Errored. Both currently produce a failed Job.
Apply this consistently across execution paths, preserve useful diagnostics and log sanitization, and document the rollback behavior.
Keep log_failure() as a logging operation unless a separate compatibility decision changes it. This status change should not give logging calls new transaction semantics.
Use case
A deployment script may correctly stop because a prerequisite is missing. Operators and automation need to distinguish that outcome from a programming error without reading the entire log.
Related request: netbox-community/netbox#22951.
External dependencies
Reuse the existing statuses and handling in NetBox's Job runner. No new package or service is expected.
- 主要言語
- Python
- スター
- 8
- フォーク
- 0
- 平均マージ
- 9時間 34分
- マージ済み PR(30日)
- 32
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
app: scripts status: backlog type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
netbox-community/netbox-scripts#80 ·
メンテナーはふだん 1 日以内に返信
-
Failed REST uploads expose internal error details対応中かも @pheus が 2 日前に担当しました。 オープンapp: scripts severity: medium status: accepted type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
netbox-community/netbox-scripts#77 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
netbox-community/netbox-scripts#76 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
netbox-community/netbox-scripts#74 ·
メンテナーはふだん 1 日以内に返信
-
Correct the release checklist's tag and publishing steps対応中かも @pheus が 7 日前に担当しました。 オープンapp: scripts status: accepted type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
netbox-community/netbox-scripts#68 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
request-theme
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
LizardByte/ThemerrDB#9883 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Project-MONAI/MONAI#9258 ·
メンテナーはふだん 3 日以内に返信
-
catalog:deprecation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
surendranb/free-inference#31 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fritzprix/libr-agent#2612 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage presubmit-gate
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
gke-labs/kube-agents#5001 ·
メンテナーはふだん 1 日以内に返信