Repository navigation
red: B46 native phases on Revit 2025 (scratch, do not merge) - #675
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
… demolished phases (B46)
Owner
Author
|
Red draft for B46; its run (37228615540) is recorded in the rebuilt PR's test commit. |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…328) (#676) native_document::extract admitted only 2023, 2024 and 2027 (framing unvalidated elsewhere). With the gate opened on re/b46-native-2025, every framing, record-count and body-size check holds on all nine 2025 files (RE1 x4, Autodesk's five samples) and all five 2026 samples (Measure runs 37226017160, 37227895778), and each element body carries m_createdPhaseId and m_demolishedPhaseId. The gate now admits 2023 to 2027. Red on draft #675 (run 37228615540); the output is in the test commit. B38 follows from it: RE1 Plumbing's tank 442378, which Revit's export leaves out, was created in New Construction (3), is demolished in no phase and is in the main model, so phase is not why it is left out. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes which Revit file versions are accepted on the native framing/extraction path; incorrect assumptions could affect record parsing for 2025/2026 files, though the change is paired with corpus validation. > > **Overview** > **Extends the native record extraction path to Revit 2025 and 2026** by widening the version guard in `native_document::extract_records` from an explicit `2023 | 2024 | 2027` list to **`2023..=2027`**, with a matching doc note in `native_index` for the five-field ElemTable contract. > > Adds a **corpus-backed integration test** (`tests/native_phases.rs`) that runs `native_document::extract` on RE1 2025 models when `RVT_PROJECT_CORPUS_DIR` is set, and asserts exported `FamilyInstance` elements expose **`m_createdPhaseId`** / **`m_demolishedPhaseId`** in projected metadata (created phase must exist in the file’s `ProjectPhase` set; demolished must be `-1`). Registers **`native_phases`** in `tools/ci/test-targets.txt` so CI runs it with other real-file targets. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 91fefee. 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.
Red run for B46's test; the implementation lands in a rebuilt PR.
Note
Low Risk
Test and CI manifest changes only; no runtime or extraction logic is modified in this diff.
Overview
Adds a real-file integration test (
native_phases) for B46 (#328): on Revit 2025 RE1 models it runsnative_document::extract, collectsProjectPhaseelement ids, and for FamilyInstance elements that appear in Revit’s IFC export (byTag) assertsm_createdPhaseIdreferences one of those phases andm_demolishedPhaseIdis -1 (nothing demolished in these fixtures).The test uses
RVT_PROJECT_CORPUS_DIR(RE1-*.rvt+ matchingRE1-*.ifc), skips missing pairs, and fails if no model was checked when corpus files exist.tools/ci/test-targets.txtregistersreal native_phasesso CI/local gates run it with the other corpus tests.Per the PR note, this is intended as a red run ahead of the extraction implementation in a follow-up PR.
Reviewed by Cursor Bugbot for commit 499e888. Configure here.