Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove homebrew job from CI #822

Merged
merged 10 commits into from
Apr 5, 2024
Merged

Remove homebrew job from CI #822

merged 10 commits into from
Apr 5, 2024

Conversation

GiulioRomualdi
Copy link
Member

No description provided.

@GiulioRomualdi
Copy link
Member Author

Manifpy tries to install the python bindings in /usr

@traversaro
Copy link
Collaborator

Manifpy tries to install the python bindings in /usr

You can set manually the MANIF_PKGDIR, see https://github.com/robotology/robotology-superbuild/blob/e131566d6f8cdd74b25ed9c5151567f8163cfaec/cmake/Buildmanif.cmake#L23 .

@GiulioRomualdi
Copy link
Member Author

I need to switch to our manif https://github.com/robotology-dependencies/manif.git repo to fix the version

@GiulioRomualdi
Copy link
Member Author

iDynTree fails with the following error (perhaps it is an old version and it should be updated @traversaro )

Cloning into 'iDynTree'...
HEAD is now at a7fdef001 Release iDynTree 8.0.0 (#1039)
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LibXml2: /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4") 
-- Found YARP: /Users/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/install/deps/lib/cmake/YARP (found version "3.8.0")
-- Found YCM: /Users/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/install/deps/share/cmake/YCM (found version "0.15.3")
-- Found YARP: /Users/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/install/deps/lib/cmake/YARP (found version "3.8.0")
-- Found IPOPT: /usr/local/lib/libipopt.dylib  
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found SWIG: /usr/local/bin/swig (found version "4.2.1")  
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12 (found version "3.12.2") found components: Interpreter Development.Module NumPy 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
CMake Error at bindings/CMakeLists.txt:54 (string):
  string sub-command STRIP requires two arguments.

@GiulioRomualdi
Copy link
Member Author

@traversaro
Copy link
Collaborator

traversaro commented Mar 18, 2024

iDynTree fails with the following error (perhaps it is an old version and it should be updated @traversaro )

Yes, that is true. At the superbuild level I fixed this as documented in robotology/robotology-superbuild#1238 and robotology/robotology-superbuild#1508 , i.e. not using distutils . However, distutils is still use by default, so it probably make sense to cleanup that.

@traversaro
Copy link
Collaborator

iDynTree fails with the following error (perhaps it is an old version and it should be updated @traversaro )

Yes, that is true. At the superbuild level I fixed this as documented in robotology/robotology-superbuild#1238 and robotology/robotology-superbuild#1508 , i.e. not using distutils . However, distutils is still use by default, so it probably make sense to cleanup that.

TL;DR: We need to propagate robotology/robotology-superbuild#1511 to idyntree.

@GiulioRomualdi
Copy link
Member Author

Associated PR in iDynTree: robotology/idyntree#1168

@GiulioRomualdi
Copy link
Member Author

The ubuntu test fails with

/home/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/src/IK/tests/QPInverseKinematicsTest.cpp:750: FAILED:
  REQUIRE( error.coeffs().isZero(tolerance) )
with expansion:
  false

I was wondering if something similar to what happened back in time on the iDynTree generation of the model. I updated the version of iDynTree in the CI

@GiulioRomualdi
Copy link
Member Author

GiulioRomualdi commented Mar 30, 2024

I did a bit of analysis. I was able to replicate the failure #822 (comment) on my PC with the following commit of iDynTree robotology/idyntree@7e029b9 while with robotology/idyntree@7ecf7b5 the test pass.

I tried a git bisect and I found the commit in iDynTree that breaks the test in blf robotology/idyntree@9c7f2b3

9c7f2b36a2505f132700744bfffb142728639a57 is the first bad commit
commit 9c7f2b36a2505f132700744bfffb142728639a57
Author: Silvio Traversaro <[email protected]>
Date:   Wed Mar 22 14:46:19 2023 +0100

    Add support for PrismaticJoint in getRandomModel

 src/model/include/iDynTree/Model/ModelTestUtils.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

This is the git bisect trace

git bisect start
# bad: [7e029b963d44fa2606bd608019ba9b82a4398741] Merge pull request #1163 from S-Dafarra/visualize_solid_shapes
git bisect bad 7e029b963d44fa2606bd608019ba9b82a4398741
# bad: [7e029b963d44fa2606bd608019ba9b82a4398741] Merge pull request #1163 from S-Dafarra/visualize_solid_shapes
git bisect bad 7e029b963d44fa2606bd608019ba9b82a4398741
# good: [7ecf7b536be9e03fe05a0d49c8e7adbc5f84dc31] Fix MatrixView constructor when MatrixView<const T> is built from MatrixView<T> (#1044)
git bisect good 7ecf7b536be9e03fe05a0d49c8e7adbc5f84dc31
# bad: [deea1a161e18f24f2ce94175bd3836015411a6cd] Merge PositionRaw in Position and deprecated PositionRaw
git bisect bad deea1a161e18f24f2ce94175bd3836015411a6cd
# bad: [40bfd488e7845f948e834a7a175c6e578d513d08] Merge branch 'master' into devel
git bisect bad 40bfd488e7845f948e834a7a175c6e578d513d08
# bad: [720bcabea4a70910378e7dadd85c309a70f037ca] Merge pull request #1061 from robotology/python_3.10
git bisect bad 720bcabea4a70910378e7dadd85c309a70f037ca
# bad: [9c7f2b36a2505f132700744bfffb142728639a57] Add support for PrismaticJoint in getRandomModel
git bisect bad 9c7f2b36a2505f132700744bfffb142728639a57
# good: [1d41168b4cf133a0360f8099407f4bfc30666ecf] Merge pull request #1050 from robotology/fix1049
git bisect good 1d41168b4cf133a0360f8099407f4bfc30666ecf
# good: [91592526d9bcc3d991da060487b0f4801f327250] Update changelog.
git bisect good 91592526d9bcc3d991da060487b0f4801f327250
# good: [4e9d8097753dc146914e55f5656b465d00e6b25f] Merge pull request #1053 from francesco-romano/parser/add_error
git bisect good 4e9d8097753dc146914e55f5656b465d00e6b25f
# first bad commit: [9c7f2b36a2505f132700744bfffb142728639a57] Add support for PrismaticJoint in getRandomModel

@GiulioRomualdi
Copy link
Member Author

Our inverse dynamics doesn't support prismatic joints. It would be nice if it could be possible to generate chains with only revolutes joints in iDynTree

@traversaro
Copy link
Collaborator

Our inverse dynamics doesn't support prismatic joints. It would be nice if it could be possible to generate chains with only revolutes joints in iDynTree

There is the third argument of the function that does that: robotology/idyntree#1149 .

@GiulioRomualdi
Copy link
Member Author

Associated fix in iDynTree for generating a model (and not a chain) with revolute joints robotology/idyntree#1171

@GiulioRomualdi GiulioRomualdi force-pushed the GiulioRomualdi-patch-1 branch 2 times, most recently from 4d61702 to 7a5383e Compare March 30, 2024 20:50
@traversaro
Copy link
Collaborator

It seems we need to fix something on the pybind11 bindings, I will check tomorrow.

@GiulioRomualdi
Copy link
Member Author

#822 (comment) probably related to #829

@GiulioRomualdi GiulioRomualdi force-pushed the GiulioRomualdi-patch-1 branch from 7a5383e to 70ed7aa Compare April 4, 2024 07:42
@GiulioRomualdi
Copy link
Member Author

I've just rebased on master. Let's see if the CI is happy

@GiulioRomualdi
Copy link
Member Author

macOS fails while in solving the qp of the QPInverseKinematics 😭

@traversaro
Copy link
Collaborator

macOS fails while in solving the qp of the QPInverseKinematics 😭

You know my position on this. :D:

@GiulioRomualdi
Copy link
Member Author

macOS fails while in solving the qp of the QPInverseKinematics 😭

You know my position on this. :D:

I removed macOS - brew from CI e143f51

@traversaro
Copy link
Collaborator

I guess GitHub has some problems, the CI failures are due to this.

@traversaro traversaro changed the title Install manifpy from cmake in CI Remove homebrew job from CI Apr 5, 2024
@GiulioRomualdi
Copy link
Member Author

Running again the CI

@GiulioRomualdi
Copy link
Member Author

Merging!

@GiulioRomualdi GiulioRomualdi disabled auto-merge April 5, 2024 10:09
@GiulioRomualdi GiulioRomualdi merged commit 9f16190 into master Apr 5, 2024
13 checks passed
@GiulioRomualdi GiulioRomualdi deleted the GiulioRomualdi-patch-1 branch April 5, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants