Skip to content

Fix timeout for no metadata run session (backport #305) - #343

Merged
David-LP99 merged 2 commits into
humblefrom
mergify/bp/humble/pr-305
Sep 23, 2026
Merged

David-LP99 merged 2 commits into
humblefrom
mergify/bp/humble/pr-305

Conversation

@mergify

@mergify mergify Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Spin is not waiting if a session only haves timers, ending in a 100% CPU usage with code like this one: int32_publisher.

Also, we should run all sessions atleast once, to ensure a response to incoming data (From Hard liveliness check for example).

Related issue: #297


This is an automatic backport of pull request #305 done by Mergify.

* Run session if any session is present

Signed-off-by: acuadros95 <acuadros1995@gmail.com>

* Fix var type

Signed-off-by: acuadros95 <acuadros1995@gmail.com>

* Modify timeout approach

Signed-off-by: acuadros95 <acuadros1995@gmail.com>

* Modify wait approach

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>

* Add tests for 'rmw_wait'

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>

* Fix possible segfault

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>

* Add CI workflow step

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>

* Fix CI after new step

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>

---------

Signed-off-by: acuadros95 <acuadros1995@gmail.com>
Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>
Co-authored-by: David Laseca Perez <davidlaseca@eprosima.com>
(cherry picked from commit 938801c)
Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>
@mergify

mergify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.00%. Comparing base (34382ca) to head (66285fa).

Additional details and impacted files
@@            Coverage Diff             @@
##           humble     #343      +/-   ##
==========================================
+ Coverage   53.98%   55.00%   +1.01%     
==========================================
  Files          98       99       +1     
  Lines        5761     5898     +137     
  Branches      922      932      +10     
==========================================
+ Hits         3110     3244     +134     
  Misses       2327     2327              
- Partials      324      327       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@David-LP99
David-LP99 merged commit 3a98566 into humble Sep 23, 2026
4 checks passed
@David-LP99
David-LP99 deleted the mergify/bp/humble/pr-305 branch September 23, 2026 13:34
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.

3 participants