Add test for --unload-on-kill spawner lock behavior#3035
Open
naitikpahwa18 wants to merge 4 commits intoros-controls:masterfrom
Open
Add test for --unload-on-kill spawner lock behavior#3035naitikpahwa18 wants to merge 4 commits intoros-controls:masterfrom
naitikpahwa18 wants to merge 4 commits intoros-controls:masterfrom
Conversation
Signed-off-by: Naitik Pahwa <naitikpahwa18@users.noreply.github.com>
Signed-off-by: Naitik Pahwa <naitikpahwa18@users.noreply.github.com>
Signed-off-by: Naitik Pahwa <naitikpahwa18@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds a C++ regression test in controller_manager to ensure a spawner started with --unload-on-kill does not hold the global spawner lock while waiting for interrupt, allowing other spawners to start promptly (covers the fix from #2559; closes #2566).
Changes:
- Add
unload_on_kill_does_not_block_other_spawnerstest that runs one spawner in the background with--unload-on-kill. - Measure that a second spawner invocation completes within a bounded time, indicating it wasn’t blocked on the lock.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Naitik Pahwa <naitikpahwa18@users.noreply.github.com>
bmagyar
approved these changes
Feb 26, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3035 +/- ##
==========================================
+ Coverage 89.39% 89.43% +0.03%
==========================================
Files 157 157
Lines 18783 18794 +11
Branches 1510 1511 +1
==========================================
+ Hits 16792 16808 +16
+ Misses 1369 1366 -3
+ Partials 622 620 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
This PR adds a regression test to verify that a spawner started with
--unload-on-kill does not block other spawners while waiting for an
interrupt.
The test launches one spawner in the background and ensures a second
spawner can start without being delayed, covering the locking fix
introduced in #2559
Closes #2566