Skip to content

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

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

David-LP99 merged 2 commits into
kiltedfrom
mergify/bp/kilted/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.

@codecov-commenter

codecov-commenter commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.60%. Comparing base (cc5d34a) to head (1602f4f).
⚠️ Report is 1 commits behind head on kilted.

Additional details and impacted files
@@            Coverage Diff             @@
##           kilted     #340      +/-   ##
==========================================
- Coverage   55.46%   54.60%   -0.87%     
==========================================
  Files         102      101       -1     
  Lines        6070     5897     -173     
  Branches      997      940      -57     
==========================================
- Hits         3367     3220     -147     
+ Misses       2352     2344       -8     
+ Partials      351      333      -18     

☔ 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.

Signed-off-by: David Laseca Perez <davidlaseca@eprosima.com>
@David-LP99
David-LP99 merged commit efbd887 into kilted Sep 23, 2026
4 checks passed
@David-LP99
David-LP99 deleted the mergify/bp/kilted/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