Skip ROS-dependent integration tests when ROS backend unavailable #455
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integration tests requiring ROS backend were failing in regular CI builds due to attempting connections to non-existent ROS servers, causing timeouts with
roslibpy.core.RosTimeoutError.Changes
.github/workflows/integration.yml: SetCOMPAS_FAB_INTEGRATION_TESTS=1environment variabledocs/examples/conftest.py: Skip 10 ROS-dependent example files (e.g.,03_forward_kinematics.py,04_plan_motion.py,05_collision_objects.py) unless environment variable presentCHANGELOG.md: Document fixBehavior
Regular builds (no ROS):
Integration builds (ROS via Docker):
COMPAS_FAB_INTEGRATION_TESTS=1 pytest docs # All tests runFiles requiring ROS consistently use
with RosClient() as client:pattern which fails immediately without backend availability.Original prompt
This section details on the original issue you should resolve
<issue_title>Investigate why integration tests fail on CI (but work locally)</issue_title>
<issue_description>The integration tests are failing when running on CI, but it's unclear why because they work locally.
The branch in which this occurs is the LTS one:
LTS-main-1.x.The log output is the following: