Repository navigation
ci: install Rust with rustup instead of dtolnay/rust-toolchain (#765) - #793
Merged
Merged
Conversation
DrunkOnJava
force-pushed
the
ci/765-rustup
branch
from
October 18, 2026 19:03
937b8f7 to
90eb540
Compare
DrunkOnJava
added a commit
that referenced
this pull request
Oct 18, 2026
…ver its Export to IFC As says (#792) (RE-188) (#796) ## Summary A curtain wall in a Revit 2024 file is written as `IfcCurtainWall` whatever its "Export to IFC As" says, as Revit 2024's own exporter writes it. On both BIM4LCA office files, that takes the 124 curtain walls rvt-rs wrote as `IfcShadingDevice` back to `IfcCurtainWall`, all 220 matching Revit's export. The export diagnostics also warn with every "Export to IFC As" value the export does not apply, which `category_map`'s documentation already claimed (#792, RE-188). ## Motivation #792 measured 124 office curtain walls that Revit's export writes as `IfcCurtainWall` and rvt-rs as `IfcShadingDevice`. Run [39153127128](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39153127128) found the value is the curtain walls' own (RE-45 owner records of category `Walls`), not misattributed. The cause is the exporter version: - In revit-ifc `IFC_v24.1.0` to `IFC_v24.3.40`, `CurtainSystemExporter.ExportBase` creates every curtain wall as an `IfcCurtainWall` without consulting the export type. - From `IFC_v25.2.0`, it takes the entity from `ExporterUtil.GetProductExportType`, as other elements do. - On floors, Revit 2024 does follow the value: Core Interior's 20 floors set to `IfcShadingDevice` stay correct. For 2025 and 2026 files the maintainer chose to keep following the setting, as the newer exporters' source does. That half is not measured: the RE1 models carry no value. ## Changes - `category_map::export_override_applies(class, release)`: false for a `CurtainWall` in a 2024 file. Its doc cites the revit-ifc tags and says what is and is not measured. - `partition_schema_mvp`: the file's release travels with each element's export value (`m_ifc_export_release`). The writer's `ifc_export_override` consults the rule, so the value stays on the element for the diagnostics. - `export_content::unapplied_export_value` and a diagnostics warning, which counts exported elements whose value names another entity than the one written, by `"<value> on <class>"`. - The wording in `category_map.rs` and `partition_ifc_export_overrides.rs`: `IfcShadingDevice` is proven on floors and disproven on 2024 curtain walls, not "the one proven value". - `docs/status.md`, `docs/supported-profile.md`, the CHANGELOG `[Unreleased]` Fixed entry, and `reports/element-framing/RE-188-curtain-wall-export-as.md`. ## Testing Measure run [39156744563](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39156744563), with `-f nordic=true` and `main` as the base, read the two office files and CI's reference models. The office files are VTT BIM4LCA, CC BY-SA 4.0, each with Revit 2024's own export. | Against Revit's export, by `Tag` (`class_sets_vs_ifc.py`) | main | this PR | |---|---:|---:| | Office as built: Revit's 220 `IfcCurtainWall` written as `IfcCurtainWall` | 96 | 220 | | Office as built: written as `IfcShadingDevice` | 124 | 0 | | Office at building permit: written as `IfcCurtainWall` | 96 | 220 | | Office at building permit: written as `IfcShadingDevice` | 124 | 0 | | Core Interior: Revit's 20 `IfcShadingDevice` (floors) | 20 | 20 | - **Core Interior, Einhoven and the four RE1 models:** every output is byte-identical to main's apart from the timing lines, and none gains a warning. - **The office files:** only `class_sets`, `aggregates`, `names`, the diagnostics and the IFC hash change. - **The as-built file's warning:** it lists 381 elements whose value the export does not apply: `IfcShadingDevice` on `CurtainWall` 124, `IfcWasteTerminal` on `PlumbingFixture` 78, `IfcElectricAppliance` on `ElectricalEquipment` 51, `IfcSpace` on `GenericModel` 42, `IfcFireSuppressionTerminal` on `SpecialtyEquipment` 40, `IfcWall` on `CurtainWall` 21, `IfcSanitaryTerminal` on `Casework` 15, and five groups of 10 elements together. Those values account for the rest of #792's class mismatches, which stay open. - **Not measured:** a Revit 2025 or 2026 curtain wall carrying a value. The 9 wall sweeps Revit writes as proxies are also left open: their exporter path is the same in every version, so this rule does not explain them. The rebase onto main after this measurement (#793 and #794) touches no Rust source. ## Clean room The changes in this PR are based on public byte observations of the BIM4LCA and magnetar models (sources 1 to 3) and on Autodesk's open-source IFC exporter, revit-ifc, for what Revit's own export writes (source 5): `CurtainSystemExporter.ExportBase` and `ExportWall`, `ExporterUtil.GetProductExportType` and `WallSweepExporter`, read at the release tags named above. I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc. ## Breaking changes None. Diagnostics gain a warning string; their schema is unchanged. Refs #792
DrunkOnJava
added a commit
that referenced
this pull request
Oct 18, 2026
…hing names (#760) (RE-189) (#797) ## Summary `elem_table::declared_ids` declares each `Global/ElemTable` record's current id only: its second id on the 40-byte layout when that is not `0`, its first otherwise. Where the two differ, nothing in the file names the first id unless it is also another element's current id, so it no longer counts as declared on its own (#760, RE-189). ## Motivation #760 (found by @pinterbanget while landing #737): Snowdon Towers Architectural declares 84 ids that name no record. They are the first ids of the 84 records whose two ids differ, which `declared_ids` kept beside the second. The issue's bar for dropping them was: does anything in the file name a first id? If nothing does, dropping them is the fail-closed choice. ## Changes - **`src/elem_table.rs`:** `declared_ids` maps each record to its current id. Its doc states the measurement. - **`examples/probe_re189_first_id_references.rs`:** for every record whose ids differ, it searches every stream for both ids, as `u64` and `u32`, inflated where compressed. It names the partition chain record holding each partition hit, and it sorts the first ids by what names them. - **`reports/element-framing/RE-189-first-ids-name-nothing.md`**, and a CHANGELOG `[Unreleased]` Fixed entry. ## Testing The probe, Measure run [39157096050](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39157096050) (`-f samples=true`). The Snowdon models are Autodesk's samples, fetched for the run and never stored. | | Snowdon Architectural | Snowdon Structural | |---|---:|---:| | Records whose ids differ | 84 | 27 | | First ids that are another element's current id | 0 | 7 | | Other first ids named in a project element record | 0 | 0 | | ... named only in loaded families' own documents (and, on Architectural, `Global/ContentDocuments`) | 43 | 2 | | ... named nowhere | 41 | 18 | None of the other 28 files with 40-byte records that Measure reads has a record whose ids differ. The change, Measure A/B run [39158195119](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39158195119) (`-f samples=true`, base `main`): - **CI's 6 reference models:** every output, the IFC hash and GLB among them, is byte-identical. - **The 49 samples:** every `rvt-info` output and every export diagnostics file is identical, except one field on the two Snowdon models. `decoded_element_fraction` rises as its denominator loses the stray ids: 47,317 → 47,233 declared on Architectural, 16,591 → 16,571 on Structural. The corpus target that first showed this (`partition_record_chain::every_first_prologue_frame_starts_a_record_of_its_own_id`) runs only where Snowdon is in `RVT_PROJECT_CORPUS_DIR`, and CI's corpus does not include it, so this pull request's CI cannot show it passing. On these numbers, Architectural's declared set now equals the 47,233 ids that have a record. The rebase onto main after the A/B (#793) touches no Rust source. ## Clean room The changes in this PR are based on public byte observations of Autodesk's published sample projects and the magnetar and Drshelden models (sources 1 to 3). I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc. ## Breaking changes None in output. `declared_ids` returns fewer ids on files whose ElemTable records carry two different ids (two Snowdon models among the 55 measured). Closes #760
6 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 19, 2026
## Summary Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then. ## Motivation Since 0.5.1, `main` has: - **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked. - **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820). - **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records. - **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838). - **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806). ## Changes - **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries. - **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary. - **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now. - **Witnesses:** the IFC header carries the version, so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run. ## Testing - CI on this pull request, the witness replays included. - Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate. - Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content ## Breaking changes See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Version and documentation-only release prep with no runtime code changes in this PR. > > **Overview** > **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19). > > **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list. > > No application or library source changes in this diff; it packages and narrates work already on `main`. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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
Every workflow installs Rust with
rustupin arun:step instead ofdtolnay/rust-toolchain, which takes that third-party action out of all 24 jobs that used it (#765).Motivation
stableandnightlybranches are force-pushed, so commit pins of them go stale. zizmor reported those asimpostor-commiterrors, and still warnsref-version-mismatchon themasterpin ci: zizmor's findings fixed, Python pins Dependabot watches, auditable release binaries (C10) #733 moved to.superfluous-actionsaudit names this action, withrustupas the replacement. GitHub's Linux, macOS and Windows runners ship rustup, and no workflow reads the action's outputs.Changes
ci.yml12,publish.yml5,measure.yml2, and one each incorpus-nightly,deploy-viewer,fuzz,perf-budgetandrelease-binaries) become ashell: bashstep. It runsrustup toolchain install <toolchain> --profile minimal --no-self-updatewith the step's--componentand--targetflags, thenrustup default <toolchain>, as the action did.CARGO_INCREMENTAL=0andCARGO_TERM_COLOR=alwaysinGITHUB_ENV, which the action set when they were unset. No workflow setsCARGO_INCREMENTAL, and the four that setCARGO_TERM_COLORset it toalways.env:. Toolchains and targets that come from expressions (matrix.rust,env.NIGHTLY,matrix.target, the macOS-only wheel target) reach the script throughenv:, not${{ }}inside it. A step'sname:andif:are kept.[Unreleased]entry under Changed.Testing
actionlintreports exactly main's 56 findings, shifted by line, and none new.ci.yml(fmt, clippy, the Linux, Windows and macOS tests, MSRV, docs, the docs.rs nightly, deny, audit, tier two) andrelease-binaries.yml, which its own path triggers.publish.ymlwithtest-pypioff,fuzz.yml,perf-budget.ymlandcorpus-nightly.yml. Withtest-pypioff,publish.ymlbuilds and smoke-tests the wheels, sdist, crate and viewer, and publishes nothing: every publish job needs a pushedv*tag. Results, on 937b8f7 before the rebase onto main (whose only conflict was the CHANGELOG):publish.yml(39154288113): all seven wheels (macOS arm64 and x86_64, Linux x86_64 and aarch64, musllinux x86_64 and aarch64, Windows x64), the sdist, the crate install smoke, the docs.rs preview and the viewer smoke passed. Every install-and-open-a-model job passed. The release-binaries, crates.io, PyPI and TestPyPI jobs were skipped.fuzz.yml(39154289640, 30 s per target): 12 jobs passed; only the report job, which runs on a failure, was skipped.perf-budget.yml(39154291234) andcorpus-nightly.yml(39154292795) passed.Breaking changes
None.
Closes #765
Note
Low Risk
CI-only workflow changes with equivalent toolchain setup; no application code or release artifact logic is modified.
Overview
Replaces the third-party
dtolnay/rust-toolchainaction with inlinerustupinstall steps across 8 workflow files (24 jobs total), including CI, publish, release binaries, fuzz, measure, and viewer deploy.Each job now runs
rustup toolchain installwith--profile minimal --no-self-update, sets the default toolchain, and exportsCARGO_INCREMENTAL=0andCARGO_TERM_COLOR=alwaysto match the old action. Per-job needs are preserved:rustfmt/clippycomponents,wasm32-unknown-unknownfor WASM builds, matrixrust(including MSRV 1.87), datednightly-2026-10-01for fuzz/docs-rs CI, and optional--targetfor cross-compile wheels and release binaries. Matrix/expression values are passed viaenv:rather than embedded in shell scripts.CHANGELOG.mdadds an[Unreleased]note under Changed documenting the switch and motivation (stale action pins, zizmor findings, runners already ship rustup).Reviewed by Cursor Bugbot for commit 937b8f70f5e11bd3a97faa2b1277387d70ca466b. Configure here.