Skip to content

feat: publish the results to the Testo site - #12

Merged
roxblnfk merged 5 commits into
mainfrom
feat/publish-docs
Dec 2, 2026
Merged

roxblnfk merged 5 commits into
mainfrom
feat/publish-docs

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Dec 2, 2026

Copy link
Copy Markdown
Member

The README tables are hard to read; the Testo site will render the results instead and keep the history of runs.

  • bin/report --json=results.json writes the results with the metadata of the run: release, commit, workflow run, machine (CPU, runner image, OS, PHP) and database server version per database. bin/run now records the machine in results/<db>/env.json.
  • schema/results.schema.json describes the document; bin/validate checks it against the schema and for completeness: every contender in every scenario on every database, ratios matching the times, the release matching the tag.
  • The benchmarks commit results.json into the release PR next to the README tables, after validating it.
  • On release, Publish validates the document against the tag, attaches it to the release and adds it to data/benchmarks/orm/<release>.json in php-testo/php-testo.github.io: as a PR by default, as a direct push when the repository variable DOCS_PUBLISH_MODE is push. It can also be run by hand for an existing release.

Needs the RELEASE_TOKEN secret available to this repository, with write access to php-testo/php-testo.github.io.

🤖 Generated with Claude Code

The benchmarks now also write results.json: the numbers of the README tables
with the metadata of the run (release, commit, workflow run, machine, PHP and
database server versions). bin/validate checks it against
schema/results.schema.json and for what a schema can't say: every contender
measured in every scenario, the ratios matching the times.

On release, the Publish workflow validates the document against the tag,
attaches it to the release and sends it to php-testo/php-testo.github.io:
as a PR, or as a direct push when DOCS_PUBLISH_MODE is `push`.

Assisted-By: Claude Opus 5.5
@roxblnfk
roxblnfk requested a review from a team as a code owner December 2, 2026 09:05
Assisted-By: Claude Opus 5.5
@roxblnfk
roxblnfk merged commit 88d5a02 into main Dec 2, 2026
5 checks passed
@roxblnfk
roxblnfk deleted the feat/publish-docs branch December 2, 2026 10:29
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