Repository navigation
Conversation
|
Why does the package test fail? Have you rebased to master to include #4890 that was merged today, which fixes some issue(s)? |
e8bff69 to
38abf60
Compare
|
Thanks for the hint. I was wondering about that. |
|
Seems to have gotten worse after the rebase. |
|
These errors are probably race conditions. @grandixximo needs to have a look at these. Both instances failed almost identically. Error copied from CI: |
38abf60 to
eb8a4b6
Compare
@grandixximo Few more errors in #4930. It is similar to the other two posted here. Just that this is on the x86 CI arch test. |
eb8a4b6 to
087a15e
Compare
| self.scaleby = x, y, z | ||
| comp, rest = _split_comp(args) | ||
| if ( | ||
| comp is not None |
There was a problem hiding this comment.
What does HalVectorTranslate([p], c, "x_pin", 0, 0, -1) do here? Its arguments look like a HalTranslate call (one pin, then three numbers), so I get glTranslatef(0, 0, -x) where the old class gave glTranslatef(-x, 0, 0). No in-tree model uses that form, but a user model could, and it would go wrong without an error. Would it be safer to keep HalTranslate and HalVectorTranslate as thin subclasses that set the mode, rather than guessing it from the argument types?
There was a problem hiding this comment.
Yes. I have opted for slightly different solution:
VectorTranslate() gets its own independent class so the unified Translate/HalTranslate does not have to handle the extra disambiguation.
| comp, rest = _split_comp(args) | ||
| if len(rest) == 4: | ||
| const, var, scaleby_true, scaleby_false = rest | ||
| elif len(rest) == 2: |
There was a problem hiding this comment.
The old HalShow accepted scaleby_true on its own, e.g. HalShow([p], c, 1, "pin", 2); here that raises TypeError. Should three trailing arguments be accepted too?
| elif len(rest) == 2: | |
| elif len(rest) == 3: | |
| const, var, scaleby_true = rest | |
| elif len(rest) == 2: |
There was a problem hiding this comment.
Yes, the modified class handles it now. Thanks!
|
The I loaded every in-tree vismach model with the old and the new |
268c5df to
cbc84fd
Compare
Consolidate separate static and HAL-animated transform and geometry classes into single unified implementations while maintaining full backwards compatibility: - Merge Translate, Scale, Rotate, RotateEuler, and Show to accept both static values and an optional hal.component with HAL pin names. - Merge Line, Grid, Plane, and Coords primitives to support origin, normal, and normal+direction modes with optional HAL component arguments. - Consolidate CylinderX, CylinderY, and CylinderZ using a shared _CylinderAxis base class. - Retain all legacy Hal* class names as aliases for backwards compatibility. - Update vismach.adoc to document the unified classes and legacy aliases. - Also fixed along the way is a double import hal
cbc84fd to
74c0d73
Compare
This is step 1 of #4932
Consolidate separate static and HAL-animated transform and geometry classes into single unified implementations while maintaining full backwards compatibility:
Merge Translate, Scale, Rotate, RotateEuler, and Show to accept both static values and an optional hal.component with HAL pin names.
Merge Line, Grid, Plane, and Coords primitives to support origin, normal, and normal+direction modes with optional HAL component arguments.
Consolidate CylinderX, CylinderY, and CylinderZ using a shared _CylinderAxis base class.
Retain all legacy Hal* class names as aliases for backwards compatibility.
Update vismach.adoc to document the unified classes and legacy aliases.
Also removed a double 'import hal'
Checked: