ci: redraw the coverage dashboard on each push to main #297

Merged
Kha73k merged 3 commits from upstream-pr/302 into main 2026-11-22 03:56:35 +00:00
Kha73k commented 2026-11-21 21:32:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Kha73k on 2026-11-21T21:32:45Z.


Keeps the README coverage graphic current. On pushes to main, the Windows job writes CTest's JUnit file, runs form_coverage.py and coverage_svg.py, and uploads the SVG. A new coverage-dashboard workflow runs when that run succeeds. It copies the SVG to a coverage-dashboard branch that holds only that file. It runs no repository code, is the only job with contents: write, and skips a run whose commit is no longer the head of main. The README loads the image from that branch, so the committed snapshot is removed. Builds on #294.

Tested on the fork's main at 149e971: Windows checks drew and uploaded the SVG. Coverage dashboard then published it as a github-actions[bot] commit. The image is served as image/svg+xml and reads x64 49/948, gfx1013 61/1968 on windows-2025 WARP. A failed checks run leaves the publish job skipped.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6534649385 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/302). Originally posted by [Kha73k](https://github.com/Kha73k) on 2026-11-21T21:32:45Z. --- Keeps the README coverage graphic current. On pushes to main, the Windows job writes CTest's JUnit file, runs `form_coverage.py` and `coverage_svg.py`, and uploads the SVG. A new `coverage-dashboard` workflow runs when that run succeeds. It copies the SVG to a `coverage-dashboard` branch that holds only that file. It runs no repository code, is the only job with `contents: write`, and skips a run whose commit is no longer the head of main. The README loads the image from that branch, so the committed snapshot is removed. Builds on #294. Tested on the fork's main at 149e971: [Windows checks](https://github.com/Kha73k/Xbox2Windows-fork/actions/runs/44950735936) drew and uploaded the SVG. [Coverage dashboard](https://github.com/Kha73k/Xbox2Windows-fork/actions/runs/44951935190) then published it as a github-actions[bot] commit. The image is served as `image/svg+xml` and reads x64 49/948, gfx1013 61/1968 on windows-2025 WARP. A failed checks run leaves the publish job skipped. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:42:19 +00:00
R0Y00 commented 2026-11-24 06:48:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T21:57:10Z.


Please keep the committed README snapshot and scope a revision to producing a downloadable SVG artifact in the existing CI run. That gives contributors a current measurement without adding a write-capable workflow, a publication branch or force pushes for a generated graphic. The separate publishing job and README branch URL are outside the approved scope.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7069834654 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/302#issuecomment-7069834654). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T21:57:10Z. --- Please keep the committed README snapshot and scope a revision to producing a downloadable SVG artifact in the existing CI run. That gives contributors a current measurement without adding a write-capable workflow, a publication branch or force pushes for a generated graphic. The separate publishing job and README branch URL are outside the approved scope.
R0Y00 commented 2026-11-24 06:48:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:57:07Z.


Merged the artifact-only revision. The reviewed workflow has one changed file and uploads the SVG from the existing Windows job. I downloaded coverage-dashboard from run 44982495550, parsed the SVG, and checked its fixture coverage and measured-commit label. The committed README snapshot stays in place. Thanks for the rendering and upload steps.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7073886141 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/302#issuecomment-7073886141). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T03:57:07Z. --- Merged the artifact-only revision. The reviewed workflow has one changed file and uploads the SVG from the existing Windows job. I downloaded coverage-dashboard from run 44982495550, parsed the SVG, and checked its fixture coverage and measured-commit label. The committed README snapshot stays in place. Thanks for the rendering and upload steps.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!297
No description provided.