Repository navigation
docs(api): examples that run on the entry points, with their errors, and CI runs the doctests (#872) - #900
Merged
Conversation
7 of 12 tasks
# Conflicts: # src/elements/arc_wall.rs # src/error.rs # src/reader.rs # src/walker.rs
DrunkOnJava
marked this pull request as ready for review
October 23, 2026 14:01
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67869202c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…summarize_strict, the example writes to its own directory, one changelog entry
This was referenced Oct 23, 2026
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.
Summary
Part of #872 (1.0 criteria S3, the Rust half). CI never ran a documentation example: there was no
cargo test --docstep, so the 7 runnable and 9no_runexamples were never executed. This PR adds that step, makes the crate root's three examples run, and gives the user entry points an example and a# Errorssection. Every example opens the synthetic project file the repository ships,corpus/tier1/architectural-2024/architectural-2024.rvt.# Errorsno_runRevitFile::openRevitFile::open_bytesRevitFile::summarize_strictmetadata::read_metadatawalker::iter_elementsRvtDocExporter::export_with_diagnosticsifc::write_step,gltf::model_to_glb,schedule_csv::elements_csvTwo doc corrections found on the way: the crate root's first example called the deprecated
summarize, andsummarize_strict's doc said a missing PartAtom fails it, which the code does not do.iter_elements's doc no longer lists the name-only Rooms and plan-loop Floors removed in #308.Depends on #898 (the
# Errorssections nameError::MissingClass); until it merges this diff includes #898's.Changes
src/lib.rs,src/reader.rs,src/metadata.rs,src/walker.rs,src/ifc/mod.rs,src/ifc/step_writer.rs,src/ifc/gltf.rs,src/ifc/schedule_csv.rs: docs..github/workflows/ci.yml:cargo test --profile ci --docon the Linux stable entries;tools/check-local.shmirrors it.CHANGELOG.md.Not in this PR (the rest of #872): running
docs/python.md's blocks, and separating user examples from the research probes inexamples/.Testing
The examples are the test: the new CI step runs them. Their assertions are only ones the code guarantees (
write_stepoutput startsISO-10303-21;, a GLB startsglTF); counts are printed, not asserted. If one of the older, never-run examples fails, it is fixed here.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Screenshots or output samples
N/A.