Seed local Azure Blob Storage from fixture files in the Floci AppHost
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by reading the existing CommunityToolkit.Aspire.Hosting.Floci implementation of AddFlociAzure() and WithStorage(), then inspect how other Aspire resources wait for readiness and expose completion dependencies. AddBlobFixtures() should seed one container from an AppHost relative directory in local run mode, skip existing blobs, and report missing directories or upload failures clearly. Add an integration test that checks fixture availability after completion and verifies a second run preserves existing blobs.
索引モデルが issue の本文から書いたものです。
説明
Related to an existing integration?
Yes
Existing integration
CommunityToolkit.Aspire.Hosting.Floci
Overview
When developing an application that processes blobs, I'd like a fresh checkout to come with the same sample files every time. Floci's WithStorage() gives the AppHost a local Azure Storage resource, but getting files into it still requires a manual upload or a separate seeding utility. That makes it harder for us to run the same ingestion scenario locally.
I propose adding AddBlobFixtures() to the Floci Azure Storage resource. During a local run, it would wait for storage to become ready, create the target blob container if needed, and upload files from an AppHost relative directory. It would return a resource that dependent projects can wait on, so they can start once the fixtures are available.
Usage example
var storage = builder.AddFlociAzure("floci").WithStorage();
var fixtures = storage.AddBlobFixtures(
containerName: "submission-documents",
sourceDirectory: "Fixtures/Submissions");
builder.AddProject<Projects.IngestionWorker>("ingestion")
.WithReference(storage)
.WaitForCompletion(fixtures);
Breaking change?
No
Alternatives
Upload the files manually through a storage explorer, or add a small seeding project that uses the Azure Blob Storage SDK. A seeding project works, but each AppHost has to wire up the same container creation, file upload and startup ordering.
Additional context
Id scope the first PR to one fixture directory and one blob container per call, targeting the local Floci emulator in run mode. If a blob already exists, the seeder would skip it so restarting the AppHost preserves local changes. A missing fixture directory or failed upload would fail the seeding resource with a clear error. I'd add an integration test that verifies the files are available after the seeder completes and that a second run preserves existing blobs.
The proposed API builds on the existing Floci WithStorage() resource. I’d be happy to adjust the API and scope based on feedback.
Help us help you
Yes, I'd like to be assigned to work on this item
- 主要言語
- C#
- スター
- 635
- フォーク
- 207
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 131
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommunityToolkit/Aspire のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CommunityToolkit/Aspire#2593 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 22/100
CommunityToolkit/Aspire#2596 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
CommunityToolkit/Aspire#2533 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
CommunityToolkit/Aspire#2436 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[SqlProjects] Improve checksum cheks対応中かも @ErikEJ が 15 日前に担当しました。 オープン
CommunityToolkit/Aspire#2435 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
CommunityToolkit/Aspire の issue をすべて見る
似ている issue
-
要トリアージ
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26709 ·
メンテナーはふだん 1 日以内に返信
-
area-Tools-ILLink untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
dotnet/runtime#138255 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
area-fundamentals bug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dotnet/extensions#7979 ·
メンテナーはふだん 1 日以内に返信