Merge main into fase-9: SQLite test databases in memory on the CI
ci / test (postgres) (push) Failing after 6m53s
ci / test (sqlite) (push) Failing after 5m26s
ci / image (push) Skipped
ci / test (postgres) (pull_request) Failing after 7m47s
ci / test (sqlite) (pull_request) Canceled after 1m49s
ci / image (pull_request) Canceled after 0s

The CI of Phase 9 failed on seven tests that start the server on a SQLite
file: on the runner's disk the migrations alone took 24 seconds, past the
30-second start limit. PR #110 (ADR 0019), now in main, keeps the test
databases in a tmpfs folder on the CI. STATE.md no longer lists #110 as
waiting for the user.

refs #75

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-03 12:51:40 +01:00
commit 4aea2d0be7
4 files changed
+43 -4

No files matched your search

+11 -2
View File
@@ -439,8 +439,17 @@ public sealed class ServerTests
var (env, postgres) = await ServerHarness.DockerOnEngineAsync();
await using var engine = postgres;
await using var server = await ServerHarness.StartAsync("docker", env);
var health = await server.Http.GetFromJsonAsync<HealthResponse>(new Uri("/health", UriKind.Relative));
Assert.AreEqual("ok", health!.Status);
// A computer stopped for more than the five seconds of the check is told unhealthy, as it should: here the
// answer that counts is the one it settles on, within thirty seconds.
HealthResponse? health = null;
for (var watch = System.Diagnostics.Stopwatch.StartNew(); health?.Status != "ok" && watch.Elapsed < TimeSpan.FromSeconds(30); await Task.Delay(100))
{
using var response = await server.GetAsync("/health");
health = await response.Content.ReadFromJsonAsync<HealthResponse>();
}
Assert.AreEqual("ok", health!.Status, string.Join(", ", health.Checks!.Select(c => c.Key + " " + c.Value)));
Assert.AreEqual("ok", health.Checks!["database"]);
Assert.AreEqual("ok", health.Checks["scheduler"]);
}