Skip to content

ci: IfcOpenShell validates what the exporter writes for the tier-1 projects, not the committed fixtures (C9) - #719

Merged
DrunkOnJava merged 4 commits into
mainfrom
ci/c9-live-fixtures
Oct 5, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
ci/c9-live-fixtures

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

From the CI audit of 2026-10-05. The IfcOpenShell job validated tests/fixtures/synthetic-project.ifc and synthetic-structural.ifc. Only tests that never run (classed unit) regenerate those files, behind DUMP_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.

…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
DrunkOnJava merged commit 6373a2f into main Oct 5, 2026
24 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/c9-live-fixtures branch October 5, 2026 13:27
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 -->
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