This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
Docs: generate the bindings A/B result tables from result files - #424
Merged
Merged
Conversation
… for the bindings study Adds scripts/render_ab_tables.py (renders the blocks between ab-table markers from docs/benchmarks/ab-results/*.json and fails on a hand-edited table), a pre-commit hook and tests, and a Measurement pending placeholder for each figure of the bindings best-practice study. No recommendation text changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The published pages read as before until a result file exists; an unknown figure id, an unclosed marker or text typed between the markers still fails the check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #423.
Adds the pipeline that puts the bindings A/B study's results into the docs by script, ready for when the study finishes. Mechanism and placeholders only: no current recommendation text changes.
bindings/python/scripts/render_ab_tables.pyreadsbindings/python/docs/benchmarks/ab-results/<figure-id>.json(format 1, described indocs/development/documentation.md, "A/B Result Tables") and renders the blocks between<!-- ab-table: ID -->and<!-- /ab-table -->. With no result file nothing is rendered between the markers, so the published pages read as before; text typed there fails the check.--checkfails on a hand-edited table, an invalid or unused result file, and an unclosed or unknown marker;--writeis the only way to change a number. Markers inside code fences are examples and are ignored. The verdict is derived from the interval the wayab.pydoes, never stored.The check runs as the
render-ab-tablespre-commit hook (also in the existing pre-commit job) and astests/test_render_ab_tables.py(35 tests, including one that checks the real docs and one that every figure has a block).Marker blocks added (empty until a result file exists), by figure id and page:
ingest-path,parallel-buckets,async-sql-path: guide/import.md, end of "Bulk Ingest Recommendation"commit-size: guide/import.md, after thecommitEverytableindex-before-after: guide/import.md, after "Drop Heavy Indexes Before Bulk Loads"materialization: guide/core/queries.md (after "Performance and Materialization") and guide/performance.md (before "Known limits")udf-cost,callback-cost: guide/performance.md, before "Memory"heap-pinned: guide/performance.md, before "Full report"rebuild-threshold: guide/vectors.md, after the rebuild discussionapi/graph_batch.mdhas no figure in the study's A/B list, so it has no placeholder.bindings/python/AGENTS.mdgets a rule that A/B numbers are never typed.Checked:
pre-commiton the changed files (black, isort and the new hook pass), the new tests (34 passed), and the strict mkdocs build with the CI versions. I did not wait for CI.🤖 Generated with Claude Code