Skip to content

feat: each sample branch draws its CI by day into its README - #12

Merged
Vovanda merged 1 commit into
fullfrom
samples/ci-svg
Oct 4, 2026
Merged

Vovanda merged 1 commit into
fullfrom
samples/ci-svg

Conversation

@Vovanda

@Vovanda Vovanda commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

GitHub shows images in a README without running a script, so the grid of days of the samples page becomes a picture:

  • .samples/ci-svg.py draws reports/<branch>/ci.svg from every run of every version in reports/<branch>/, by the rules and colours of the site's grid: a day keeps the last result, a pass fades to ice and a failure rots over 30 days without a run (mixed in OKLab, as the site's color-mix), 52 weeks back and the weeks to come fading out; light and dark follow the reader's colour scheme; a legend and the last run's tests and coverage.
  • report.sh draws it after each CI run; report.yml already adds reports.
  • The README of a branch shows its picture, linked to its page on the site; the README of full shows every branch's, from raw.githubusercontent.com (image/svg+xml).

Checked: the real reports of nightly and full drawn and looked at in an <img> in both colour schemes; a synthetic history for the fading; report.sh on a clone of nightly with its last run id writes reports/nightly/ci.svg.

A release branch's README gets the picture when it is next regenerated, from the next release; nightly with the next change of dev.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NczLWHuimhqeSmGQ2jjX8X

@Vovanda
Vovanda merged commit 0d837a5 into full Oct 4, 2026
3 checks passed
@Vovanda
Vovanda deleted the samples/ci-svg branch October 4, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant