You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: tests sending signals to be caught by in-container shell scripts are racy #3908
The fundamental problem seems to be that sending the signal may race the shell script setting up the trap.
Overall, we should consume the container logs first and check that the trap is fully set (greping for "script ready" or some other way for the script to signal the trap is set) before sending the signal.
This applies to tests relying on an in-container trap. Currently:
TestRunSigProxy <- this one is currently somewhat safe as it forces wait 3 seconds (though arbitrary length waits are fragile and not a proper solution)
TestStopWithStopSignal
probably TestRestartWithSignal
Steps to reproduce the issue
Describe the results you received and expected
na
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
Activity