Skip to content

test: red run for B21 common References (do not merge) - #591

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b21-common-reference
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b21-common-reference

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch branch: runs tests/common_reference.rs on main's code to record the red output for #35. Closed and deleted once the output is recorded.


Note

Low Risk
Test and CI registration only; no exporter or library behavior changes, though CI may fail when the corpus is present until #35 is fixed.

Overview
Adds a real-file integration test (tests/common_reference.rs, RE-154 / #35) that exports the four RE1 *.rvt models and compares common property set Reference values against Revit’s reference *.ifc exports, keyed by element Tag when entity and Name match. The test parses STEP/IFC text (elements plus IFCRELDEFINESBYPROPERTIES → IFCPROPERTYSET) and fails on missing Revit references or extra/wrong ones; it skips Pset_SpaceCommon on the Revit side (covered elsewhere) and no-ops when RVT_PROJECT_CORPUS_DIR or corpus files are absent.

Registers the target as real common_reference in tools/ci/test-targets.txt so CI and the local gate run it with the other corpus-backed exporter checks. Intended as a red baseline on current main until exporter work lands.

Reviewed by Cursor Bugbot for commit 4b261d6. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red output recorded: 93 of Revit's Reference values on RE1 Architecture are missing on main (run 37133676030).

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b21-common-reference branch October 3, 2026 15:38
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
…name (#35) (#592)

B21, second slice of #35 (RE-154, #590).

On all four RE1 models, Revit's export gives every element these
Reference values, each holding the type's name:
- Pset_QuantityTakeOff.Reference (IfcIdentifier);
- its entity's common set's Reference (IfcIdentifier);
- on walls and slabs, Pset_ReinforcementBarPitchOf{Wall,Slab}.Reference
(IfcLabel).

No stored parameter holds the value; rvt-rs reads the type name from the
partition name entries (RE-38).

**Commits**
- **Test:** tests/common_reference.rs on the four RE1 models. Red on
main in draft #591 (run 37133676030): 93 of Revit's values are missing
on Architecture. The red output is in the commit message.
- **Implementation:** each element named Family:Type:ElementId gets
those sets. Only entities measured on the RE1 exports are listed. A door
or window written as its opening (RE-84) gets none.
- **Fix:** the first cut also skipped walls and slabs, whose types carry
the no-geometry flag too.
- **Pinned data**, with the maintainer's approval, in its own commit:
  - Core Interior step.IFCPROPERTYSET goes from 1086 to 2670.
  - The witness observations are regenerated (surface unchanged).

**Measure** (run 37134311032, head against main)

| model | property sets added |
|---|---:|
| Core Interior | 1,584 |
| RE1 Architecture | 93 |
| RE1 Electrical | 54 |
| Einhoven | 21 |
| RE1 Mechanical | 2 |

Every scorer output is identical to main, and tests/common_reference.rs
passes on the runners.
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