Repository navigation
De-flake servo and hybrid_planning launch fixtures - #3809
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3809 +/- ##
==========================================
+ Coverage 46.23% 46.28% +0.05%
==========================================
Files 726 726
Lines 59509 59505 -4
Branches 7623 7624 +1
==========================================
+ Hits 27509 27535 +26
+ Misses 31834 31803 -31
- Partials 166 167 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Same fix as #3777, applied to the four remaining fixtures with the pattern. Each launched its gtest node on a fixed TimerAction while controller spawners ran in parallel. Under load the spawner has not finished activating the controller when the timer fires, so the test starts against a topic with no publisher and fails intermittently: TimerAction(period=N, actions=[<gtest>]) Replaced with a gate on the last spawner exiting -- spawner exits 0 only after the controller is active, so the gtest is guaranteed a live publisher: RegisterEventHandler(OnProcessExit(target_action=<last_spawner>, on_exit=[<gtest>])) Fixtures changed: moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.py moveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.py moveit_ros/moveit_servo/tests/launch/servo_utils.test.py moveit_ros/hybrid_planning/test/launch/test_basic_integration.test.py Verified locally in the Resolute audit container before this change was first written: servo 4/4 iterations green, servo_utils 3/3, hybrid_planning 3/3. Previously each flaked at roughly the same rate as the trajectory_cache family #3777 addressed. test_basic_integration.test.py additionally needed RegisterEventHandler and OnProcessExit imported -- it calls them unqualified, unlike the servo fixtures which use launch.actions.RegisterEventHandler. Without the import the fixture raises NameError at launch. Not changed, because they chain TimerActions across ros2_control and several spawners rather than gating on one terminal timer -- picking the correct target_action needs a real reproducer of each family's failure: moveit_ros/planning/planning_scene_monitor/test/launch/planning_scene_monitor.test.py moveit_ros/tests/launch/move_group_api.test.py Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nbbrooks
force-pushed
the
nbbrooks/deflake-launch-fixtures
branch
from
August 3, 2026 05:18
2dd3993 to
78c7715
Compare
1 of 5 tasks
1 of 3 tasks
2 of 5 tasks
nbbrooks
added a commit
that referenced
this pull request
Oct 22, 2026
Same fix as #3777, applied to the four remaining fixtures with the pattern. Each launched its gtest node on a fixed TimerAction while controller spawners ran in parallel. Under load the spawner has not finished activating the controller when the timer fires, so the test starts against a topic with no publisher and fails intermittently: TimerAction(period=N, actions=[<gtest>]) Replaced with a gate on the last spawner exiting -- spawner exits 0 only after the controller is active, so the gtest is guaranteed a live publisher: RegisterEventHandler(OnProcessExit(target_action=<last_spawner>, on_exit=[<gtest>])) Fixtures changed: moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.py moveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.py moveit_ros/moveit_servo/tests/launch/servo_utils.test.py moveit_ros/hybrid_planning/test/launch/test_basic_integration.test.py Verified locally in the Resolute audit container before this change was first written: servo 4/4 iterations green, servo_utils 3/3, hybrid_planning 3/3. Previously each flaked at roughly the same rate as the trajectory_cache family #3777 addressed. test_basic_integration.test.py additionally needed RegisterEventHandler and OnProcessExit imported -- it calls them unqualified, unlike the servo fixtures which use launch.actions.RegisterEventHandler. Without the import the fixture raises NameError at launch. Not changed, because they chain TimerActions across ros2_control and several spawners rather than gating on one terminal timer -- picking the correct target_action needs a real reproducer of each family's failure: moveit_ros/planning/planning_scene_monitor/test/launch/planning_scene_monitor.test.py moveit_ros/tests/launch/move_group_api.test.py (cherry picked from commit 40f3140) Co-authored-by: Nathan Brooks <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Same fix as #3777, applied to the four remaining launch fixtures with the pattern.
Each launches its gtest node on a fixed
TimerActionwhile controller spawners run in parallel. Under load the spawner hasn't finished activating the controller when the timer fires, so the test starts against a topic with no publisher and fails intermittently:Replaced with a gate on the last spawner exiting —
spawnerexits 0 only after the controller is active, so the gtest is guaranteed a live publisher:Fixtures changed
moveit_ros/moveit_servo/tests/launch/servo_ros_integration.test.pyServoRosFixturemoveit_ros/moveit_servo/tests/launch/servo_cpp_integration.test.pymoveit_ros/moveit_servo/tests/launch/servo_utils.test.pymoveit_ros/hybrid_planning/test/launch/test_basic_integration.test.pyVerified in a Resolute container: servo 4/4 iterations green, servo_utils 3/3, hybrid_planning 3/3. Each previously flaked at roughly the rate the trajectory_cache family did before #3777.
test_basic_integration.test.pyadditionally neededRegisterEventHandlerandOnProcessExitimported — it calls them unqualified, unlike the servo fixtures which uselaunch.actions.RegisterEventHandler. Without the import the fixture raisesNameErrorat launch.Why this is worth landing
This family is currently costing signal on unrelated PRs. The
rolling-ci + deprecation checkandrolling-ci + ccovfailures on #3807 weretest_get_cartesian_path_request_features_with_move_groupandtest_motion_plan_request_features_with_move_group— same root cause, different fixture.Deliberately not changed
These chain
TimerActions acrossros2_controland several spawners rather than gating on one terminal timer, so picking the righttarget_actionneeds a real reproducer of each family's failure mode:moveit_ros/planning/planning_scene_monitor/test/launch/planning_scene_monitor.test.pymoveit_ros/tests/launch/move_group_api.test.pyChecklist
🤖 Generated with Claude Code