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
Use the watch service when possible #16962
Conversation
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building b1b1af9
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 extensions/vertx-http/deployment✖ ✖ ⚙️ JVM Tests - JDK 11 Windows #📦 core/deployment✖ ⚙️ JVM Tests - JDK 15 #📦 extensions/vertx-http/deployment✖ |
b1b1af9
to
3775146
Compare
core/deployment/src/main/java/io/quarkus/deployment/dev/RuntimeUpdatesProcessor.java
Show resolved
Hide resolved
3775146
to
94aa0de
Compare
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building 3775146
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 extensions/vertx-http/deployment✖ |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 94aa0de
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 extensions/vertx-http/deployment✖ |
public void run() { | ||
periodicTestCompile(); | ||
if (testClassChangeWatcher == null && testClassChangeTimer == null) { | ||
if (IS_LINUX) { |
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.
I'm almost sure that the WatchService
also works in Windows and Mac OSX. What's the reason for not using on other OSes?
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.
On mac it is just a polling based impl, that polls much slower than our current version (or at least it was when I last used it). Not sure on windows, I need to check, but I thought I would start with Linux as I know it works.
@stuartwdouglas I'm not sure if the test failure could be related? |
3f18388
to
d8fa7d0
Compare
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building 3f18388
Full information is available in the Build summary check run. Test Failures⚙️ Gradle Tests - JDK 11 Linux #📦 integration-tests/gradle✖ ✖ ✖ ✖ ✖ ⚙️ Gradle Tests - JDK 11 Windows #📦 integration-tests/gradle✖ ✖ ✖ ✖ ✖ ⚙️ JVM Tests - JDK 11 #📦 extensions/vertx-http/deployment✖ ⚙️ JVM Tests - JDK 16 #📦 extensions/vertx-http/deployment✖ |
I have hopefully added a guard that will stop the failures. |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building d8fa7d0
Full information is available in the Build summary check run. Test Failures⚙️ Gradle Tests - JDK 11 Linux #📦 integration-tests/gradle✖ ✖ ✖ ✖ ✖ ⚙️ Gradle Tests - JDK 11 Windows #📦 integration-tests/gradle✖ ✖ ✖ ✖ ✖ ⚙️ JVM Tests - JDK 11 #📦 extensions/vertx-http/deployment✖ |
Using the watch service on Linux allows for tests to run instantly after the file is saved. Other platforms don't have a useful watch service implementation, so we still use polling for these platforms.
d8fa7d0
to
de4cf75
Compare
This should be good to go 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.
OK, let's get this in!
Using the watch service on Linux allows for
tests to run instantly after the file is saved.
Other platforms don't have a useful watch service
implementation, so we still use polling for these
platforms.