Skip to content

fix(ci): the same-project bodies check reads a property set that holds an enumerated or list value (#1524) - #1590

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/bodies-enumerated-values
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/bodies-enumerated-values

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

tools/re/bodies_across_saves.py skips a property that holds no single value instead of raising on it, so the same-project gate can judge an export in which a product carries an enumerated or list property.

Motivation

Measure run 42585494298 on #1524 failed Same-project gates for the six rme_advanced and rme_basic saves of 2025, 2026 and 2027. Each one's bodies_across_saves.txt holds a traceback in place of its result: AttributeError: entity instance of type 'IFC4.IfcPropertyEnumeratedValue' has no attribute 'NominalValue', from properties. The other nine samples (rac_advanced, rac_basic, rst_basic, each of 2025 to 2027) passed.

#1524 types the 724 and 728 ducts of those samples, and a typed duct carries Pset_DuctSegmentTypeCommon.Shape, which the writer emits as an IfcPropertyEnumeratedValue (#686). properties read prop.NominalValue on every property of every product it compares, and an enumerated or list value has none. No export the check had read held one before: the same six saves passed in run 42583038481 on #1587's head, whose exports type no duct there.

Changes

  • tools/re/bodies_across_saves.py: properties reads NominalValue with getattr(prop, "NominalValue", None) and skips a property without one, as it already skipped one whose NominalValue is None. placement_source reads it the same way (it tested the property's name first, so it was not reached for a Shape, but it had the same pattern).

Testing

Unit tests: N/A. The check is the scorer run on the exports that tripped it.

Audit-honesty checklist

  • The gate still fails on a real difference: only the read of a property without a single value changed; every comparison after it is as before.
  • No emojis, private paths or PII.

Legal and contribution hygiene

  • Apache-2.0. No Autodesk source, internals or NDA material.

Breaking changes

None.

…s an enumerated or list value (#1524)

properties() read prop.NominalValue on every property of every product it
compares. An IfcPropertyEnumeratedValue, such as a duct's
Pset_DuctSegmentTypeCommon.Shape, has no NominalValue, so ifcopenshell
raised AttributeError, the scorer wrote a traceback instead of its result and
the same-project gates failed for every rme_advanced and rme_basic save of
2025 to 2027 once an export typed their ducts. Measure run 42585494298 on
#1524 is the instance: six samples red, the other 9 passing.

A property with no NominalValue is now skipped, as one whose NominalValue is
None already was. placement_source reads the same way.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 9, 2026 09:21
@DrunkOnJava
DrunkOnJava merged commit f823888 into main Nov 9, 2026
67 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/bodies-enumerated-values branch November 9, 2026 09:24
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