Feature: Enable use of semantic exit codes for adapted PSDSC resources
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
lib/dsc-lib/src/dscresources/adapted_resource_manifest.rs と RFC0001/PR #1319 から始め、適応されたリソースが現在どのように終了コードを表現しているかを追跡します。セマンティックコードに対するクラスおよびマニフェストのコントラクトを定義し、0/1 のデフォルト動作を含め、リソース操作で特定の失敗コードを表面化できることを検証します。
索引モデルが issue の本文から書いたものです。
説明
Summary of the new feature / enhancement
As a resource author implementing DSC resources as PowerShell classes,
I want to be able to provide semantic exit codes for my users,
so that my resources can fit into the semantics of DSC more correctly.
Currently, adapted PSDSC resources always return an exit code of 1 for an operational failure. There is no way for a resource implemented as a PowerShell class to:
- Indicate a set of exit codes and their meaning for DSC from the class implementation.
- Indicate a set of exit codes and their meaning for DSC from the adapted resource manifest.
- Surface that the operation is a failure and should exit with a specific code from any given resource operation.
[!NOTE]
This problem affects other adapters as well, but we only have the PowerShell adapters published.
Proposed technical implementation details (optional)
We should add an exitCodes field to the adapted resource manifest to ensure that adapted resources can propagate semantically defined exit codes to DSC and higher order tools.
I can address the specifics of how to retrieve the exit codes from a class definition in RFC0001, but I think we need a way to properly indicate a semantic exit code from within a class method. I can't see an immediately obvious way to do this without either providing a [DscOperationException] class or requiring the resource author to implement a custom exception that includes both an exit code and message that their resource class throws.
When an adapted resource doesn't provide semantic exit codes, we should treat the exit codes the same way we do for other resources (0 for success, 1 for failure). This is an opt-in enhancement for all resources, but currently adapted resource authors can't participate in these semantics.
- 主要言語
- Rust
- スター
- 536
- フォーク
- 76
- 平均マージ
- 2日 28分
- マージ済み PR(30日)
- 17
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/DSC のほかの issue
-
Issue-Enhancement Needs Triage
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/DSC#1737 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PowerShell/DSC#1736 ·
メンテナーはふだん 1 日以内に返信
-
`directives.version` is checked against dsc-lib's crate version (3.2.0), not the running dsc version対応中かも @michaeltlombardi が 3 日前に担当しました。 オープンIssue-Bug
難易度 3/5 半日 初心者へのやさしさ 74/100
PowerShell/DSC#1735 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Make it impossible to accidentally define a nonfunctional secret extension対応中かも @Gijsreyn が今日担当しました。 オープンIssue-Enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
PowerShell/DSC#1729 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Feature Request: Support dsc functions in executable args対応中かも @SteveL-MSFT が 14 日前に担当しました。 オープンIssue-Enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 62/100
PowerShell/DSC#1722 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
ajeetraina/awesome-docker-sbx#220 ·
-
`helios / deploy`: switch zone wait in `deploy.sh` has almost no headroom over healthy startup timesオープンTest Flake
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
oxidecomputer/omicron#11453 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
[Feature] 设置里面的同步功能オープンenhancement user-priority/P2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
agent:triaged bug bughunt pm:npm priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
SocketDev/socket-patch#1127 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信