Skip to content

Conversation

@pguyot
Copy link
Collaborator

@pguyot pguyot commented Dec 6, 2025

Test was flappy but in fact it was succeeding because of a race condition. If intensity if 5, supervisor should not have 5 restarts in its children or will shut down. Make test more robust using monitors and add a new test to assert the number of restarts that cause a shutdown.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@pguyot pguyot requested a review from UncleGrumpy December 6, 2025 12:32
@pguyot pguyot force-pushed the w49/fix-test-supervisor branch from 14b5116 to 87770c6 Compare December 6, 2025 12:39
@pguyot pguyot marked this pull request as draft December 6, 2025 12:51
@pguyot pguyot force-pushed the w49/fix-test-supervisor branch 2 times, most recently from 90fb2da to 2c7ac33 Compare December 6, 2025 21:03
Test was flappy but in fact it was succeeding because of a race condition.
If intensity if 5, supervisor should not have 5 restarts in its children or
will shut down. Make test more robust using monitors, references,
assertion of exit reasons and removing a potential race condition with
a registered name.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@pguyot pguyot force-pushed the w49/fix-test-supervisor branch from 2c7ac33 to 480cb1a Compare December 7, 2025 16:57
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.

1 participant