Repository navigation
feat(cli): rvt-gltf --progress, with saved-graphics stages in WalkerControl - #1073
Merged
Merged
Conversation
…ontrol rvt-gltf gave no sign of life while converting: the export walked the elements without a WalkerControl, and reading saved graphics had no stage. - control::Stage gains SavedGraphics (0 then 1/1) and SavedMeshes (one report per element meshed). - native_saved_scene::extract_at_detail_with_control, ifc::saved_meshes::attach_with_control and RvtDocExporter::export_with_mode_limits_and_control take a WalkerControl; the existing functions call them with the default one. A cancelled walk now stops the export with Error::Cancelled instead of being taken for a failed walk. - rvt-gltf --progress prints the lines of rvt-elements --progress. The .glb is byte-identical with and without the flag on the reference models and the tier-1 fixtures. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013R5i8yaee9fxwTCUC1Qkbg
The parallel meshing joined its workers with expect(), which panics again with a new message and loses the worker's. resume_unwind carries the original panic through, as suggested in the review of DrunkOnJava#882. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
Thanks, this is a clean change. I checked:
The second run goes through the new Merging. The squash message keeps your description and leaves the commit trailers out, as with #882. |
Contributor
Author
|
Thanks a lot for the thorough review and for merging! Checking it against all 31 reference models, with and without And thanks for rvt-rs in general: it has been really valuable for our work with Revit models. |
4 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
## Summary Release metadata for v0.11.0 (RELEASE.md steps 4 to 7). Merging this is not the release: the signed `v0.11.0` tag on its squash commit is. ## Motivation `main` holds user-facing fixes that installed users do not have yet, above all #1075 (a model over the reader's limits exported empty with exit status 0; the reporter can verify only from a release) and #421 (files that kept an older schema read as zero elements). It also holds the breaking removal of unused stable API (#1128), which makes this a minor release. ## Changes - Version 0.11.0 in `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.11.0` pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (dated 2026-10-30), both lockfiles' workspace entries, and the `FILE_NAME` / `IFCAPPLICATION` lines of the two synthetic IFC fixtures, which the contract checks compare byte for byte since #1133. RELEASE.md's version list now names those fixtures. - `CHANGELOG.md`: `changelog.py assemble` moved the 33 fragments into `[0.11.0] — 2026-10-30`, with an introduction, credits (puzzbobb: #1074, #1076, #1077, #1081; n3ur0m4n: #1073) and "Upgrading from 0.10" (removed API, exit status 3 for a model over the limits, saved meshes on by default, properties no longer written, `Flagged` schema fields, the probes crate). - `README.md`: "Release 0.11.0 and main", and the reconnaissance probes point at `probes/examples/` (#1132). - `rvt-py/README.md` (packed into the wheel): what `write_ifc()` does when part of a file was over the limits. ## Testing CI is the gate. After this PR's CI, both Core Interior `rvt-rs.json` witness observations and their verdicts are refreshed from its `octetproof-core-interior` artifact (only `witness_version` and the verdict hashes may differ); the PR stays unarmed until then. ## Audit-honesty checklist - [x] The changelog section and README release section state only what the entries measured - [x] No emojis, private paths or internal jargon ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content ## Breaking changes The release carries #1128's removal of unused public API; "Upgrading from 0.10" lists what a user changes.
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
rvt-gltf --progressprints the conversion's progress to stderr in theprogress: <stage> <done>/<total>linesof
rvt-elements --progress, now including two new stages for saved graphics. The .glb is byte-identical withor without the flag.
Motivation
Closes #1072. A front end running
rvt-gltfcannot tell progress from a hang: the export walked the elementswithout a
WalkerControl, and reading saved graphics, about half of the time with--saved-meshes, had no stage.Changes
src/control.rs:Stage::SavedGraphics(saved-graphics, 0 then 1/1) andStage::SavedMeshes(
saved-meshes,done/totalare elements).src/native_saved_scene.rs:extract_at_detail_with_control, which reports both stages and checks the tokenbefore each pass over the file and before each element's mesh. Elements meshed in parallel report under a lock,
so
donerises by one per element.extract_at_detailcalls it with the default control.src/ifc/saved_meshes.rs:attach_with_control;attachcalls it with the default control.src/ifc/mod.rs:RvtDocExporter::export_with_mode_limits_and_controlwalks the elements throughiter_elements_with_control. A walk that fails still leaves the metadata-only model, as before; a cancelledone now returns
Error::Cancelledinstead of being taken for a failed walk.src/bin/rvt_gltf.rs:--progress.tests/rvt_gltf_progress_cli.rs(classcli): stderr lines and an unchanged .glb on the tier-1 fixture;on RE1-Architecture (skipped unless
RVT_PROJECT_CORPUS_DIRholds it) onesaved-meshesline per element inorder up to n/n, and a cancelled token stopping both the export and the saved-graphics read.
changelog.d/added/rvt-gltf-progress.md: the entry.resume_unwind, so a worker's panic keeps its own message instead ofexpect's.Testing
tools/check-local.shpasses, with the reference models fromtools/fetch-reference-models.shin place.rvt-gltf <file> --saved-mesheswrites the same bytes asmain, withand without
--progress, on the six redistributable reference models and the three tier-1 fixtures.Audit-honesty checklist
changelog.d/added/rvt-gltf-progress.md.Legal and contribution hygiene
WalkerControlthrough existing rvt-rs code. The work was done with the help of Claude, as the commit'sCo-Authored-Bytrailer says, under the same clean-room rules.Breaking changes
None.
control::Stagegains two variants, and it is#[non_exhaustive]; no function signature changes.Screenshots or output samples
rvt-gltf RE1-Electrical.rvt --saved-meshes --progress(repeated lines elided):Related issues
Closes #1072. Follows #882.
🤖 Generated with Claude Code