-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Modernize WatchServiceFileSystemWatcher and watch .env for dev mode #41317
Conversation
We could probably use quarkus/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigUtils.java Lines 75 to 87 in 1d65999
|
9ba4adf
to
d58bfb5
Compare
@radcortez so I went with your idea but went with an even more stripped version of SmallRyeConfig to avoid discovering the converters... could you have a look at the first commit? @geoand I would appreciate a look at the second commit. I modernized |
Seems reasonable, but CI seems to be complaining |
Perfect! |
This comment has been minimized.
This comment has been minimized.
Mkay. Doesn't look good. I will have a look at these particular tests... |
Fixes quarkusio#41282 I can't say I'm a big fan of the fix but we will have to live with this for now.
- Switch to java.nio consistently - Allow to monitor a directory for specific files - Monitor .env file
d58bfb5
to
9a71a13
Compare
Status for workflow
|
Fixes #41282
I can't say I'm a big fan of the fix but we will have to live with this for now.
@stuartwdouglas while working on this, I stumbled upon a small issue: if we are filtering tests, the counter of run tests (
All 5 tests are passing (0 skipped)
) is not updated when we add filters (even when we force a re-run).My understanding is that we actually don't clear the test results but only push diffs to the test results (in
TestState
). I wonder if when we fully rerun the tests, we should actually clear the status but I'm not entirely sure, that's what you wanted?The reproducer here is quite useful: https://github.com/flyinfish/quarkus--continuous-testing-dotenv . Run dev mode, then uncomment the filters in
src/main/resources/application.properties
and you should see the problem.@radcortez at some point, we should probably think of a way to achieve this in a fully supported manner as this thing is quite brittle :). Not sure it's high priority though.