Skip to content

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

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

David-LP99 merged 2 commits into
jazzyfrom
mergify/bp/jazzy/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)
@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.

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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.64%. Comparing base (7dcbe0d) to head (548dd92).

Additional details and impacted files
@@            Coverage Diff             @@
##            jazzy     #341      +/-   ##
==========================================
+ Coverage   53.63%   54.64%   +1.00%     
==========================================
  Files         100      101       +1     
  Lines        5757     5894     +137     
  Branches      928      938      +10     
==========================================
+ Hits         3088     3221     +133     
  Misses       2339     2339              
- Partials      330      334       +4     

☔ 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 e64d79f into jazzy Sep 23, 2026
4 checks passed
@David-LP99
David-LP99 deleted the mergify/bp/jazzy/pr-305 branch September 23, 2026 12:09
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