René's URL Explorer Experiment


Title: Fix ifcopenshell-python test drift (5 CI failures traced to root cause) by sboddy · Pull Request #8554 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Fix ifcopenshell-python test drift (5 CI failures traced to root cause) by sboddy · Pull Request #8554 · IfcOpenShell/IfcOpenShell

X Title: Fix ifcopenshell-python test drift (5 CI failures traced to root cause) by sboddy · Pull Request #8554 · IfcOpenShell/IfcOpenShell

Description: Summary CI has drifted: several ifcopenshell-python tests have been failing for a while without anyone tracking down whether they were catching real regressions or just rotting. This PR is the result of going through the failures from a recent run one by one, classifying each as (a) an obsolete/broken test, (b) a deliberate change the test/stub never caught up with, or (c) a genuine unnoticed regression - and fixing the ones with a clear root cause. Fixes geometry_classes_introduced_after() used the raw ifcopenshell_wrapper.schema_by_name("IFC4X3") instead of the friendly ifcopenshell.schema_by_name(), which is the only one that normalizes "IFC4X3" → "IFC4X3_ADD2". This wasn't just a test problem - it also broke ifcpatch's Migrate recipe for real IFC4X3 → IFC2X3 downgrades. (category c) assign_type.py's class-pairing validation had no entry for process/resource types (IfcTaskType → IfcTask, etc.) in the buildingSMART implementer-agreement map, which only covers physical product occurrence/type pairs. A previously-valid assignment like IfcTaskType → IfcTask was rejected with "allowed occurrence classes: ". Added a fallback that derives the pairing from the schema's Type-suffix naming convention (mirroring the existing ApplicableOccurrence fallback), which can only ever add pairings implied by the type's own class name, so it can't loosen rejection of genuine mismatches. (category c, incomplete follow-up to an earlier fix) src/ifcgeom/kernels/opencascade/boolean_utils.cpp (and neighbouring files) logged diagnostics through the global Logger::Root() singleton, but IfcConvert's main() constructs its own Logger and wires it to --log-file via SetOutput(), threading that instance through Converter/kernel constructors instead. Since Logger::Root() is never itself configured with an output stream, every Notice/Warning call through it - including the "Processed fully in 2D" family of messages test_wall_opening.py asserts on - was silently dropped. The geometry itself was never wrong; only the logging was disconnected. Fixed by threading a Logger* through boolean_settings and populating it from the kernel's own logger_ member. (category b) ifcopenshell_wrapper.pyi had drifted from the actual SWIG-generated ifcopenshell_wrapper.py (a new logger/log_message/arrange_polygon_settings surface, several changed overload signatures). There was no generator, only the validator (validate_stub.py), so the stub could only ever be hand-patched, and a prior manual patch closed part of the gap without a full diff against a real build. Added generate_stub.py, which reuses validate_stub.py's own comparison logic as the source of truth, so any stub it produces is guaranteed to pass validation against the wrapper it was generated from. (category b) The ColumnPSetsOfSets.ifc test fixture declared FILE_SCHEMA(('IFC2X3')) but used IFCPROPERTYSETDEFINITIONSET(...), a defined type that only exists in IFC4+ (confirmed absent from the generated Ifc2x3-schema.cpp/Ifc2x3-definitions.h, present in the IFC4 equivalents). Traced with an instrumented parser build: declaration_by_name() correctly throws for the unrecognized keyword, the existing IfcException handler in in_memory_file_storage::load() catches it, and the parser falls back to parsing the trailing (#136,#138) as a plain nested SET rather than the typed value - which is why RelatingPropertyDefinition ended up as a bare tuple instead of an IfcPropertySetDefinitionSet-wrapped value with .is_a(). This is correct, expected behaviour for content that doesn't match its declared schema, not a parser bug. The fixture's own FILE_NAME record ('Column_4x3.ifc') suggests it was originally exported as IFC4X3 and the schema tag was later miscopied. Fixed the header to IFC4. (category a - malformed fixture, not a code bug) Verification Built a real matching ifcopenshell_wrapper (.so + .py) and IfcConvert locally to test against rather than relying on static analysis. Full ifcopenshell-python suite: 2345 passed, 0 regressions. Two pre-existing failures remain, both environment-only and unrelated to this PR: test_mmaped_stream (needs a USE_MMAP-enabled build, not present in the local build config used here) and 5 mathutils-dependent tests (need Blender's bundled module, not available outside Blender). Scope not covered here The original failure set also included a genuine C++ parser gap: IfcPropertySetDefinitionSet (a SET-of-select defined type) has a documented but apparently never-fully-working "divert storage of reference to the simple type instance" mechanism in IfcParse.cpp/IfcFile.cpp for the singular-select case's sibling SET case. It turned out not to be exercised by any currently-passing test (the only fixture that hit it was the malformed one above), so I've left it as-is rather than changing parser behaviour without a fixture that actually needs it. Happy to dig further if there's interest. Generated with the assistance of an AI coding tool.

