Repository navigation
feat(control): the progress an open reports covers the recovery over the element records, as a partition-recovery stage the viewer counts (#1195) - #2095
Merged
Conversation
…the element records, as a partition-recovery stage the viewer counts (#1195) On Core Interior the decoder reported nothing for 26.4 s of a 31.6 s open in the viewer: after the last Partitions/* stream was inflated, the partition recovery ran its passes with no control of its own, and the card swept with Building the model (load-progress.spec.ts). Stage::PartitionRecovery (partition-recovery) counts the recovery's sections, one for each heading of recover_partition_schema_mvp's body (86), reported through the handle that already carries the partition inflates' control, and only once every stream is inflated so the two stages do not interleave. The last stream, when the recovery inflates it, reports the recovery's section in progress instead of the stream count at its end, so the card goes from the streams to the steps without naming for an instant what comes after them. The viewer names the stage Reading element records, with its count; the binding's docs, the viewer API page and the viewer's progress test name it too. No export changes. Claude-Session: https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP
…oder now reports (#1195) Deploy viewer run 44488437867 on this branch failed two tests of memory-ceiling-capped.spec.ts, both because the recovery is now counted: - Einhoven under a 16 MiB cap stops while reading element records, the new step, which the note names; the test allowed only the two steps before it. - The Core Interior test capped the memory halfway through the growth of the stretch the decoder reported nothing in. With the recovery counted that stretch no longer grows the memory (308.1 MiB at the recovery's end and at the saved graphics' start), so there was nothing to stop in. The test now caps halfway through the largest growth between two consecutive reports from the recovery's first to the saved graphics', and checks the stop came there and the note names that report's step. The growth of the uncounted stretch is still written to the measurement file, not judged.
DrunkOnJava
marked this pull request as ready for review
November 19, 2026 08:59
… change adds an item to the stable API and changes nothing in it (#1195) The semver gate on this pull request found RevitFile and corpus::Sample losing Freeze: the recovery's section was kept in two AtomicU64 fields so that a &self method could move it, and an atomic is interior mutability. The recovery holds the handle as &mut, so the report takes &mut self and the fields are plain integers. The only public change left is the new Stage::PartitionRecovery, at the end of a #[non_exhaustive] enum.
Open
2 tasks
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
The progress an open reports gains a stage,
partition-recovery, that counts the partition recovery's steps after the lastPartitions/*stream is inflated. The viewer's loading card shows it as "Reading element records" with its count, where it swept with "Building the model". No export changes.Motivation
#1195, the part left open on 2026-11-15: on Core Interior the decoder reported nothing for 26.4 s of a 31.6 s open in the viewer (
load-progress.spec.ts), becauserecover_partition_schema_mvpruns its passes with no control of its own once the streams are inflated.Changes
src/control.rs:Stage::PartitionRecovery(partition-recovery), at the end of the#[non_exhaustive]enum.src/reader.rs:report_recovery_section, through the control the handle already holds for the partition inflates; nothing until every stream is inflated; the last stream, when the recovery inflates it, reports the recovery's step in progress instead of the stream count at its end.src/research/partition_schema_mvp.rs: a report at each of the recovery's 86 section headings, and at its end.viewer/src/main.ts,viewer/tests/load-progress.spec.ts,rvt-wasm/src/lib.rs(docs),docs/viewer-api.md, a changelog fragment.Testing
Unit tests are banned in this repository. Rows registered here before any run is read:
mainwith the samples of every year has everyifc.sha256anddiagnostics.jsonidentical, and the same-project gates pass.load-progress.spec.tson Core Interior passes with its new lines: at least two countedpartition-recoveryreports, the bar rising through them, the card reading "Reading element records" with "N of M steps", and the announcements in the order streams, element records, building the model, with "Building the model" said once.tests/rvt_gltf_progress_cli.rspasses unchanged (the walk's lastpartition-scanreport is 1 of 1).Results:
27840447againstmainat19df0fe7, the reference models and the samples of every year: 65 of 65ifc.sha256and 65 of 65diagnostics.jsonidentical, no scorer output moved (the same as 44488420875 on3a57d2c0).27840447(and 44490131073 ond0aea009): 28 of 28 browser tests pass,load-progress.spec.tson Core Interior with its new lines among them.rvt_gltf_progress_cliis unchanged and passes in CI's real-file tests.memory-ceiling-capped.spec.ts, both because the recovery is now counted. Einhoven under a 16 MiB cap now stops "while reading element records", the new step, which the test did not allow. On Core Interior the stretch the decoder reports nothing in no longer grows the wasm memory at all (308.1 MiB at the recovery's end and at the saved graphics' start), so a cap had nothing to stop in there. The test now caps halfway through the largest late growth between two reports and checks that the note names the step it stopped in; both pass. The semver gate then foundRevitFilelosingFreeze, from two atomic fields that held the recovery's step;27840447keeps them as plain integers set through&mut self, so the only public change is the newStagevariant at the end of a#[non_exhaustive]enum, and the gate passes. The share of the open the card counts is not in this run's artifacts.tools/check-local.sh: not run (no local builds here); CI runs it.rustfmt --checkandtools/release/changelog.py checkpass locally.Audit-honesty checklist
docs/viewer-api.mdnames the stage and what it counts; the changelog fragment says no export changes.Legal and contribution hygiene
Breaking changes
None:
Stageis#[non_exhaustive]and the variant is added at its end. A caller that names every stage it shows sees one more,partition-recovery.