Repository navigation
test: red run for B21 pipe Length (do not merge) - #594
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
Owner
Author
|
Red output recorded: 12 of 12 flow-segment Lengths on RE1 Mechanical's 6 pipes are missing on main (run 37136045232). |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
) B21, third slice of #35. Revit's export of the RE1 models gives every pipe Pset_FlowSegmentPipeSegment.Length and Pset_FlowSegmentDuctSegment.Length (IfcPositiveLengthMeasure), its length between its ends. Each pipe whose ends RE-131 reads now carries both. - **Test (separate commit):** tests/segment_length.rs on RE1 Mechanical and Plumbing. Red on main in draft #594 (run 37136045232): 12 of 12 are missing on Mechanical. The red output is in the commit message. It passes on the runners, every pipe within 0.1 mm of Revit's. - Ducts are not covered: their length needs RE-134's width and height, which are not yet read in code. **Measure** (run 37136386732, psets_vs_ifc, equal Revit values before → after) | model | equal before → after | |---|---| | RE1 Mechanical | 98 → 108 | | RE1 Plumbing | 244 → 360 | The scorer counts 2 values on Mechanical and 10 on Plumbing as different. Those are within 0.1 mm: the scorer compares at 6 significant figures, while the writer rounds metres to 6 decimals. A tolerance follows in the scorer. Every other model is identical to main.
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.
Scratch branch: runs tests/segment_length.rs on main's code to record the red output for #35. Closed and deleted once the output is recorded.
Note
Low Risk
Test-only and CI manifest change; no exporter or runtime behavior is modified in this diff.
Overview
Adds a real-file integration test for issue #35: rvt-rs IFC exports must expose
LengthonPset_FlowSegmentPipeSegmentandPset_FlowSegmentDuctSegmentfor pipes that share Revit’sTag, within 0.1 mm of Revit’s RE1 Mechanical/Plumbing IFC reference files.The new
tests/segment_length.rsparses STEP/IFC text (entity index, property-set wiring, SI length scaling) and compares Revit’sIFCFLOWSEGMENTreference export to rvt-rs’sIFCPIPESEGMENTexport whenRVT_PROJECT_CORPUS_DIRis set; it skips missing corpus or files.segment_lengthis registered intools/ci/test-targets.txtas arealtarget so CI and the local gate run it.Per the PR description, this branch is intended as a red run on current main to capture failing output—not a fix for export behavior.
Reviewed by Cursor Bugbot for commit 2fd36f5. Configure here.