Title: ci: fix compile-and-test failures on v0.8.0 (validate_stub crash + missing Optimise test deps) by petruconduraru · Pull Request #8763 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: ci: fix compile-and-test failures on v0.8.0 (validate_stub crash + missing Optimise test deps) by petruconduraru · Pull Request #8763 · IfcOpenShell/IfcOpenShell
X Title: ci: fix compile-and-test failures on v0.8.0 (validate_stub crash + missing Optimise test deps) by petruconduraru · Pull Request #8763 · IfcOpenShell/IfcOpenShell
Description: Fixes the ci workflow's compile-and-test job, red since two of our own earlier commits landed. Two unrelated failures in the same "Test ifcopenshell-python" step: 1. validate_stub crash. #1124's fix (824c1fc) named its pythoncode backref helper _geometry_with_backref with a leading underscore. validate_stub.py's get_function_node_name() intentionally skips any leading-underscore name (its only exception is _is), so the helper never lands in its parsed subnames set, and the assertion in find_method_by_name() raises a bare AssertionError instead of the intended clean stub/wrapper diff, crashing make test-parallel on every push since. Renamed to geometry_with_backref_ (trailing underscore), matching the existing local convention in the same class bodies (calc_volume_, calc_surface_area_). Also synced six SVG edge-classification settings-flag classes into ifcopenshell_wrapper.pyi that were added to the C++/SWIG side but never synced to the stub, which validate_stub would otherwise flag once the crash above is fixed. 2. Missing test dependencies. test_Optimise.py (added in 57cfd9d) exercises Optimise's patch(), which since 7ebdd04 hard-requires toposort as its fallback backend. ci.yml never installed it, so every ifcpatch test run since has failed with ModuleNotFoundError. Added the missing pip install toposort igraph before that test step. Verified both by reproducing the exact CI failure locally: built against the exact CI-tested commit (c68e4a0eee) with SWIG 4.1.0 (matching ci.yml's pinned build-from-source version), confirmed validate_stub.py crashes identically before the fix and passes cleanly after, and confirmed test_Optimise.py's 6 tests fail with ModuleNotFoundError without the packages and pass with them. Checked for prior aothms guidance on this code area before implementing: his only stated intent for #1124 was "establish a backreference to the parent element from the geometry," no naming requirement, so the rename doesn't conflict with his design. Not addressed here, flagged as a separate, chronic, pre-existing issue: test_bsdd.py's two tests hit a live 429 Too Many Requests from the real bsdd.buildingsmart.org API, present in CI well before these commits. That needs a design decision (retry/backoff/credentials), not a quick patch, and is out of scope for this PR. This contribution was produced with the assistance of an AI coding tool.
Open Graph Description: Fixes the ci workflow's compile-and-test job, red since two of our own earlier commits landed. Two unrelated failures in the same "Test ifcopenshell-python" step: 1. validate_stub cra...
X Description: Fixes the ci workflow's compile-and-test job, red since two of our own earlier commits landed. Two unrelated failures in the same "Test ifcopenshell-python" step: 1. valid...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8763
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:74585fc2-bbcc-011a-f8af-671b55db9d7a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9520:1DFD99:78F489:9F2409:6B04CA95 |
| html-safe-nonce | 2cbb9ac20c1624929094d103b8556a06f22d9fbb9306e0b8fd3c2a1bac20af1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTIwOjFERkQ5OTo3OEY0ODk6OUYyNDA5OjZCMDRDQTk1IiwidmlzaXRvcl9pZCI6IjE5OTc3ODY3MjY1MTY3MDU5NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b18f38e92fa3e92a76d7db9af854d4bd382c60d191e9d299ef0ec45e1b30f0fe |
| hovercard-subject-tag | pull_request:4085838586 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8763/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Fixes the ci workflow's compile-and-test job, red since two of our own earlier commits landed. Two unrelated failures in the same "Test ifcopenshell-python" step: 1. validate_stub cra... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width