Skip to content

Don't run test for rolling on Windows temporarily #1103

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

minggangw
Copy link
Member

The latest ROS2 rolling is migrating to pixi to install dependencies on Windows platform, which causes the failure of running unit tests, we are going to disable it temporarily.

See details:

Fix: #1102

The latest ROS2 rolling is migrating to `pixi` to install dependencies on Windows platform,
which causes the failure of running unit tests, we are going to disable it temporarily.

See details:

- https://docs.ros.org/en/rolling/Installation/Windows-Install-Binary.html
- RobotWebTools#1101

Fix: RobotWebTools#1102
@minggangw minggangw requested a review from Copilot April 24, 2025 07:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR temporarily disables the Windows unit tests for the ROS2 rolling distribution to address dependency issues.

  • Updated workflow file to add an extra condition excluding the rolling distro from running tests.
  • Adjusted command conditions in the Windows build-and-test workflow to avoid failures on Windows installations using ROS2 rolling.

@@ -61,4 +60,4 @@ jobs:
run: |
call "c:\dev\${{ needs.identify-ros-distro.outputs.distro }}\ros2-windows\setup.bat"
cmd /c "if ${{ needs.identify-ros-distro.outputs.distro }}==foxy (set RMW_IMPLEMENTATION=rmw_cyclonedds_cpp&&npm test)"
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy (npm test)"
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)"
Copy link
Preview

Copilot AI Apr 24, 2025

Choose a reason for hiding this comment

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

The consecutive 'if NOT' conditions on a single line may lead to ambiguity in command execution. Consider refactoring the command using proper grouping or nested conditions to clearly enforce both checks.

Suggested change
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test)"
cmd /c "if NOT ${{ needs.identify-ros-distro.outputs.distro }}==foxy (if NOT ${{ needs.identify-ros-distro.outputs.distro }}==rolling (npm test))"

Copilot uses AI. Check for mistakes.

@coveralls
Copy link

Coverage Status

coverage: 85.019%. remained the same
when pulling bb0b56e on minggangw:fix-1102
into 88d15f4 on RobotWebTools:develop.

@minggangw minggangw merged commit 0e13f83 into RobotWebTools:develop Apr 24, 2025
11 checks passed
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.

Don't run test for rolling on Windows temporarily
2 participants