-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Handling SIGTERM in CLI start
command
#1459
fix: Handling SIGTERM in CLI start
command
#1459
Conversation
start
to handle SIGTERM signalstart
command
Confirmed, it kills the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm happy with this going in without automated tests for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## develop #1459 +/- ##
===========================================
+ Coverage 72.08% 72.22% +0.13%
===========================================
Files 185 185
Lines 18224 18224
===========================================
+ Hits 13137 13162 +25
+ Misses 4044 4026 -18
+ Partials 1043 1036 -7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
## Relevant issue(s) Resolves sourcenetwork#1458 ## Description Simply adds SIGTERM to the list of handled signals. We can send send a signal, `syscall.Kill(syscall.Getpid(), syscall.SIGINT)` within an integration test but it will end the test process which also is running the other tests. It might require an 'external' integration test suite in which we can run the command and then send the signal to the process. ## Tasks - [x] I made sure the code is well commented, particularly hard-to-understand areas. - [x] I made sure the repository-held documentation is changed accordingly. - [x] I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in [tools/configs/chglog/config.yml](tools/configs/chglog/config.yml)). - [x] I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ... ## How has this been tested? Manually
Relevant issue(s)
Resolves #1458
Description
Simply adds SIGTERM to the list of handled signals.
I'm unsure how to test this. We can send send a signal,
syscall.Kill(syscall.Getpid(), syscall.SIGINT)
within an integration test but I'm worried it will end the test process which also is running the other tests.It might require an 'external' integration test suite in which we can run the command and then send the signal to the process.
Tasks
How has this been tested?
Manually