ENGINEERING

Track README example health trends in BigQuery

Daily, runs every documented code example, records the pass/fail result per snippet as a timestamped row in BigQuery.

CategoryEngineering
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule fires
  • ActionInstall current version, run README code blocksShell
  • ActionAssemble per-snippet results with version and errorsShell
  • ActionAppend timestamped rows to BigQuery history tableGoogle BigQueryBigQuery
  • LogicCompute pass rate, compare to threshold
  • OutputPage on-call when pass rate drops below thresholdPagerDutyPagerDuty

What it does

This workflow turns example validation into a measurable health metric over time. Each day it runs every README code block, then writes one timestamped row per snippet to a BigQuery table capturing whether it passed, the package version tested, and the error if it failed. The accumulated history lets you chart documentation health and spot regressions introduced by specific releases.

When to use it

Use it when you want long-running visibility into documentation quality, not just a one-off alert, and you report on docs health in a dashboard. Best for teams that already centralize engineering metrics in BigQuery.

How it works

  1. 1A daily schedule triggers the run.
  2. 2A shell step installs the current version and runs every README code block.
  3. 3A shell step assembles per-snippet results: pass or fail, version, and any error text.
  4. 4A BigQuery step appends one timestamped row per snippet to the history table.
  5. 5A logic step computes today's overall pass rate and compares it to the threshold.
  6. 6An output step pages on-call through PagerDuty when the pass rate falls below the threshold.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect ShellRun sandboxed commands inside the workspace.
  2. 2
    Connect BigQueryDatasets, queries, schemas.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.