Commit 3b218a2
Fix integration tests failing in CI due to QueueInitializerService (#56)
* Fix QueueInitializerService crashing test host in CI
The previous attempt removed QueueInitializerService by ImplementationType,
but in .NET 10 factory-registered hosted services have null ImplementationType
so the lookup never matched.
The correct fix is to prevent the service being registered in the first place:
- AddMessageQueues now short-circuits when ConnectionString is empty
- ApiFactory overrides MessageQueue:ConnectionString to "" via in-memory config
so QueueInitializerService is never registered when tests run
Also reverts the now-unnecessary InternalsVisibleTo.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add Azurite service to CI and revert dead config override
ConfigureAppConfiguration in WebApplicationFactory does not apply before
WebApplication.CreateBuilder() processes appsettings.Development.json, so
the connection-string override added in the previous commit was a no-op.
The correct fix: run Azurite as a service container in CI so that
QueueInitializerService.StartAsync succeeds, mirroring the local dev
environment where Azurite is already expected to be running.
Also reverts the non-functional ConfigureAppConfiguration block and its
unused using directive from ApiFactory.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix Azurite API version mismatch in CI
Azure.Storage.Queues 12.25.0 uses API version 2026-02-06, which the
mcr.microsoft.com/azure-storage/azurite image does not yet support.
Switched from a service container (which can't receive command arguments)
to a docker run step so we can pass --skipApiVersionCheck. This tells
Azurite to serve requests regardless of API version, which is fine for
the test environment.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2393161 commit 3b218a2
4 files changed
Lines changed: 15 additions & 9 deletions
File tree
- .github/workflows
- backend
- src/SkillMatrixLlm.Api
- Extensions
- tests/SkillMatrixLlm.Api.IntegrationTests/Fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
| |||
0 commit comments