Repository navigation
ci: IfcOpenShell validates what the exporter writes for the tier-1 projects, not the committed fixtures (C9) - #719
Merged
Merged
Conversation
…ojects, not the committed fixtures (C9) From the CI audit of 2026-10-05: the IfcOpenShell job validated tests/fixtures/synthetic-project.ifc and synthetic-structural.ifc, which only tests that never run (classed unit) regenerate behind DUMP_IFC, so it checked fixed files rather than current exporter output. Regenerating them would run those unit tests, which the maintainer chose not to (2026-10-05). The job now exports the three tier-1 projects (architectural 2024, MEP 2024, structural 2023) with the current rvt-ifc and validates each against the IFC4 schema and its declared attribute counts; its real-project steps are unchanged. The local gate's IfcOpenShell check does the same. The fixtures stay as published samples for consumers.
# Conflicts: # .github/workflows/ci.yml
DrunkOnJava
added a commit
that referenced
this pull request
Oct 5, 2026
… (C9) (#730) C9 of the CI audit, second half. The tier-1 exports that CI validates (#719) are small (24 instances) and never reach several writer paths: I-shape profiles and profile set usages appear only on the structural samples. Measure's samples run (`-f samples=true`, 44 of Autodesk's sample projects, 2016 to 2027) now writes `schema.txt` for every export: - `arity:` the declared attribute counts, from `tools/ci/ifc_schema_arity.py`, on every export; - `validate:` IfcOpenShell's full schema validation, as a short, stable summary from the new `tools/ci/ifc_validate_summary.py` (a count and at most 20 sorted findings, no timing), on exports up to 30 MB, others marked as skipped. The compare job diffs base against head, so a writer change that breaks the schema on any sample shows there. Evidence: Measure run 37315732546 on this branch with samples. All 44 samples got a `schema.txt`, every one `findings 0`, none over 30 MB, no arity errors. The Measure step took 8 min 8 s. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Adds CI measurement and a small validation helper only; no runtime export or product behavior changes. > > **Overview** > **CI measure** now records IFC4 schema checks for every Autodesk sample-project export (C9), so the compare job can surface schema regressions on writer paths that only those samples hit. > > After each sample `rvt-ifc` run, measure writes **`schema.txt`**: an **`arity:`** section from existing `ifc_schema_arity.py` on all non-empty exports, plus **`validate:`** from the new **`ifc_validate_summary.py`** (IfcOpenShell validation as a stable `findings <n>` line and up to 20 sorted messages, no timing). Exports over 30 MB skip full validation with an explicit skipped line. > > The new script treats unreadable IFC as a finding via a concise `unreadable:` error line. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f0ea9b9. 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.
From the CI audit of 2026-10-05. The IfcOpenShell job validated
tests/fixtures/synthetic-project.ifcandsynthetic-structural.ifc. Only tests that never run (classed unit) regenerate those files, behindDUMP_IFC, so the job checked fixed files rather than the current exporter's output. Regenerating them in CI would mean running those unit tests, which the maintainer chose not to do.The job now exports the three tier-1 projects (architectural 2024, MEP 2024, structural 2023) with the current
rvt-ifc, and validates each against the IFC4 schema and its declared attribute counts. Its real-project steps (Einhoven, Core Interior, the witnesses) are unchanged, and the local gate's IfcOpenShell check does the same. The fixtures stay as published samples for consumers.What it covers, honestly. The tier-1 projects are small synthetic files, and their exports are 1.6 to 1.8 KB with 24 instances each across 16 entity types (run 37308484939: schema and arity both pass). They check far less than the fixtures appeared to (mapped items, I-shape profiles, faceted breps). Those writer paths are exercised only by the unit-classed
ifc_synthetic_*tests, which do not run, and by whatever the real projects export. That gap is logged in BACKLOG.md.This branch merged main to resolve a conflict with C5. The first merge commit carried conflict markers, and the next commit removes them.