Fase 10 — Nuova rotta: solo Docker (#184)
ci / test (postgres) (push) Successful in 4m50s
ci / test (sqlite) (push) Failing after 4m21s
ci / image (push) Skipped

ADR 0021-0026 for the new course of 2 December 2026, roadmap of phases 10-24. The desktop application is gone: Docker is the only form, and outside a container the server runs only for development and tests with --data-dir, on this computer only. Lighter image (829 MB to 410 MB), rotating logs, backtest and learning as one-shot commands.

refs #113 #114 #115 #78 #80 #81

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 #184.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-12-03 19:59:00 +01:00
1 parent 3c57b3e84c
commit 1bc7e067fd
96 files changed
+1433 -1606

No files matched your search

+6 -4
View File
@@ -129,14 +129,14 @@ public sealed class DiagnosticsTests
var text = await DiagnosticsReporter.BuildAsync(test.Db, new DiagnosticsRequest(Start.AddMinutes(1), Start.AddHours(12), Zones.Rome)
{
LogsFolder = logs,
Setup = [new("Piattaforma", "desktop")],
Setup = [new("Dove gira", "container")],
GeneratedAt = Start.AddHours(12),
}).ConfigureAwait(false);
Assert.IsLessThanOrEqualTo(DiagnosticsReporter.MaxBytes, Encoding.UTF8.GetByteCount(text));
Assert.DoesNotContain(Hidden, text);
Assert.Contains("# Anubis · dati per l'analisi", text);
Assert.Contains("- Piattaforma: desktop", text);
Assert.Contains("- Dove gira: container", text);
Assert.Contains("Il bot è ripartito 1 volte nel periodo.", text);
Assert.Contains("Spento 1 volte", text);
Assert.Contains("Silenzi a processo acceso: 1", text);
@@ -179,9 +179,11 @@ public sealed class DiagnosticsTests
Assert.AreEqual("text/markdown", report.Content.Headers.ContentType?.MediaType);
var text = await report.Content.ReadAsStringAsync();
Assert.Contains("# Anubis · dati per l'analisi", text);
Assert.Contains("- Piattaforma: docker", text);
Assert.Contains("- Dove gira: fuori dal container, per sviluppo e prove", text);
Assert.Contains("| " + AnubisInfo.Version + " |", text, "The start sample of the running process is in the report.");
Assert.Contains("Scarica i dati per l'analisi", await server.TextAsync("/diario"));
var diary = await server.TextAsync("/diario");
Assert.Contains("Scarica i dati per l'analisi", diary);
Assert.Contains(" fuori dal container (sviluppo), acceso ", diary, "The diary says where it runs, as Settings does.");
}
private static ProcessSample Sample(DateTimeOffset at, DateTimeOffset process, double megabytes, int i) => new()