feat: screenshot baselines from the development PC, fixed capture values, ports strings in all languages
The owner chose to capture the baselines on the development PC (owner review 3, R2): 156 screens go to tests/visual/baselines and CI no longer pushes a ci-screenshots branch. While --capture freezes AppClock, free space, a server's latency and the last sync are fixed sample values; they moved the Server and Import screens past the diff tolerance at random. The 22 new or changed Admin strings are translated into the 36 other languages, and the request file records the owner's text and answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
|
||||
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 171 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 173 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 236 KiB |
|
After Width: | Height: | Size: 229 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 211 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 275 KiB |
|
After Width: | Height: | Size: 270 KiB |
|
After Width: | Height: | Size: 420 KiB |
|
After Width: | Height: | Size: 400 KiB |
|
After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 316 KiB |
|
After Width: | Height: | Size: 309 KiB |
|
After Width: | Height: | Size: 226 KiB |
|
After Width: | Height: | Size: 220 KiB |
|
After Width: | Height: | Size: 249 KiB |
|
After Width: | Height: | Size: 244 KiB |
|
After Width: | Height: | Size: 266 KiB |
|
After Width: | Height: | Size: 259 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 228 KiB |
|
After Width: | Height: | Size: 223 KiB |
|
After Width: | Height: | Size: 241 KiB |
|
After Width: | Height: | Size: 235 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 75 KiB |