Skip to content

Commit

Permalink
Fix tests on master branch (opendr-eu#438)
Browse files Browse the repository at this point in the history
* Setup for mobile_manipulation only when testing the package

* Re-enable mobile manipulation test

* Update tests_suite.yml

* Update tests_suite_develop.yml

* Debug just 2 tests

* Update tests_suite.yml

* Update tests_suite_develop.yml
  • Loading branch information
stefaniapedrazzi authored and Luca Marchionni committed Jun 6, 2023
1 parent 98dc5bc commit 11cb911
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# - perception/object_detection_3d # passes, but disabled due to free() crash
- perception/facial_expression_recognition
- simulation/human_model_generation
#- control/mobile_manipulation
- control/mobile_manipulation
#- control/single_demo_grasp
#- planning/end_to_end_planning
- control/multi_object_search
Expand Down Expand Up @@ -129,4 +129,3 @@ jobs:
docker run --name toolkit -i opendr/opendr-toolkit:cpu_v2.1.0 bash
docker start toolkit
docker exec -i toolkit bash -c "source bin/activate.sh && source tests/sources/tools/control/mobile_manipulation/run_ros.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
14 changes: 10 additions & 4 deletions .github/workflows/tests_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
# - perception/object_detection_3d # passes, but disabled due to free() crash
- perception/facial_expression_recognition
- simulation/human_model_generation
# - control/mobile_manipulation
- control/mobile_manipulation
- control/single_demo_grasp
- planning/end_to_end_planning
- control/multi_object_search
Expand All @@ -106,7 +106,9 @@ jobs:
if [ ${{ matrix.package }} = "ctests" ]; then
make ctests
else
source tests/sources/tools/control/mobile_manipulation/run_ros.sh
if [[ ${{ matrix.package }} == "control/mobile_manipulation" || ${{ matrix.package }} == "planning/end_to_end_planning" ]]; then
source tests/sources/tools/control/mobile_manipulation/run_ros.sh
fi
python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}
fi
build-wheel:
Expand Down Expand Up @@ -382,7 +384,7 @@ jobs:
# - perception/object_detection_3d # passes, but disabled due to free() crash
- perception/facial_expression_recognition
- simulation/human_model_generation
# - control/mobile_manipulation
- control/mobile_manipulation
- control/single_demo_grasp
- planning/end_to_end_planning
- control/multi_object_search
Expand All @@ -397,7 +399,11 @@ jobs:
docker load < ./artifact/docker-artifact/cpu_test.zip
docker run --name toolkit -i opendr/opendr-toolkit:cpu_test bash
docker start toolkit
docker exec -i toolkit bash -c "source bin/activate.sh && source tests/sources/tools/control/mobile_manipulation/run_ros.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
if [[ ${{ matrix.package }} == "control/mobile_manipulation" || ${{ matrix.package }} == "planning/end_to_end_planning" ]]; then
docker exec -i toolkit bash -c "source bin/activate.sh && source tests/sources/tools/control/mobile_manipulation/run_ros.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
else
docker exec -i toolkit bash -c "source bin/activate.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
fi
delete-docker-artifacts:
needs: [build-docker, test-docker]
if: ${{ always() }}
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/tests_suite_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
test-sources:
if: ${{ contains(github.event.pull_request.labels.*.name, 'test sources') || github.event_name == 'schedule' }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11]
include:
Expand Down Expand Up @@ -83,7 +84,7 @@ jobs:
# - perception/object_detection_3d # passes, but disabled due to free() crash
- perception/facial_expression_recognition
- simulation/human_model_generation
# - control/mobile_manipulation
- control/mobile_manipulation
- control/single_demo_grasp
- planning/end_to_end_planning
- control/multi_object_search
Expand All @@ -107,7 +108,9 @@ jobs:
if [ ${{ matrix.package }} = "ctests" ]; then
make ctests
else
source tests/sources/tools/control/mobile_manipulation/run_ros.sh
if [[ ${{ matrix.package }} == "control/mobile_manipulation" || ${{ matrix.package }} == "planning/end_to_end_planning" ]]; then
source tests/sources/tools/control/mobile_manipulation/run_ros.sh
fi
python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}
fi
build-wheel:
Expand Down Expand Up @@ -195,10 +198,10 @@ jobs:
# - perception/object_detection_3d # passes, but disabled due to free() crash
- perception/facial_expression_recognition
- simulation/human_model_generation
#- control/multi_object_search
#- control/mobile_manipulation
#- control/single_demo_grasp
#- planning/end_to_end_planning
#- control/multi_object_search
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -349,8 +352,10 @@ jobs:
# install the package itself
python3 -m pip install ./artifact/wheel-artifact/opendr-toolkit-$package-*.tar.gz
fi
cd src/opendr/perception/object_detection_2d/retinaface; make; cd $OPENDR_HOME
if [[ ${{ matrix.package }} == "perception/object_detection_2d/retinaface" ]]; then
cd src/opendr/perception/object_detection_2d/retinaface; make; cd $OPENDR_HOME
fi
# run the test
python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}
Expand Down Expand Up @@ -393,7 +398,7 @@ jobs:
# - perception/object_detection_3d # passes, but disabled due to free() crash
- perception/facial_expression_recognition
- simulation/human_model_generation
# - control/mobile_manipulation
- control/mobile_manipulation
- control/single_demo_grasp
- planning/end_to_end_planning
- control/multi_object_search
Expand All @@ -408,7 +413,11 @@ jobs:
docker load < ./artifact/docker-artifact/cpu_test.zip
docker run --name toolkit -i opendr/opendr-toolkit:cpu_test bash
docker start toolkit
docker exec -i toolkit bash -c "source bin/activate.sh && source tests/sources/tools/control/mobile_manipulation/run_ros.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
if [[ ${{ matrix.package }} == "control/mobile_manipulation" || ${{ matrix.package }} == "planning/end_to_end_planning" ]]; then
docker exec -i toolkit bash -c "source bin/activate.sh && source tests/sources/tools/control/mobile_manipulation/run_ros.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
else
docker exec -i toolkit bash -c "source bin/activate.sh && python3 -m unittest discover -s tests/sources/tools/${{ matrix.package }}"
fi
delete-docker-artifacts:
needs: [build-docker, test-docker]
if: ${{ always() }}
Expand Down

0 comments on commit 11cb911

Please # to comment.