Skip to content

Conversation

@CoderNived
Copy link

This PR improves CI stability by skipping tf2_ros_py/test_buffer.py on Windows.

According to osrf/buildfarmer#360, several Windows Debug/Release buildfarm jobs abort because of this test.
On Linux (ROS 2 Jazzy) the test passes consistently, so the issue appears to be Windows-specific.

This PR adds a conditional skip:

pytest.mark.skipif(sys.platform == "win32", ...)

allowing the test to continue running on Linux while avoiding CI aborts on Windows.

Validation

Local verification done on Linux (WSL):

colcon test --packages-select tf2_ros_py
colcon test-result --verbose

Result:

202 tests, 0 errors, 0 failures, 51 skipped

Fixes

Fixes osrf/buildfarmer#360

Is this user-facing behavior change?

No — only affects CI test execution on Windows.

Did you use Generative AI?

Yes — ChatGPT was used to assist with debugging instructions and PR wording.
All code changes were written and verified manually.

Additional Information

This PR should reduce aborted Windows jobs on the ROS buildfarm while the root cause of the test flakiness is investigated.

Copy link
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Code is currently a no-op

assert transform.transform.translation.z == output.transform.translation.z


pytestmark = pytest.mark.skipif(
Copy link
Member

Choose a reason for hiding this comment

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

This isn't actually being used anywhere, so it wouldn't have any impact on the build.



pytestmark = pytest.mark.skipif(
sys.platform == "win32",
Copy link
Member

Choose a reason for hiding this comment

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

I believe this should be 'nt' rather than 'win32'

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