Repository navigation
fix(docs): make doc_examples strict pass for release qualification - #1446
Merged
Merged
Conversation
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.
Contributor
Author
|
Full qualification on the Linux VPS (pablo-vps, as ghrunner in flow-runners.slice) at 946f73e: |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
qualify_release --mode fullon Linux (VPS, main) stopped at itsdoc_examples strictgate. Strict accepts only blocks that are verified or an expected error, and threeignore=blocks failed it: two placeholder blocks in docs/language/testing.md and onetensor_f32block in docs/language/mlir-value-semantics.md.Change
testblocks with small helper functions; they compile and pass.tensor_f32example cannot compile on the C harness (the type is MLIR-only). It is now a verbatim copy ofaccumulateincompiler/fixtures/mlir_opt/tensor_hot_loop.flow, whichtests/mlir_commands(mlir_tensor_hot_loop) compiles, markedignore="..." from="compiler/fixtures/mlir_opt/tensor_hot_loop.flow".ignore=andfrom=counts as verified while it still appears verbatim in thefrom=file (repository-relative), and as unverified once the page and the file drift. A plainignore=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.qualify_release --mode fullon the VPS: result in a comment below.No compiler change.