Skip to content

ci(measure): every sample's export is checked against the IFC4 schema (C9) - #730

Merged
DrunkOnJava merged 2 commits into
mainfrom
ci/c9-sample-schema
Oct 5, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
ci/c9-sample-schema

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

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.


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.

Reviewed by Cursor Bugbot for commit f0ea9b9. Configure here.

… (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
@DrunkOnJava
DrunkOnJava merged commit bc9dead into main Oct 5, 2026
18 of 29 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/c9-sample-schema branch October 5, 2026 19:50
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