Skip to content

docs(python): the guide's examples run in CI, and signature blocks are marked as such (#872) - #902

Merged
DrunkOnJava merged 8 commits into
mainfrom
docs/python-examples-run
Oct 23, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
docs/python-examples-run

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Part of #872 (1.0 criteria S4). docs/python.md had 21 python blocks and CI ran none. Three are runnable examples (open a file and read it, batch metadata over a folder, resource limits on untrusted input); they now run in CI, in order, against the synthetic project file corpus/tier1/architectural-2024, through the installed wheel. The other 18 are method signatures or the shape of a result, which cannot run; they are fenced text.

Changes

  • tests/python/test_docs_python.py (new): reads the page, runs its python blocks in one namespace from a scratch directory that holds the fixture as my-family.rfa and projects/architectural-2024.rvt, with untrusted_path set, and names the line of a block that fails. It runs in the wheel job's existing pytest tests/python step.
  • docs/python.md: 18 fences from python to text.
  • docs/release-1.0-criteria.md: S4 to passed, with this evidence.
  • CHANGELOG.md.

Testing

The harness is the test, and the wheel job runs it. If a block fails on the synthetic file (for example a schema without ADocument), the block is fixed here, not skipped.

  • CI: Python wheel / ubuntu-24.04

Audit-honesty checklist

  • S4 is marked passed only with this PR's evidence; it flips back if the harness fails
  • No emojis, private paths or internal jargon

Legal and contribution hygiene

  • Apache-2.0; the fixture is synthetic

Breaking changes

None.

Screenshots or output samples

N/A.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 23, 2026 15:25
@DrunkOnJava
DrunkOnJava merged commit add22eb into main Oct 23, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/python-examples-run branch October 23, 2026 16:32
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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