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>
This commit is contained in:
1 parent
2585b5d45f
commit
7273eec2bb
276 files changed
+893
-121
No files matched your search
+2
-18
@@ -254,7 +254,7 @@ jobs:
|
||||
runs-on: ${{ vars.WINDOWS_RUNNER || 'windows' }}
|
||||
timeout-minutes: 90
|
||||
permissions:
|
||||
contents: write
|
||||
contents: read
|
||||
# act finds a shell on PATH, where Git for Windows puts no bash.exe by default (and WSL's launcher may come
|
||||
# first): Git Bash by its path, whose wrapper also puts its tools (base64, printf) on PATH.
|
||||
defaults:
|
||||
@@ -294,23 +294,7 @@ jobs:
|
||||
done
|
||||
ls out/screenshots
|
||||
|
||||
# Same-repository pull requests: the pictures go to the ci-screenshots branch (one commit, overwritten each run),
|
||||
# where tests/visual/baselines/README.md takes new baselines from. Before the diff, which may fail the job.
|
||||
- name: Publish to the ci-screenshots branch
|
||||
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
working-directory: out/screenshots
|
||||
env:
|
||||
TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
git init -q -b ci-screenshots
|
||||
git config user.name "chronos-ci"
|
||||
git config user.email "chronos-ci@noreply.invalid"
|
||||
git add -A
|
||||
git commit -q -m "Screenshots of ${{ github.event.pull_request.head.sha }}"
|
||||
git -c http.extraheader="Authorization: basic $(printf 'x-access-token:%s' "$TOKEN" | base64 -w0)" push -q -f \
|
||||
"${{ github.server_url }}/${{ github.repository }}.git" HEAD:refs/heads/ci-screenshots
|
||||
|
||||
# BRIEF §20.2 visual regression against tests/visual/baselines (a warning only until baselines are committed).
|
||||
# BRIEF §20.2 visual regression against tests/visual/baselines, captured on the development PC (its README).
|
||||
- name: Screenshot diff
|
||||
if: ${{ !cancelled() }}
|
||||
run: dotnet src/Chronos.Tools/bin/Release/net10.0/Chronos.Tools.dll screenshots diff out/screenshots --baseline tests/visual/baselines --out out/screenshot-diff
|
||||
|
||||
Reference in new issue
Block a user