Test SQLite projection writes, asynchronous handlers, and failure cleanup
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Start with src/Sqlite/src/Eventuous.Sqlite/Projections/SqliteProjector.cs and inspect its public event-handling entry point and both handler overloads. Read the existing SQLite event-store tests to find the project’s temporary-database setup, then add focused projection tests for database state, asynchronous completion, failure, cancellation, and connection reuse. Done means the acceptance criteria pass and the focused SQLite projection tests, existing SQLite suite, and projector coverage run complete.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
SqliteProjector has no recorded line coverage in the October 5, 2026 .NET 10 coverage run. Existing SQLite event-store tests do not establish that registered projection handlers correctly build and execute commands or handle failures. You can view a test coverage report I generated here: index.html
Source: SqliteProjector.cs.
Proposed tests
- Define a small read-model projector and handle an event using a synchronous command-building handler. Query a real temporary SQLite database and assert the resulting row values.
- Repeat with an asynchronous handler whose command creation is controlled by a completion signal. Verify that handling waits for it and that no row is written before it is released.
- Project multiple events and verify the resulting read-model state, including parameterized values and event-context data used by the projection.
- Make a command-building handler fail and verify that the error reaches the caller without writing a row.
- Execute an invalid SQL command and verify error propagation and that a subsequent valid projection succeeds.
- Cancel handling while an asynchronous handler is waiting. Verify cancellation propagation and that the cancelled handler's command is not executed.
Acceptance criteria
- Both handler overloads are exercised through the projector's public event-handling entry point.
- Assertions inspect real database state, not only mocked command calls.
- Asynchronous completion, handler failure, SQL failure, and cancellation have observable assertions.
- Connections are released on successful and failed handling, and subsequent valid operations remain usable.
- Tests use isolated temporary databases and clean up their resources.
- Tests do not call task or disposal extensions directly and require no Docker containers.
Validation
Run the focused SQLite projection tests and the existing SQLite suite. Collect coverage for SqliteProjector; unrelated SQL Server and PostgreSQL suites are not required for this test-only change.
- Lingua principale
- C#
- Stelle
- 512
- Fork
- 99
- Merge medio
- 5g 6h
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Eventuous/eventuous
-
MongoDB integration tests fail on newer GitHub Actions runner kernelsForse già presa @nmummau l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Eventuous/eventuous#626 · 2 commenti ·
I maintainer di solito rispondono entro 7 giorni
-
`dotnet format style --verify-no-changes` fails with naming violations and unnecessary importsForse già presa @nmummau l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
Eventuous/eventuous#624 · 1 commento ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Eventuous/eventuous#627 · 1 commento ·
I maintainer di solito rispondono entro 7 giorni
-
SQL Server: `append_events` does not need the `@inserted` table variableForse già presa @nmummau l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
Eventuous/eventuous#619 · 1 commento ·
I maintainer di solito rispondono entro 7 giorni
-
SQL Server: stream reads do one key lookup per event, and `IDX_EventsStream` duplicates `UQ_StreamIdAndStreamPosition`Forse già presa @nmummau l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 18/100
Eventuous/eventuous#618 · 1 commento ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di Eventuous/eventuous
Issue simili
-
bug ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CodeForFire/lagebuch#714 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
dimitar-radenkov/Pointframe#294 ·
I maintainer di solito rispondono entro 1 giorno
-
Batteries can't be swappedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
Okabintaro/SubmersedVR#253 ·
-
S: Untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
I maintainer di solito rispondono entro 2 giorni
-
maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
hyjinx-emu/Hyjinx#398 ·
I maintainer di solito rispondono entro 1 giorno