fix: owner review 3 phase 1: server ports for clients, screenshot baselines (#16)
CI / Build and test (push) Successful in 9m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 9s
Release / Build, test and publish (push) Successful in 14m4s
CI / PostgreSQL 16 integration (push) Successful in 8m26s
CI / PostgreSQL 17 integration (push) Successful in 8m43s
CI / Docker image (push) Successful in 50s
Release / Server image (push) Successful in 1m23s

Clients could not reach a server in a container whose ports are published as other host ports: the panel showed the container's ports, the template had no public HTTP port, and a bare host meant port 443. Public ports become panel settings, the panel shows the client address, both clients default to 8443, and an address that answers as another service is named as not a Chronos server (its certificate never offered for trust). The screenshot baselines are captured on the development PC and committed; measured values are fixed while the capture runs.

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 #16.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-04 12:33:22 +01:00
1 parent 30a5b03f37
commit 255e149087
306 files changed
+2023 -206

No files matched your search

+17 -1
View File
@@ -3,15 +3,31 @@ namespace Chronos.App.Infrastructure;
/// <summary>
/// Today's date for screens that lay themselves out around it (the Library timeline's years, the months of the
/// Archive heatmap). <c>--capture</c> freezes it at the sample's moment, so the screenshots draw the same pixels on
/// any day and the pixel diff against their baselines stays meaningful.
/// any day and the pixel diff against their baselines stays meaningful. While frozen, what the screens measure on this
/// machine (free space, a server's latency, when a comparison ran) is shown as fixed sample values too.
/// </summary>
public static class AppClock
{
private static DateTimeOffset? _frozen;
/// <summary>Free space every volume shows while frozen.</summary>
public const long FrozenFreeBytes = 1_200_000_000_000;
/// <summary>The local date: the frozen moment's while frozen, the computer's otherwise.</summary>
public static DateTime Today => (_frozen?.ToLocalTime().DateTime ?? DateTime.Now).Date;
/// <summary>True while frozen (screenshots).</summary>
public static bool IsFrozen => _frozen is not null;
/// <summary>When something happened, as shown: the frozen moment while frozen.</summary>
public static DateTimeOffset Shown(DateTimeOffset moment) => _frozen ?? moment;
/// <summary>A measured duration as shown: <paramref name="sample"/> while frozen.</summary>
public static TimeSpan Shown(TimeSpan measured, TimeSpan sample) => _frozen is null ? measured : sample;
/// <summary>Measured free bytes as shown: <see cref="FrozenFreeBytes"/> while frozen (unknown stays unknown).</summary>
public static long? ShownFree(long? measured) => _frozen is null || measured is null ? measured : FrozenFreeBytes;
/// <summary>Stops the clock at <paramref name="moment"/> for the rest of the process (screenshots only).</summary>
public static void Freeze(DateTimeOffset moment) => _frozen = moment;
}
@@ -110,7 +110,7 @@ public static class ArchiveLocations
var root = Path.GetPathRoot(Path.GetFullPath(path));
if (string.IsNullOrEmpty(root)) return null;
var drive = new DriveInfo(root);
return drive.IsReady ? drive.AvailableFreeSpace : null;
return AppClock.ShownFree(drive.IsReady ? drive.AvailableFreeSpace : null);
}
catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or ArgumentException or NotSupportedException)
{