Skip to content

chore(ci): CI and Measure run IfcOpenShell 0.9.0.post1, its scores unchanged (#773) - #795

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/773-scorers-bind-files
Oct 18, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/773-scorers-bind-files

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measure's scorers keep each IFC file open while they use its elements, and the geometry scorers print why IfcOpenShell cannot mesh an element. With those fixes, Measure gives byte-identical scores under IfcOpenShell 0.8.5 and 0.9.0.post1 on the same commit, so CI and Measure move to 0.9.0.post1 (#773).

Motivation

#773 held IfcOpenShell at 0.8.5 because 0.9.0 broke seven of Measure's scorers. It names two causes:

  1. Eight ifcopenshell.open(path).by_type(...) calls in five scorers never bound the file. IfcOpenShell 0.9 holds a file weakly from its instances, so the file can be freed while they are still in use.
  2. Under 0.9.0 no wall meshed, and the scorers counted the exception without its text.

#773 is done when Measure under 0.9.x gives the same scorer outputs as under 0.8.5 on the same commit, apart from timings. Then the pin moves, the IfcOpenShell observations and verdicts are refreshed, and Dependabot's hold comes off.

Changes

  • The file stays bound in room_names_vs_ifc, names_vs_ifc, wall_materials_vs_ifc, room_areas_vs_vim and instances_vs_ifc_tags, at all eight sites. room_names_vs_ifc.ours() takes the open model, because it returns the spaces themselves. The other ifcopenshell.open(...) calls in tools/re either bind the file or pass it to a function that returns plain values (storeys_vs_ifc).
  • Mesh failures carry their reason. wall_bodies, wall_ends_cv, wall_layers, layer_sets and slab_layers print IfcOpenShell cannot mesh: <exception> once per distinct message, with instance numbers dropped. Their counts are unchanged.
  • The pin moves. tools/ci/requirements-ifc.txt goes to ifcopenshell==0.9.0.post1, the latest release (2026-10-15). .github/dependabot.yml drops the minor/major ignore, and the registry's IfcOpenShell note says what was measured.
  • The witness files are refreshed. The IfcOpenShell observations and verdicts of both Core Interior edges come from this pull request's octetproof-core-interior artifact (CI run 39154555928). The only lines that differ are witness_version, which goes from 0.8.5 to 0.9.0.post1, and the verdict hashes that cover it. Both verdicts are PASS, and the rvt-rs and IFClite observations are unchanged.
  • A CHANGELOG [Unreleased] entry under Changed.

Testing

Measure ran on main's commit c427591 with these scorers twice, changing only IfcOpenShell. The runs:

  • run 39153682389: branch ci/773-scorers-bind-files (f3bdd0f), which installed ifcopenshell-0.8.5;
  • run 39153684706: ci/773-trial-0.9 (f3bdd0f plus the pin), which installed ifcopenshell-0.9.0.post1.

The results:

  • Every scorer output is byte-identical across the seven models (diff -rq of the two measure-head artifacts).
  • Only the timing line differs, in four rvt-ifc.log files.
  • Under 0.9.0.post1, every count IfcOpenShell 0.9: Measure's scorers lose their file and cannot mesh walls #773 lists as broken is back:
    • wall_bodies_vs_ifc compares 360 of 360 Core Interior walls, within 0.001 ft;
    • room_names_vs_ifc matches 116 of 116 rooms;
    • layer_sets_vs_ifc writes 407 layer sets;
    • no IfcOpenShell cannot mesh: line appears in any output.

Not measured: 0.9.0 itself with these scorers. The pin skips it.

Breaking changes

None.

Closes #773


Note

Medium Risk
Touches CI witness pins and all Measure IFC scorers; behavior is validated as byte-identical to 0.8.5, but dependency and Python tooling paths are sensitive to IfcOpenShell API/lifetime changes.

Overview
CI and Measure move from IfcOpenShell 0.8.5 to 0.9.0.post1 after fixing Measure scorers that broke under 0.9’s lifetime rules.

Several comparison scorers (room_names_vs_ifc, names_vs_ifc, wall_materials_vs_ifc, room_areas_vs_vim, instances_vs_ifc_tags) now keep each opened IFC model referenced while iterating elements, instead of opening inline and letting the file be collected while instances are still used. Geometry scorers (wall_*, layer_sets, slab_layers) log each distinct mesh failure reason once when create_shape fails, without changing their counters.

The pin in tools/ci/requirements-ifc.txt updates to 0.9.0.post1; Dependabot drops the minor/major ignore on ifcopenshell. Witness registry notes, Core Interior IfcOpenShell observations (witness_version), and verdict hashes are refreshed to match the new version while staying PASS.

Reviewed by Cursor Bugbot for commit 78307ad. Configure here.

@DrunkOnJava DrunkOnJava added dependencies Pull requests that update a dependency file area:ci Work in the ci area. type:ci Continuous integration or automation work. labels Oct 18, 2026
@DrunkOnJava
DrunkOnJava merged commit bc4c4eb into main Oct 18, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/773-scorers-bind-files branch October 18, 2026 18:44
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
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 -->
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…56 in the Cursor setup (#846)

## Summary

CI, Measure and the Cursor setup install their Python packages by hash, with every dependency pinned. The Cursor setup also checks wasm-pack's download against its published SHA-256 instead of falling back to `curl ... | sh`, and gets pnpm only through corepack. This clears the nine open Scorecard pinned-dependency alerts the maintainer audit reports.

## Motivation

The maintainer audit's alert check failed with 20 open code-scanning alerts. Six were dismissed with their reasons:
- CodeQL's three cleartext-logging findings: `rvt-info` printing a file's own last-saved-by user on purpose, with `--redact` for shared output, and a research example printing UUID bytes.
- Scorecard's code-review, branch-protection and best-practices checks, which a one-maintainer project cannot meet, since an author cannot approve their own pull request.

Of the other 14, nine are fixed here, and five are dismissed by decision:

- **Scorecard PinnedDependencies (9).** `pip install -r` of version pins without hashes (`ci.yml` three times, `measure.yml` once), two unpinned `pip install --upgrade pip`, and in `.cursor/install.sh` a `curl | sh` fallback, an unpinned `pip install --upgrade pip maturin pytest` and an `npm install -g` fallback.
- **zizmor dependabot-cooldown (5).** Every Dependabot entry waits 3 days after a release, under zizmor's 7. The maintainer keeps 3: the project takes new stable releases promptly, and 3 days is the chosen balance against a hijacked release's exposure window. The alerts are dismissed with that reason.

## Changes

- `tools/ci/requirements-{ifc,test}.in` are the human-edited pins, with their comments. `requirements-{ifc,test}.txt` pin those and every dependency with their hashes, generated by `uv pip compile --universal --generate-hashes`, whose header gives the command. Both sets cover Python 3.10 and later on every platform, so uv forks numpy, shapely and rpds-py by Python version; CI and Measure use 3.12. `requirements-dev.{in,txt}` add maturin 1.15.0 to the test set for the Cursor setup.
- `ci.yml` and `measure.yml` install with `pip install --require-hashes -r`. The two `pip install --upgrade pip` steps are gone; the runners' pip installs hashed requirements as they are. The IfcOpenShell step's comment no longer says 0.9 is held (#795 moved the pin).
- `.cursor/install.sh`:
  - wasm-pack 0.14.0 is checked against the SHA-256 GitHub publishes for each release asset (x86_64 and aarch64 musl), and setup stops when the download fails or differs, rather than running the upstream installer;
  - the Python tools come from `requirements-dev.txt` by hash;
  - pnpm comes only through corepack, which checks what it downloads.
- `.github/dependabot.yml`: the pip entry's comments name the `.in` and `.txt` files. The 3-day cooldown stays.
- `tools/check-local.sh` and `docs/validation-evidence.md`'s local steps install `requirements-ifc.txt` by hash, not `ifcopenshell>=0.8.0,<0.9.0`.
- 43 `tools/re` scorers' docstrings and `docs/validation-evidence.md` name the IfcOpenShell `requirements-ifc.txt` pins rather than 0.8.5 (Measure has run them on 0.9.0.post1 since #795, outputs byte-identical).

## Testing

- `pip install --require-hashes -r tools/ci/requirements-dev.txt` in a fresh Python 3.12 venv (macOS arm64), and `-r tools/ci/requirements-ifc.txt` in fresh 3.10 and 3.12 venvs: all install, and `ifcopenshell` 0.9.0.post1 (numpy 2.2.6 on 3.10, 2.5.4 on 3.12), `pytest` 9.1.1, `jsonschema` and `maturin` 1.15.0 import or run.
- This pull request's CI installs the IfcOpenShell set in the IfcOpenShell job and the test set in the Python wheel and env config jobs on Linux, and its Measure run installs the IfcOpenShell set too. On `main` the wheel job also installs the test set on macOS and Windows.
- `shellcheck` and `bash -n` pass on `.cursor/install.sh`; `actionlint` reports only the existing `$/` action references.

## 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 (see `CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`)

## Breaking changes

None to the crate. A pin change in `tools/ci/requirements-*.in` now needs the matching `.txt` regenerated with the command at its top.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Work in the ci area. dependencies Pull requests that update a dependency file type:ci Continuous integration or automation work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IfcOpenShell 0.9: Measure's scorers lose their file and cannot mesh walls

1 participant