Repository navigation
test(rtps): give action_goal_flood's get_result room before goals retire - #930
Merged
Merged
Conversation
Step 3 cancels the three goals and asks get_result for one of them right away, expecting CANCELED. The server retires a finished goal result_timeout after it terminated, and the test set that to 300 ms, so a get_result that reached the server later than that (a loaded CI runner, a retransmitted request) found the goal already retired and got UNKNOWN. The Humble interop job failed that way once. Use a 2 s result_timeout, wait 3 s before step 4 checks that the goal was retired, and print the status get_result returned when step 3 fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DFjjnq3XCTRAXENSxsCxJU
|
✅Static analysis result - no issues found! ✅ |
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
action_goal_floodfailed once in the Humble interop job, on #929, which doesn't touch rtps. It printedFAIL: get_result right after: CANCELED, and a rerun passed.Step 3 cancels the three running goals, waits until their execute callbacks have finished, then calls
get_resultfor one of them and expects CANCELED. The server retires a finished goalresult_timeoutafter it ends, and the test set that to 300 ms. When theget_resultrequest reaches the server later than that, for example on a loaded runner or after a retransmit, the goal is already gone and the reply is UNKNOWN.Changes, only in
pc/tests/rtps_action_goal_flood.cpp:result_timeoutis now 2 s instead of 300 ms.get_resultreturned.Verification
lib+pc, asrun_interop.shbuilds it).get_result, the test fails exactly as in CI:get_result status: 0(UNKNOWN), thenFAIL: get_result right after: CANCELED.🤖 Generated with Claude Code
https://claude.ai/code/session_01DFjjnq3XCTRAXENSxsCxJU