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
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:
1 parent
30a5b03f37
commit
255e149087
306 files changed
+2023
-206
No files matched your search
@@ -22,33 +22,32 @@ dotnet run --project src/Chronos.Tools -- screenshots diff out/screenshots --out
|
||||
## The pictures are reproducible
|
||||
|
||||
The capture runs on sample data whose clock stands at `SampleData.Now` (2026-10-02 10:18 UTC), in English with English
|
||||
formats and with animations off, so the same code draws the same pixels on any day. Two things still come from the
|
||||
machine:
|
||||
|
||||
- the time zone: times are shown in local time, and the baselines are made on the Windows runner of CI's `windows` job
|
||||
(`WINDOWS_RUNNER`), which compares them in its own time zone;
|
||||
- a few measured values: the server's response time and the time and duration of the last sync comparison. They change
|
||||
a few dozen pixels, well inside the allowed fraction.
|
||||
formats and with animations off, so the same code draws the same pixels on any day. What the screens measure on
|
||||
the machine is shown as fixed sample values while the clock is frozen (`AppClock`): free space (1.2 TB), the
|
||||
server's response time (12 ms) and the time and duration of the last sync comparison. Two things still come from the
|
||||
machine: the time zone (times are shown in local time; the baselines are made in the development PC's, Europe/Rome,
|
||||
which the Windows runner must share) and the fonts and scaling of Windows itself.
|
||||
|
||||
## Adding or updating baselines
|
||||
|
||||
Take them from CI, never from another PC (fonts, scaling and the time zone differ). On the Windows runner, every
|
||||
same-repository pull request pushes its screenshots to the `ci-screenshots` branch (one commit, the PNGs at its root).
|
||||
After checking them:
|
||||
Capture them on the development PC, the one where the Windows runner is registered (fonts, scaling and the time zone
|
||||
differ per machine), from a Release build of the branch that changes the screens:
|
||||
|
||||
```
|
||||
git fetch origin ci-screenshots
|
||||
git worktree add ../ci-screenshots origin/ci-screenshots
|
||||
dotnet run --project src/Chronos.Tools -- screenshots accept ../ci-screenshots
|
||||
git worktree remove ../ci-screenshots
|
||||
dotnet build Chronos.slnx -c Release
|
||||
src/Chronos.App/bin/Release/net10.0-windows/Chronos.exe --capture out/screenshots
|
||||
src/Chronos.Uploader/bin/Release/net10.0-windows/Chronos.Uploader.exe --capture out/screenshots
|
||||
src/Chronos.Setup/bin/Release/net10.0-windows/Chronos.Setup.exe --capture out/screenshots
|
||||
dotnet run --project src/Chronos.Tools -- screenshots diff out/screenshots
|
||||
dotnet run --project src/Chronos.Tools -- screenshots accept out/screenshots
|
||||
```
|
||||
|
||||
`screenshots accept <dir>` copies every PNG of `<dir>` here. Commit only the screens whose change is intended, and delete
|
||||
the baseline of a screen that no longer exists.
|
||||
the baseline of a screen that no longer exists. If the Windows runner is ever registered on another PC, accept a new
|
||||
set captured there in one commit.
|
||||
|
||||
## The first baselines
|
||||
|
||||
None is committed yet. Screenshots captured before the capture was made reproducible cannot serve: their times and
|
||||
dates follow the moment they were taken (a job finished at "12:18 AM", sample sequences dated from that day). The first
|
||||
baselines are accepted, all at once, from the `ci-screenshots` commit of the first green `windows` job run whose code
|
||||
captures at `SampleData.Now`; from that commit on, every screen is gated.
|
||||
The first set (156 screens) was captured on the development PC on 2026-11-04 (owner review 3, R2), at `SampleData.Now`,
|
||||
and is committed with the ports fix of `v0.1.0-rc.9`. Until a Windows runner is registered, CI skips the `windows` job
|
||||
and nothing compares them: run `screenshots diff` locally before a pull request that touches a screen.
|
||||
Reference in new issue
Block a user