Fase 13 — Campionato: unità di lavoro, piano e statistica (#188)
The tournament judge before the contenders (ADR 0029): the trial judge split into resumable work units on a pool of low-priority workers, the common count of trials and field statistics, the control against chance on surrogate prices, and the immutable tournament plan with a final tract read once. refs #122, refs #123, refs #124, refs #125, refs #126 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #188.
This commit is contained in:
1 parent
e0a438a0b2
commit
cfa2a4da0e
31 files changed
+4776
-225
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Net.Http.Json;
|
||||
using Anubis.Server;
|
||||
@@ -37,10 +38,12 @@ public sealed class HealthEndpointTests
|
||||
return (await response.Content.ReadFromJsonAsync<HealthResponse>())!;
|
||||
}
|
||||
|
||||
// Up to 30 seconds of wall time: on a busy test runner the engine can take more than ten to start.
|
||||
async Task UntilAsync(string status, string loop)
|
||||
{
|
||||
HealthResponse? last = null;
|
||||
for (var i = 0; i < 100; i++)
|
||||
var deadline = Stopwatch.StartNew();
|
||||
while (last is null || deadline.Elapsed < TimeSpan.FromSeconds(30))
|
||||
{
|
||||
last = await HealthAsync();
|
||||
if (last.Status == status && last.Checks!.GetValueOrDefault("motore") == loop)
|
||||
|
||||
Reference in new issue
Block a user