Repository navigation
red: SerialNumber test alone (#35) - #607
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 run recorded (run 37142425779: 50 of 50 SerialNumber values missing on RE1 Electrical); the test is cherry-picked onto the item branch with that output. |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
…ialNumber sets (#35) (#608) RE-156 (#606) found Revit's SerialNumber stored as a text entry whose id is the shared parameter `Serial Number`'s ElementId, inside the element's own data object, and the parameter's definition as a data object holding its group, name and GUID. This reads it. - `partition_room_parameters`: `find_parameter_definitions` (parameter name -> ElementId, from the definitions' strings) and `scan_text_parameter`, RE-153's scan for any element set and parameter id; `scan_room_text_parameter` now calls it. - `partition_schema_mvp`: `m_serial_number` on every element with a value. - `export_content`: `Pset_ManufacturerOccurrence.SerialNumber` (IfcIdentifier), and on a building-element proxy `Pset_PrecastConcreteElementGeneral.SerialNumber` too, as Revit's RE1 Electrical (12 flow terminals, 19 proxies) and Plumbing (1 flow terminal) exports write them. Test: `tests/serial_number.rs` (real target). Red on main: draft #607, run 37142425779, 50 of 50 values missing on RE1 Electrical; the output is in the test commit's message. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Adds heuristic partition binary parsing and changes IFC property-set output for elements with Serial Number; export fidelity impact but no security or auth surface. > > **Overview** > **RE-156** wires Revit’s shared parameter **Serial Number** from partition data through to IFC export so values match Revit’s own exports. > > Partition scanning is generalized: **`scan_text_parameter`** reads any element’s text parameter by id inside its data object; **`find_parameter_definitions`** maps project/shared parameter **names** to ElementIds from definition blobs. Room floor-finish scanning now delegates to the shared helper. During MVP decode, **`attach_serial_numbers`** sets **`m_serial_number`** on walls, columns, doors, windows, slabs, and generic products when the parameter exists. > > IFC export adds **`serial_number_property_sets`**: **`Pset_ManufacturerOccurrence.SerialNumber`** (`IfcIdentifier`), and the same on **`Pset_PrecastConcreteElementGeneral`** for **`IFCBUILDINGELEMENTPROXY`**, emitted alongside existing Reference property sets. > > A new **`tests/serial_number.rs`** corpus test (RE1 Electrical/Plumbing vs reference IFC) and CI **`serial_number`** real target guard parity. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 80adbc2. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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 PR: the new test serial_number on its own, to show it red on CI before the implementation. Closed once the red run is recorded.
Note
Low Risk
Test-only change plus CI target registration; no production export or runtime behavior is modified.
Overview
Adds a real-file integration test for RE-156 (#35) that locks IFC
SerialNumberon tagged elements to match Revit’s reference IFC4 exports for RE1 Electrical (31 elements) and Plumbing (1), acrossPset_ManufacturerOccurrenceandPset_PrecastConcreteElementGeneral.The test exports via
RvtDocExporter, parses STEP for property-setSerialNumbervalues keyed by elementTagand set name, and compares them to the pairedRE1-*.ifcfiles underRVT_PROJECT_CORPUS_DIR(skips when corpus or files are missing). No exporter changes in this PR—it is intended to run red until SerialNumber mapping is implemented.Registers the new
serial_numbertarget intools/ci/test-targets.txtso CI runs it with the otherrealcorpus tests.Reviewed by Cursor Bugbot for commit bd04c14. Configure here.