Repository navigation
ci(measure): every sample's export is checked against the IFC4 schema (C9) - #730
Merged
Merged
Conversation
… (C9) The writer paths the committed synthetic fixtures exercised (IFC-20, -21, -24, -30) are reached by no real export in CI: a probe over the six models and Autodesk's samples (run 37311218014) found I-shape profiles and material profile set usages only on the 2024 to 2026 rst_basic samples, and mapped items, representation maps and faceted breps on none. Measure now records schema.txt for every sample's export: the attribute-count check (ifc_schema_arity.py) on all, and IfcOpenShell's full validation (ifc_validate_summary.py, a stable summary) on exports up to 30 MB. The compare job's diff of base against head shows any change.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 5, 2026
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.
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 writesschema.txtfor every export:arity:the declared attribute counts, fromtools/ci/ifc_schema_arity.py, on every export;validate:IfcOpenShell's full schema validation, as a short, stable summary from the newtools/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 onefindings 0, none over 30 MB, no arity errors. The Measure step took 8 min 8 s.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-ifcrun, measure writesschema.txt: anarity:section from existingifc_schema_arity.pyon all non-empty exports, plusvalidate:from the newifc_validate_summary.py(IfcOpenShell validation as a stablefindings <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.Reviewed by Cursor Bugbot for commit f0ea9b9. Configure here.