-
Notifications
You must be signed in to change notification settings - Fork 91
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
Dev mode runs ITs exercising Health Check endpoints before they are available #766
Comments
In a normal app start, it looks like the health endpoints start first:
so something seems to be going wrong here. |
We recently changed Liberty so the ports do not open until much later in startup, essentially just before the server started message. So if the logs are being monitored for the app started message and then a connection is attempted it would fail because the port would not be open. I'm not sure if that is relevant here, but maybe it is. |
Reproduced this in the given stack (but without skipping tests), logs are below. Looks like a timing issue. The sequence of events in this case are:
|
I was able to reproduce something similar when not using appsody. Just running dev mode with the hot tests enabled with the demo-devmode project.
|
Let me note right upfront that I haven't proven that I'm seeing what I described in the issue title.
However, when I look at: appsody/stacks#724, which I've recreated but without a complete set of logs..... it seems like, when you run with
-DhotTests=true
then you can get failures (404 and others).I assume what's happening is that the thing dev mode is watching to indicate it's ready to run the tests says the app has been started although these endpoints aren't available. yet.
The text was updated successfully, but these errors were encountered: