Skip to content

test: red run for B21 Pset_SpaceCommon (do not merge) - #587

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

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

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch branch: runs tests/space_common.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 wiring only; no production exporter changes, though CI may fail until #35 is implemented.

Overview
Adds a real-file integration test (space_common) for issue #35 / RE-153: every IfcSpace in rvt-rs’s IFC export must match Revit’s Pset_SpaceCommon on RE1-Architecture (11 rooms), keyed by space Name, including Reference and FloorCovering with the same STEP value representations.

The test parses STEP from Revit’s reference RE1-Architecture.ifc and from RvtDocExporter output, compares property maps, and skips when RVT_PROJECT_CORPUS_DIR or the corpus files are missing. space_common is registered in tools/ci/test-targets.txt as a real target so CI runs it with the other corpus checks.

This branch is intended as a red run on current main until exporter work lands; it does not change IFC export logic.

Reviewed by Cursor Bugbot for commit fa59e6d. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red output recorded: 11 of Revit's 11 Pset_SpaceCommon sets are missing on main (run 37131559218).

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b21-space-common branch October 3, 2026 15:02
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
B21, first slice of #35 (RE-153, #588).

Revit's export gives each room a Pset_SpaceCommon with two properties:
Reference (IfcIdentifier, the room's name and number) and FloorCovering
(IfcLabel, its Floor Finish). A room's Floor Finish is the text
parameter -1006903. Its entry is joined to the room through the
Adler-32-verified data object holding it.

**Commits**
- **Test:** tests/space_common.rs. Red on main in draft #587 (run
37131559218): 11 of Revit's 11 sets are missing. The red output is in
the commit message.
- **Implementation:**
- scan_room_text_parameter and enclosing_data_object read a room's text
parameter.
  - Rooms carry the new m_room_floor_finish field.
- PropertyValue::Label and ::Identifier write IfcLabel and
IfcIdentifier.
  - Each room gets Pset_SpaceCommon.
- **Pinned data**, with the maintainer's approval, in its own commit:
- Core Interior step.IFCPROPERTYSET goes from 970 to 1086 in both
project-count manifests.
  - The witness observations are regenerated (surface unchanged).

**Measure** (run 37131863056, head against main)
- RE1 Architecture: 11 new property sets, all equal to Revit's
(tests/space_common.rs passes on the runners).
- Core Interior: 116 new property sets, one per room, each with
Reference only, since its rooms hold no Floor Finish.
- Every other model's outputs are identical to main.
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