Skip to content

CI: run in ROS containers and fix the failing tests - #10

Merged
fmrico merged 1 commit into
rollingfrom
ci-green
Sep 26, 2026
Merged

fmrico merged 1 commit into
rollingfrom
ci-green

Conversation

@fmrico

@fmrico fmrico commented Sep 26, 2026

Copy link
Copy Markdown
Member

Follow-up of #9 to get the CI green on ROS 2 Jazzy and Kilted.

  • CI runs inside the ros-tooling ROS images (rostooling/setup-ros-docker). On the plain GitHub runner the ROS environment did not reach the build and test processes: ros2 run could not find rossdl_cmake, and on Kilted typesupports and libraries were missing.
  • Tests count topics with ASSERT_GE: get_topic_names_and_types() returns every topic in the ROS graph, which also includes topics of other nodes, so the exact count was fragile. The tests still check that each expected topic exists.
  • flake8 fixes in rossdl_cmake/__init__.py.

Checked locally in the same images: 7 packages, 120 tests, 0 failures, on Jazzy and on Kilted.

🤖 Generated with Claude Code

- CI runs inside the ros-tooling ROS images
(`rostooling/setup-ros-docker`). On the plain GitHub runner the ROS
environment did not reach the build and test processes: `ros2 run`
could not find `rossd
- Tests count topics with `ASSERT_GE`: `get_topic_names_and_types()`
returns every topic in the ROS graph, which also includes topics of
other nodes, so the exact count was fragile. The tests still ch
- flake8 fixes in `rossdl_cmake/__init__.py`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 26, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

This PR makes ROS 2 CI reliable on Jazzy and Kilted using ROS containers and updates fragile topic-count tests.

Changes:

  • Runs CI in ROS-tooling containers.
  • Relaxes topic-count assertions while preserving expected-topic checks.
  • Applies flake8 formatting fixes.
File Description
rossdl_tests/​rossdl_systems_test/​system_b/​tests/​rossdl_generation_test.cpp Relaxes topic-count assertions.
rossdl_tests/​rossdl_systems_test/​system_a/​tests/​rossdl_generation_test.cpp Relaxes topic-count assertions.
rossdl_tests/​rossdl_simple_test/​tests/​rossdl_generation_test.cpp Relaxes topic-count assertions.
rossdl_cmake/​rossdl_cmake/​__init__.py Applies formatting fixes.
.github/​workflows/​rolling.yaml Runs CI in ROS containers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@fmrico
fmrico merged commit 7b0b9de into rolling Sep 26, 2026
3 checks passed
@fmrico
fmrico deleted the ci-green branch September 26, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants