Repository navigation
research(re): the W7 scorers count apart the values on a Tag Revit's export gives more than one object (#1576) - #1581
Merged
Conversation
…export gives more than one object apart, and the property census counts them beside its totals (#1576) A wall Revit's export splits at its storeys keeps its ElementId as each piece's Tag, so the scorers' dict held one piece for the whole element. qtos_vs_ifc.py now counts a quantity on such a Tag apart and scores it as neither equal, different nor missing, and prints what it would have scored against the piece held beside the count. psets_vs_ifc.py keeps its totals and prints how many values sit on such Tags and how they score. The held-out scrub allows the three new count formats and no longer the two lines of #1535.
…ted-Tag pieces hold different values (#1576) Warmond's pieces held no different property values, but the held-out bim-whale model shows 2 different values on Tags Revit's export repeats, so a value there can be scored against whichever piece the dict kept. Where a Tag's pieces hold different values for a property, no piece stands for the element: those values are counted apart, in none of equal, different and missing. Where the pieces agree the value is scored against the piece held, as before, and a line beside the totals counts it. The scrub allows the new count lines.
DrunkOnJava
force-pushed
the
measure/1576-repeated-tags-apart
branch
from
November 9, 2026 07:42
ab56307 to
5b06054
Compare
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 07:43
…aces with one Name share a key too (#1576) On the office, all 12 property values and 6 of the 10 quantities counted apart sit on IfcSpace keys that two spaces share by Name, not on the pieces of a wall split at its storeys. The printed lines, the scrub's allowlist, the docstrings and the criteria page say so. The census also keeps each object's last value of a property, so a set an object holds twice is not a disagreement between objects.
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…rom crates.io (#1585) (#1586) ## Summary `ci.yml` installs `cargo-nextest`, `cargo-semver-checks`, `cargo-public-api`, `cargo-deny` and `cargo-audit` through a new composite action, `.github/actions/install-cargo-tool`. It runs `taiki-e/install-action` and, if that step fails, builds the same pinned version from crates.io with `cargo install --locked --force`, so a long 504 from GitHub's release host cannot fail the job (#1585). A version that does not exist, or a crate that does not build, still fails it. Closes #1585. ## Motivation On 2026-11-09 GitHub's release host (`release-assets.githubusercontent.com`) answered HTTP 504 for hours. It failed the sccache download on Windows five times in a row (#1572, #1573), then the actionlint download (#1574, #1577), and then `Install cargo-nextest` in `full / build + real files / macos-26 / stable`: `taiki-e/install-action` retried 11 times from 07:47:08Z to 07:48:04Z, got 504 each time, and failed the job ([run 42581131725](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42581131725) on #1581's head 5b06054, and again on its next head). Nothing was tested, so the red said nothing about the change. The action's own fallback, `cargo-binstall`, fetches from the same host, so it fails together with the download. crates.io's download host is a different one. ## Changes - `.github/actions/install-cargo-tool/action.yml` (new): inputs `crate` and `version`. Step one runs `taiki-e/install-action` (pinned as `ci.yml` pinned it, v2.90.2) with `continue-on-error`. Step two runs only if step one failed: it prints a warning naming #1585 and runs `cargo install --locked --force "$CRATE" --version "$VERSION"`. `--force` because a binary may already be in `~/.cargo/bin` without cargo's record of it (`Swatinem/rust-cache` restores one that `install-action` put there on an earlier run), which `cargo install` refuses to overwrite. The inputs reach the script through `env`, not through the expression. - `.github/workflows/ci.yml`: `cargo-nextest` in the test matrix, the i686 job and the corpus job, `cargo-semver-checks` and `cargo-public-api` (two steps now, one per tool), `cargo-deny` and `cargo-audit` use it, at the versions they had. - Not changed: shellcheck (not a cargo tool, and #1577 gave `env config lint` its own actionlint fallback), the `wasm-tools` action, and `scheduled-checks.yml`, `fuzz.yml` and `release-binaries.yml`, which still use `install-action` alone. ## Testing Unit tests: N/A. The check is a CI run with the download forced to fail. - `python3 -c 'import yaml; yaml.safe_load(...)'` on `ci.yml` and the action; actionlint with the repository's config on every workflow exits 0; `tools/ci/check-workflows.py` passes (74 uses of this repository's own actions, each input declared); zizmor reports only the pre-existing `dependabot-cooldown` warnings. - **On a runner, with the download forced to fail** by a temporary commit (892db01, the action asked `install-action` for version `0.9.1469` instead of `0.9.146`, which does not exist; reverted in the last commit, so this pull request changes `ci.yml` and the action alone). The first forced run ([42582243207](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42582243207)) found a defect: the i686 and corpus jobs failed on `error: binary 'cargo-nextest' already exists in destination`, the restored binary above, and `--force` fixed it. The second ([42582521323](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42582521323), head 3507a58) passed `full / CI passed` with every cargo tool built from crates.io after `install-action` failed: `cargo-nextest` on ubuntu, windows and macos-26 and in the i686 and corpus jobs, `cargo-deny`, `cargo-audit`, and `cargo-semver-checks` and `cargo-public-api`. The job log of `cargo deny` shows `install-action`'s `cargo-binstall` fatal error, then the warning `GitHub's release host did not serve cargo-deny 0.20.2 (#1585); building it from crates.io`, then the job passing. The jobs took longer by the build: `semver checks` 6m56s against 2m33s and `macos-26` 12m25s against 6m26s on #1518's head; the build runs only when the download fails. - **The normal path** (the download works, nothing is built) is this pull request's own `full / CI passed` on its final head. ## Audit-honesty checklist - [x] A wrong version, or a crate that does not build, still fails the job: the second step's exit status is the action's. - [x] The fallback builds the version `ci.yml` pins, `--locked` to the lockfile its authors released; the binary is not checked against a hash of its own, which a source build cannot offer. The download's own checksum check stays on the normal path. - [x] No emojis, private paths or PII. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. ## Breaking changes None.
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
tools/re/qtos_vs_ifc.pyandtools/re/psets_vs_ifc.pystop scoring a Tag that Revit's export gives more than one object against whichever piece their dict kept (#1576). A quantity on such a Tag, and a property whose pieces hold different values, are counted apart: in none of equal, different and missing. A property whose pieces hold one value is scored against the piece held, as before, and a line beside the totals counts it.Motivation
Revit's export writes a wall it splits at its storeys as several objects under one Tag, the wall's ElementId. Both scorers key every object by Tag in a dict, so one piece's values stood for all of them. For quantities that is wrong: a piece's
Height, areas and volumes are not the whole wall's, which is all rvt-rs writes for the element. On the held-out Warmond (Revit 2021, counts only), #1578's count showed that all 45 different wallHeights sit on the 84 walls Revit's export repeats: 0 equal, 45 different and 39 missing there, against 91 equal and none different on the walls it writes once. 40 of the 45 that the scrubbed output lists are exactly twice Revit's. The property census had the same hole where the pieces of a Tag hold different values for a property: which one it scored against was an accident of the dict.Changes
tools/re/qtos_vs_ifc.py:apartand skipped: it is in none of equal, different and missing, in the "known to be wrong" and "counted apart" classes already there, or in the rvt-rs values Revit does not write (those it has none for in the piece held are counted in the same line).values on a Tag Revit's export gives more than one object, counted apart (#1576): N of Revit's on M such Tags, and K of rvt-rs's with none in the piece held), and one line per quantity gives it with what it would have scored against the piece held. That breakdown is not in the totals.tools/re/psets_vs_ifc.py:sameto 1e-5), the value is counted apart, in none of equal, different and missing: no piece stands for the element. The line isvalues on a Tag Revit's export gives more than one object, whose pieces hold different values, counted apart (#1576): N on M such Tags, with one line per property.tools/ci/scrub-holdout-results.sh: the held-out scrub allows the new count formats (fixed text and digits only, inside the anchored^(...)$match) and no longer the two from fix(ifc): Revit 2015 to 2023 walls write their Height where their record names nothing joined to or cutting them; their areas and volumes stay out (#1535) (RE-364) #1578.docs/release-1.0-criteria.md: the paragraph on how W7 is measured names both classes, and the office's quantity and property counts it cites are the new scorers'.Testing
Unit tests: N/A. Everything below is end to end.
Widthapart as a different type; the new one counts 2,544, none missing, and 6 values apart on 3 Tags (Height3 missing against the piece held,Width2 equal and 1 different). Properties:main's scorer gave 4,159 values, 4,155 equal and 4 different; the new one gives 4,155, all equal, with 4 values on 1 Tag counted apart (the pieces of that Tag are two different walls) and 14 on 3 Tags scored against the piece held. The held-out scrub, run on those outputs, keeps the new lines and nothing with a Tag in it.mainat 50e22fc, every model (samples of every year, the BIM4LCA office, the Revit 2025 models, held-out,racadvand BIMcollab): run 42576079664 withmain's scorers and run 42578988937 with this branch's (at ab56307b; the later commits change no scorer). All 2,683 files of the two runs are byte for byte equal except the quantity and property scorers' outputs of 34 models, the held-out counts files, and logs and runner records: everyifc.sha256is equal, so no export moves.Height91 equal, 0 different, 90 missing of 181 on the walls Revit writes once);modelo_bim, the fourrvt-holdoutfiles of 2024 to 2027 and the fourrvt-holdout-officefiles of 2024 to 2027, 9 or 10 values on 1 Tag each. No other model holds a quantity on a repeated Tag.Pset_SpaceCommon.ReferenceandPset_SpaceHeaterTypeCommon.Reference, 6 each): 6 had scored equal and 6 missing, so equal 44,428 to 44,422, missing 1,381 to 1,375, of 45,810 to 45,798; at permit equal 44,577 to 44,571, missing 1,391 to 1,385, of 45,969 to 45,957. Held-out bim-whale (Revit 2021): 30 values on 10 Tags, all missing, so missing 5,924 to 5,894 of 9,337 to 9,307; its 2 different values on repeated Tags stay, because their pieces agree. On every other model no property's pieces disagree and the totals are unchanged.Audit-honesty checklist
ifc.sha256equal across the two runs).Legal and contribution hygiene
Breaking changes
None.