Open Graph Description: Summary CI has drifted: several ifcopenshell-python tests have been failing for a while without anyone tracking down whether they were catching real regressions or just rotting. This PR is the resu...

X Description: Summary CI has drifted: several ifcopenshell-python tests have been failing for a while without anyone tracking down whether they were catching real regressions or just rotting. This PR is the resu...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8554

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5cd1631a-dc42-d07d-dbe7-4a650f24fdf3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id924E:10C6A:BED33D:F94093:6B04DC53
html-safe-nonce78c4b0c66e5fa1667811d16ffec66b0098c4911e7a89fcb08876c042e3553059
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjRFOjEwQzZBOkJFRDMzRDpGOTQwOTM6NkIwNERDNTMiLCJ2aXNpdG9yX2lkIjoiNjY2MjYyODcxMTg5ODM0MDQzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf003946e6f6b04fe2065a1faf16fd6aa60ff2e6e5eabcdf99a399011c3b65ec4
hovercard-subject-tagpull_request:4039534579
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
twitter:imagehttps://avatars.githubusercontent.com/u/12862430?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12862430?s=400&v=4
og:image:altSummary CI has drifted: several ifcopenshell-python tests have been failing for a while without anyone tracking down whether they were catching real regressions or just rotting. This PR is the resu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6c35540a0a2991ee20bd053ba2601cce33f72cb1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8554%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8554%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests936 (936)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
sboddyhttps://github.com/sboddy
IfcOpenShell:v0.8.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.8.0
sboddy:fixes-for-ci-testshttps://github.com/sboddy/IfcOpenShell/tree/fixes-for-ci-tests
Conversation 3 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554
Commits 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/commits
Checks 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Fix ifcopenshell-python test drift (5 CI failures traced to root cause) https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#top
Show all changes 4 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
d188e3b Allow process/resource type assignment via Type-suffix convention sboddy Jul 11, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/commits/d188e3beaf2f79a3ca82afc3a1d43524e53abd3b
96e2efe Route boolean-op kernel logging through the injected Logger sboddy Jul 11, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/commits/96e2efebc86887d68fec9bf3ca971771b63d61af
6c590bf Fix schema mismatch in ColumnPSetsOfSets.ifc test fixture sboddy Jul 11, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/commits/6c590bf0082b3c56a9cbca30c60fec376eb89a93
489084c Remove stale ty lint ignore directive sboddy Jul 13, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/commits/489084c7be6955daeb48d9084c9b30cd9d0472fc
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
OpenCascadeKernel.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
boolean_result.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-36cb3733b31d3423f767754aa03faaae09fa62b4682095332def1857056512b4
boolean_utils.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-d6358e95fe9f9e27339a1d8d139da9760ce82b64e3c6efea9491b79c84faffe8
boolean_utils.h https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-a233d50c90fd7ae3b8712332fe8d3860b30eb3e348fd16310fc179a8e7b99b0f
assign_type.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-427f60506b4f34f119844303975ffdd3b012d9ee99045a0aaf4e03690c682c04
draw.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-dd9ecf15ffad300f390a5c4849563f69fb0b2789838961574ff11c6acb68f53e
ColumnPSetsOfSets.ifc https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-57d5fe65986af9ba0eb6b2944df3db46ba1c6ec4da88e1d4c9e9a19fdde48e8a
src/ifcgeom/kernels/opencascade/OpenCascadeKernel.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
View file https://github.com/sboddy/IfcOpenShell/blob/489084c7be6955daeb48d9084c9b30cd9d0472fc/src/ifcgeom/kernels/opencascade/OpenCascadeKernel.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-c729e2c39d7cf26ab340c30d5277d2d68199f55f8380e91fb3ba384bf6819dce
src/ifcgeom/kernels/opencascade/boolean_result.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-36cb3733b31d3423f767754aa03faaae09fa62b4682095332def1857056512b4
View file https://github.com/sboddy/IfcOpenShell/blob/489084c7be6955daeb48d9084c9b30cd9d0472fc/src/ifcgeom/kernels/opencascade/boolean_result.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-36cb3733b31d3423f767754aa03faaae09fa62b4682095332def1857056512b4
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-36cb3733b31d3423f767754aa03faaae09fa62b4682095332def1857056512b4
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-36cb3733b31d3423f767754aa03faaae09fa62b4682095332def1857056512b4
https://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files#diff-36cb3733b31d3423f767754aa03faaae09fa62b4682095332def1857056512b4
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8554/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.