Seed local Azure Blob Storage from fixture files in the Floci AppHost
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 635
- Fork
- 207
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 132
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommunityToolkit/Aspire
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
CommunityToolkit/Aspire#2593 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
CommunityToolkit/Aspire#2533 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CommunityToolkit/Aspire#2436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[SqlProjects] Improve checksum cheksCó thể đã có người làm @ErikEJ đã nhận 14 ngày trước. Đang mở
CommunityToolkit/Aspire#2435 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dapr store actorstate metadataĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
CommunityToolkit/Aspire#2431 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CommunityToolkit/Aspire
Issue tương tự
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itĐang mởarea: core bug help wanted ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ZaidX88/sluice#265 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: remote bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Install a C# EnvironmentĐang mở📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
A: Mapping P3: Standard T: New Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
space-wizards/space-station-14#46878 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày