-
Notifications
You must be signed in to change notification settings - Fork 92
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 recompiles upon startup #699
Comments
Hmm..our pretty simple JSF+JPA stack sample https://github.com/OpenLiberty/application-stack-samples/tree/main/jpa seems to keep failing "hot tests" on dev mode startup. Guess I'm just noting this as another symptom of this issue. |
Currently dev mode is compiling twice on startup:
Ideally we would only compile once and bring attention to any compilation errors on startup. This would resolve the above issue as if there was a successful initial compilation, we would not recompile and cause the app to update. This could be done two ways:
|
I wonder if my previous comment: #699 (comment) suggests that maybe the hot test execution part of the loop should be changed somehow to wait for the second compilation? I didn't think to grab the logs but could if we don't already understand what's going on well enough. |
@scottkurz We are looking at making this change as part of the multi-module story (though the change will affect both single module and multi module projects). The first time we run tests in the hot testing scenario, we wait for the second compilation to finish. Once that's implemented it may address the hot tests failing on dev mode startup error that you've encountered |
To move this forwards, I wrote up a POC for the single-module case... https://github.com/scottkurz/ci.common/tree/skip-init-compile The idea is to:
TODO:
It seems to basically work though, for the three cases: nothing to compile, good & bad compiles |
The fix is included in the snapshot 3.11.3-SNAPSHOT. Please see the doc here for how to use a snapshot. |
OpenLiberty/ci.common#111 added a recompile when dev mode starts up, so any compile errors would be shown. However, even if there were no compile errors originally, it will still recompile and cause the application to update.
The text was updated successfully, but these errors were encountered: