CI: make pyperf-suite example executable #16
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 258 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16"
general
weight: 0.35
rok
closes gh-14
Make the examples' README files executable. The end goal is to satisfy:
For running on CI, there will be two runs:
benchxfrom pypi;benchxrepository, the same README executes on CI for eachbenchxPR using the main branch ofbenchx_examplesThis PR starts the process from the
pyperf-suiteexample (which actually already drifted): it adds a CI workflow to executeexamples/pyperf-suire/README.md. Two sets of moving parts:benchxCI with minimal duplication;jupytextwith MYST-markdown, but for now I'm using a simpler tech:markdown-it-pyto parse executable blocks from a markdown file + an ad-hoc script to parse it with the following rules for markdown fences:
pythonbash
`this is a bash command
``executes a shell command.
here is python code
textexecutes python code
this is output
shis an example output. The first text fence which follows a
,bashorpythonfence is replaced by the actual output; other fences or unfenced triple backticks are preserved as is:this looks like code, but it is never run
`
---------------
While I'm not loving a 300-odd LOC python script for parsing markdown, it seems simple enough to not use a blunt general-purpose tool that MYST-markdown is. If it runs out of steam going forward, reusing MYST is easy enough.
FWIW, what I like of the current DIY solution is that it's easy to keep things readable in terminal (Myst-markdown is geared towards full-fledged jupyter notebooks and strips all output)