Skip to content

test: red run for B21 duct fields (do not merge) - #598

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b21-duct-fields
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b21-duct-fields

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch branch: runs tests/duct_fields.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 change plus CI registration; no production export logic is modified in this diff.

Overview
Adds a real-file integration test (duct_fields) that gates IFC export parity for RE1 Mechanical ducts: for each of Revit’s 25 rectangular ducts (matched by Tag), it checks that rvt-rs’s IfcDuctSegment export carries the same Length values (in flow-segment property sets, within 0.1 mm) and Reference strings (distribution/QTO sets) as Revit’s reference RE1-Mechanical.ifc.

The test exports via RvtDocExporter, parses STEP entities/property relations locally, and skips when RVT_PROJECT_CORPUS_DIR or corpus files are missing. tools/ci/test-targets.txt registers duct_fields under the real class so CI/local gates run it with other corpus checks.

Per the branch intent, this is a red acceptance test for #35 / RE-134 until exporter behavior is implemented.

Reviewed by Cursor Bugbot for commit c0291e8. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red output recorded: 100 of 100 duct Length and Reference values on RE1 Mechanical are missing on main (run 37136951323).

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b21-duct-fields branch October 3, 2026 16:32
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
…th and Reference (#35, #96) (#599)

B21, fourth slice of #35, and part of #96.

RE-134 found where a duct's or pipe's curve object keeps its fields, at
its RbsCurveConnectorManager anchor: width at +8, height at +16, type id
at +64. This reads them in code.
- The anchors are one per curve. Each goes to the one element whose box
holds the points of the first two connector entries after it. A
neighbour joined at one end holds only that end. The first cut, which
used the first entry in the stream, missed 13 ducts.
- A duct now carries its type and that type's name. An axis-aligned duct
also carries its length: the box dimension its section leaves.
- It gets both flow-segment Length sets, as pipes do (#595), and its
type's name as Reference (#592).
- Its system family follows its shape, which is not read, so it keeps
its Duct-<id> name.

- **Test (separate commit):** tests/duct_fields.rs on RE1 Mechanical's
25 ducts. Red on main in draft #598 (run 37136951323): 100 of 100 values
missing. It passes on the runners (CI run 37137543874).

**Measure** (run 37137540566, RE1 Mechanical, head against main)

| | before | after |
|---|---|---|
| Pset_DistributionFlowElementCommon.Reference | 48 of 73 | 73 of 73 |
| Pset_QuantityTakeOff.Reference | 49 of 74 | 74 of 74 |
| Flow-segment Length, each set | 5 of 31 | 29 of 31 |
| Type names | 49 of 74 | 74 of 74 |

The 2 Lengths counted as different are within 0.1 mm. This branch's
scorer predates the tolerance in #597. Every other model is identical to
main.
@cursor cursor Bot mentioned this pull request Oct 3, 2026
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
Records #595, #597 and #599 in B21's progress, with the property-set
scores measured on main at #599's merge (Measure run 37138175399).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only backlog update; no runtime, export, or CI logic
changes in this diff.
> 
> **Overview**
> Updates **B21** (parameters milestone) in `BACKLOG.md` to reflect work
merged through **#599**, not new product code.
> 
> **#595** is recorded as done (pipe `Length` in both flow-segment sets,
with `tests/segment_length.rs` and its red run). **#597** notes that the
`psets_vs_ifc` Measure scorer now treats numeric properties as equal
within a relative **1e-5** tolerance so tiny writer rounding no longer
counts as a mismatch. **#599** documents RE-134 duct curve fields
(width, height, type at the connector anchor) plus per-duct type,
`Length`, and `Reference`, with `tests/duct_fields.rs` and draft
**#598**’s red run.
> 
> Adds a **Measure run 37138175399** snapshot table (equal counts per
RE1 model, none “different”) and notes progress posted on **#35**,
**#96**, and **#227**. The open-items list drops the
duct-`Length`/RE-134 note because **#599** covers it.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
2e023ef. 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