Skip to content

fix(docs): make doc_examples strict pass for release qualification - #1446

Merged
godofecht merged 1 commit into
mainfrom
fix/doc-examples-strict-ignores
Oct 8, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix/doc-examples-strict-ignores

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Problem

qualify_release --mode full on Linux (VPS, main) stopped at its doc_examples strict gate. Strict accepts only blocks that are verified or an expected error, and three ignore= blocks failed it: two placeholder blocks in docs/language/testing.md and one tensor_f32 block in docs/language/mlir-value-semantics.md.

Change

  • docs/language/testing.md: both placeholder blocks are now real test blocks with small helper functions; they compile and pass.
  • docs/language/mlir-value-semantics.md: the tensor_f32 example cannot compile on the C harness (the type is MLIR-only). It is now a verbatim copy of accumulate in compiler/fixtures/mlir_opt/tensor_hot_loop.flow, which tests/mlir_commands (mlir_tensor_hot_loop) compiles, marked ignore="..." from="compiler/fixtures/mlir_opt/tensor_hot_loop.flow".
  • tools/doc_examples: a block with both ignore= and from= counts as verified while it still appears verbatim in the from= file (repository-relative), and as unverified once the page and the file drift. A plain ignore= is still rejected by strict. Documented in blocks.flow's info-string table.

Proof

  • tests/doc_examples/cases/strict_ignore_from: a matched copy (verified), a drifted copy (unverified, [from]), and a plain ignore; exit 1 with the expected report. It fails with the old checker.
  • ./flow tool tests/doc_examples/run.flow: 32/0.
  • ./flow tool doc_examples strict: "all documented Flow blocks are compiler-checked" on macOS arm64 and on the Linux VPS (ghrunner, flow-runners.slice) at 946f73e.
  • Full qualify_release --mode full on the VPS: result in a comment below.

No compiler change.

qualify_release --mode full runs doc_examples strict, which accepts
only verified or expected-error blocks, and three ignore= blocks failed
it.

- docs/language/testing.md: the two placeholder test blocks are now real
  tests that compile and pass.
- docs/language/mlir-value-semantics.md: the tensor_f32 block cannot
  compile on the C harness. It is now a verbatim copy of
  compiler/fixtures/mlir_opt/tensor_hot_loop.flow, which
  tests/mlir_commands compiles, marked ignore=... from=<that file>.
- tools/doc_examples: a block with both ignore= and from= counts as
  verified while it still appears verbatim in the from= file
  (repository-relative), and as unverified once they drift. A plain
  ignore= is still not accepted by strict.

tests/doc_examples/cases/strict_ignore_from covers the matched, drifted
and plain cases and fails with the old checker.
@godofecht

Copy link
Copy Markdown
Contributor Author

Full qualification on the Linux VPS (pablo-vps, as ghrunner in flow-runners.slice) at 946f73e: ./flow tool qualify_release --mode full exits 0. Gates: sync_version pass, changelog_check pass, stability_manifest pass, doc_examples (strict) pass, conformance pass (11/0), bootstrap_verify pass, linux_archive pass (flow-v2.0.0.tar.gz sha256 a120413a...). formula.brew is skipped (no brew on that host). Record: build/qualify/linux/qualification-linux.txt on the VPS.

@godofecht
godofecht enabled auto-merge October 7, 2026 23:39
@godofecht
godofecht added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit c9ee072 Oct 8, 2026
29 checks passed
@godofecht
godofecht deleted the fix/doc-examples-strict-ignores branch October 12, 2026 23:03
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