Repository navigation
Allow more time for the trajectory cancel result in the spline test - #629
Merged
Merged
Conversation
Give the cancel result more time to arrive so the test still passes when draining the queued points takes most of the previous timeout.
Contributor
|
This pull request is merged. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #629 +/- ##
==========================================
- Coverage 83.84% 83.83% -0.01%
==========================================
Files 127 127
Lines 8560 8561 +1
Branches 3913 3913
==========================================
Hits 7177 7177
Misses 970 970
- Partials 413 414 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the cancellation-timeout adjustment.
No open issues 🎉
What changed in this PR
This PR makes the spline trajectory-cancellation test more tolerant of slower URSim execution by allowing more time for the controller to report cancellation.
Changes:
- Increases both post-cancellation waits from 500 ms to 2 s; waits still return as soon as the result arrives.
- Adds a comment explaining the controller time needed to drain unread trajectory points on CB3.
| File | Description |
|---|---|
tests/test_spline_interpolation.cpp |
Extends cancellation-result timeouts and documents the buffer-draining delay. |
Review effort: Balanced
urfeex
approved these changes
Nov 19, 2026
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.
cancel_trajectory_while_being_executed_and_sending_new_onewaits 500 ms forTRAJECTORY_RESULT_CANCELED. Before it answers, the control script drains theunread trajectory points, 10 per control cycle on CB3. With the 500 points the
test queues, that alone is ~392 ms of controller time.
In GitHub CI URSim 3.14.3 runs at ~97 % of real time, so the result arrives after
~405 ms and the test passes with less than 100 ms margin. On a host where URSim runs
at ~91 % of real time, both
_urcapand_headlessfail every time, and theresult is logged ~100 ms after the wait gave up.
This raises the two waits after
TRAJECTORY_CANCELin that test to 2 s. The waitreturns as soon as the result arrives, so passing runs take no longer.
Tested against URSim CB3 3.14.3 on a slow VM: failing before, passing after.