-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Integration tests never complete #395
Comments
Are you able to provide a self contained example at all? Are there any docs about the behaviour you're seeing? |
I have the same problem with Linux, windows works. My repo is here: https://github.com/NicolasBissig/azure-functions-decorators/tree/feature/examples how to recreate:
What you should see:
|
While doing some further research, I found these two related issues in the core tools repo:
Hope this helps! |
@gustavohenke Have been testing the proposed PR #396 in our development environment and it does solve the issue. This means that all of the Azure bits are irrelevant. All you need to reproduce this behavior is a simple app that listens for SIGTERM messages and ignores them. (Likely written in your favorite flavor of C.) If we can add a flag to concurrently which changes the signal from SIGTERM to SIGKILL that would resolve the issue. A more robust solution would be to start by sending the SIGTERM signal, and the follow that up with SIGKILL after a delay, if the app didn't shutdown in time. |
Sounds like a simple enough fix, would be happy to add a The SIGKILL delay idea needs a bit more thinking. It can probably evolve later from this one. Do you think that with this you'll have what you need to improve your workflow? |
@gustavohenke Sorry for the late follow up. Yes a flag to switch from SIGTERM to SIGKILL, would fully meet our needs. |
@gustavohenke I have submitted a new PR to add the --kill-signal flag. |
Environment
MacOS 13.0.1
Node 16.16.0
Typescript 4.9.4
Concurrently 7.6.0
Describe the bug
We are attempting to write some integration tests for our azure functions, however the function runtime restarts instead of exiting when the test are complete, so the process never finishes.
To Reproduce
Steps to reproduce the behavior:
jest
which makes a http request against the triggerpackage.json
npm run test
Expected behavior
When the jest exits, concurrently should kill the azure function runtime, and terminate.
Actual behavior
Relevant Console Output
Proposed Fix
Add a command line argument to
concurrently
which will send a SIGKILL signal instead of a SIGTERM signal, to force the azure runtime to exit immediately.The text was updated successfully, but these errors were encountered: