Skip to content

research(re): the W7 scorers count apart the values on a Tag Revit's export gives more than one object (#1576) - #1581

Merged
DrunkOnJava merged 4 commits into
mainfrom
measure/1576-repeated-tags-apart
Nov 9, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
measure/1576-repeated-tags-apart

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

tools/re/qtos_vs_ifc.py and tools/re/psets_vs_ifc.py stop 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 wall Heights 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:
    • A value on a repeated Tag is counted in apart and 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).
    • One line gives the count (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.
    • It replaces the two lines 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 printed, which scored these values against one piece.
  • tools/re/psets_vs_ifc.py:
    • It keeps every piece's value of a property on a repeated Tag. Where they differ (same to 1e-5), the value is counted apart, in none of equal, different and missing: no piece stands for the element. The line is values 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.
    • Where the pieces hold one value it is scored against the piece held, as before, and one line says how many values that is and how they score.
  • 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.

  • Local, synthetic. Core Interior's rvt-rs export (from Measure run 42571962248) scored against a copy of itself in which three pairs of walls share a Tag. Quantities: the old scorer counted 2,549, 3 missing, and one Width apart as a different type; the new one counts 2,544, none missing, and 6 values apart on 3 Tags (Height 3 missing against the piece held, Width 2 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.
  • Measure, the same code with each side's scorers. main at 50e22fc, every model (samples of every year, the BIM4LCA office, the Revit 2025 models, held-out, racadv and BIMcollab): run 42576079664 with main'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: every ifc.sha256 is equal, so no export moves.
  • What moves in W7's counts (each value that moves was missing, unless said; nothing goes from equal or different to missing anywhere):
    • Quantities, 17 open models: BIM4LCA office as built and at permit, 10 values on 9 Tags each (missing 10,002 to 9,992 of 39,764 to 39,754 as built; 9,978 to 9,968 of 40,016 to 40,006 at permit; equal 29,761 and 30,037 and different 1 as before); its two terrain variants, 10 on 5 each; 13 of puzzbobb's Revit 2025 models (roofs, rooms and stairs), 8 on 1 Tag each.
    • Quantities, 10 held-out models (counts only): Warmond 504 values on 131 Tags (equal 363 to 279, different 50 to 5, missing 2,999 to 2,624; the walls' Height 91 equal, 0 different, 90 missing of 181 on the walls Revit writes once); modelo_bim, the four rvt-holdout files of 2024 to 2027 and the four rvt-holdout-office files of 2024 to 2027, 9 or 10 values on 1 Tag each. No other model holds a quantity on a repeated Tag.
    • Properties: BIM4LCA office as built, 12 values on 6 Tags (Pset_SpaceCommon.Reference and Pset_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

  • The scorers' output only changes; no export changes (every ifc.sha256 equal across the two runs).
  • What moves in W7's counts is listed under Testing, and the criteria page's counts are updated.
  • No emojis, private paths or PII. Held-out models appear as counts only.

Legal and contribution hygiene

  • Apache-2.0. No Autodesk source, internals or NDA material.

Breaking changes

None.

…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
DrunkOnJava force-pushed the measure/1576-repeated-tags-apart branch from ab56307 to 5b06054 Compare November 9, 2026 07:42
@DrunkOnJava DrunkOnJava changed the title research(re): the quantity scorer counts the values on a Tag Revit's export gives more than one object apart, and the property census counts them beside its totals (#1576) research(re): the W7 scorers count apart the values on a Tag Revit's export gives more than one object (#1576) Nov 9, 2026
@DrunkOnJava
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
DrunkOnJava merged commit 80c7bfc into main Nov 9, 2026
78 of 80 checks passed
@DrunkOnJava
DrunkOnJava deleted the measure/1576-repeated-tags-apart branch November 9, 2026 08:17
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant