Seed local Azure Blob Storage from fixture files in the Floci AppHost
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C#
- Estrellas
- 635
- Forks
- 207
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 131
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CommunityToolkit/Aspire
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
CommunityToolkit/Aspire#2593 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 22/100
CommunityToolkit/Aspire#2596 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
CommunityToolkit/Aspire#2533 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
CommunityToolkit/Aspire#2436 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[SqlProjects] Improve checksum cheksPosiblemente ocupada @ErikEJ la tomó hace 15 días. Abierto
CommunityToolkit/Aspire#2435 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de CommunityToolkit/Aspire
Issues similares
-
要トリアージ
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
unoplatform/uno#26709 ·
Los mantenedores suelen responder en 1 día
-
area-Tools-ILLink untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
dotnet/runtime#138255 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
area-fundamentals bug untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
dotnet/extensions#7979 ·
Los mantenedores suelen responder en 1 día