Declare target effects and gate them at plan time
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
- 領域
- build-system
調査の方向性
まず、対象モデル、計画、Runner のフローと describe --json エントリポイントを追跡し、エフェクト契約を選ぶ前に plugin SDK と issue #100 を確認します。完了の条件は、targets がエフェクトを宣言し、計画が実行前に許可されていない依存関係を target 固有のエラーで拒否し、describe --json がそれらのエフェクトを報告することです。
索引モデルが issue の本文から書いたものです。
説明
Problem
Fallout targets range from writing into artifacts/ to publishing packages to nuget.org and tagging releases. Nothing in the target model distinguishes them. A caller that wants to run a build without changing anything outside the working tree has no way to ask which targets are safe.
For an automated caller the only safe policy is therefore to never run the build unattended, which removes most of the value. The Continuous Delivery direction (milestone #8) adds deployment targets, which widens the gap.
Outcome
A target declares the class of effect it has, and the runner refuses to reach a target whose effect class was not granted.
Sketch:
Target Compile => _ => _
.Effect(Effects.LocalFilesystem)
.Executes(...);
Target PushToNuGet => _ => _
.Effect(Effects.RemoteMutation, Effects.Irreversible)
.Executes(...);
fallout run Pack --allow local succeeds. A plan that reaches a RemoteMutation target fails during planning, before any target executes, naming the target and the grant it needs.
Acceptance criteria
- Targets can declare one or more effect classes
- Effect classes are checked at plan time, so a run stops before the first target executes
- The error names the target and the grant required
- Effect classes propagate through dependencies: depending on a remote-mutation target requires that grant
-
describe --jsonexposes each target's effect classes
Open questions
- Is an undeclared target permissive or restrictive by default? Restrictive is safer, but changes behaviour for every existing build.
- Fixed set of effect classes, or an open set that plugins can extend?
- Does the contract belong in the plugin SDK, given #100 (plugin discovery and load model) has to settle a related trust question?
Notes
Useful outside automation too: --allow remote as a CI-only flag prevents accidental publishes from a developer machine.
- 主要言語
- C#
- スター
- 169
- フォーク
- 21
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Fallout-build/Fallout のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Fallout-build/Fallout#708 ·
メンテナーはふだん 5 日以内に返信
-
.\build.ps1 in its current state isn't capable for :add-package command対応中かも @ITaluone が 34 日前に担当しました。 オープンbug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Fallout-build/Fallout#670 ·
メンテナーはふだん 5 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Fallout-build/Fallout#669 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
CD enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Fallout-build/Fallout#649 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Fallout-build/Fallout#630 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 5 日以内に返信
Fallout-build/Fallout の issue をすべて見る
似ている issue
-
area-signalr
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dotnet/aspnetcore#69842 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 2 日以内に返信
-
bug needs-triage
難易度 2/5 1時間未満 初心者へのやさしさ 78/100
microsoft/microsoft-ui-reactor#1373 ·
メンテナーはふだん 1 日以内に返信
-
Client customer-reported KeyVault needs-team-attention question Service Attention
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Azure/azure-sdk-for-net#63861 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信