Skip to content

red: B33 MEP systems test alone (#528) - #629

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b33-mep-systems
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b33-mep-systems

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch PR: the new test mep_systems on its own, to show it red on CI before the implementation. Closed once the red run is recorded.


Note

Low Risk
Test-only and CI manifest change; no production export logic is modified, though CI may fail until MEP system export is implemented.

Overview
Adds a real-file integration test for RE-162 (B33, #528) that will enforce MEP IfcSystem parity with Revit’s IFC4 export on the RE1 Mechanical, Plumbing, and Electrical models.

The new re1_mep_systems_are_revits test reads reference RE1-<discipline>.ifc from RVT_PROJECT_CORPUS_DIR, parses IfcRelAssignsToGroup → IfcSystem groupings by system name and element Tag, exports the matching .rvt via RvtDocExporter, and asserts each Revit system name maps to the same member tags among elements rvt-rs actually writes. It skips when the corpus env var or files are missing and checks expected system counts (5 / 8 / 13).

mep_systems is registered in tools/ci/test-targets.txt as a real target so CI runs it with the other corpus tests. This is intended as a red test ahead of the exporter work, not the implementation itself.

Reviewed by Cursor Bugbot for commit 4609cb5243b880d14f78057f50a8d8d5b479de08. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red recorded (run 37148704032): no IfcSystem written. Closing the scratch PR.

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b33-mep-systems branch October 3, 2026 19:46
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
… (#631)

RE-162 (B33, #528). An MEP system is an RbsHvacSystem, RbsPipingSystem
or RbsElectricalSystem data object; its members are the exported
elements whose own data objects hold its id. HVAC and piping systems are
named by the object's first ASCII string, electrical systems by their
circuit number (Revit's <unnamed> where it is empty). Writes IfcSystem,
IfcRelAssignsToGroup and IfcRelServicesBuildings.

Red on main: CI run 37148704032 (draft #629), RE1 Mechanical 5 of 5
systems missing.
Green: CI run 37149305337, Corpus health tier 2: test
re1_mep_systems_are_revits ... ok (all 26 of Revit's systems on RE1
Mechanical, Plumbing and Electrical, same name and members); every other
corpus target unchanged. The doc fix follows that run.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Touches IFC export and partition binary heuristics for system
membership; incorrect parsing could mis-group MEP elements, but scope is
additive with corpus regression tests.
> 
> **Overview**
> Adds **end-to-end MEP system export** so rvt-rs can write Revit's
HVAC, piping, and electrical systems as **`IfcSystem`** groups, matching
Revit's IFC4 pattern (`IfcRelAssignsToGroup` +
`IfcRelServicesBuildings`).
> 
> A new **`partition_mep_systems`** scanner (Revit 2024+) finds
`RbsHvacSystem`, `RbsPipingSystem`, and `RbsElectricalSystem` data
objects, derives names (ASCII string for HVAC/piping, circuit number for
electrical), and infers members from elements whose payloads reference
the system id. **`partition_schema_mvp`** stamps each exported element
with `m_mep_system_<id>` fields; **`export_content`** rolls those into
**`IfcEntity::System`** records; **`step_writer`** emits the STEP
entities, skipping systems with no exported building-element members.
> 
> Corpus integration test **`re1_mep_systems_are_revits`** compares
system names and member tags against Revit's RE1
Mechanical/Plumbing/Electrical IFC exports; CI adds the
**`mep_systems`** target.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
7ef40bd. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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