-
Notifications
You must be signed in to change notification settings - Fork 435
Allow concurrent exec with watch mode #11840
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
Conversation
1d6ea1e
to
09a0dbe
Compare
Thanks for the PR, it'll be easier to review once #11833 is merged. |
09a0dbe
to
63481de
Compare
f3b6fe0
to
171c7a3
Compare
Will do. I was waiting for #11879 to be merged first as it changes a lot of code in exec.ml. |
32a0082
to
b91cfa6
Compare
@Leonidas-from-XIV all the prereqs for this are now merged. Can you please take a look. |
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.
Very useful work, however I am concerned about the maintainability if the tests are disabled for being flaky. Is there maybe some way to make them more stable?
test/blackbox-tests/test-cases/watching/watching-eager-concurrent-exec-command.t
Outdated
Show resolved
Hide resolved
Hello, World! | ||
|
||
$ dune shutdown | ||
$ wait |
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.
Why are we waiting at the end?
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.
My intention is to wait for the background process started by dune build README.md --watch &
to terminate before exiting the test.
b91cfa6
to
1254b46
Compare
Flaky watch-mode tests is something that has plagued dune for as long as I've worked on it and I'm not sure what exactly we can do about it. @Alizter I recall you doing some work on this recently? |
391ac6a
to
2855ca4
Compare
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.
My only remaining complaint is that I don't like how the utility functions controls the output prettyprinting of the type, I believe the way that the PID is printed should be done in the bin/*
modules.
4bcb45d
to
857372c
Compare
This change allows a limited version of `dune exec` to run at the same time as dune is running in watch mode. This allows users to run example programs without needing to stop their watch server. This works by sending messages to the RPC server to build the executable if necessary. Signed-off-by: Stephen Sherratt <[email protected]>
857372c
to
5e8dbb9
Compare
This change allows a limited version of
dune exec
to run at the same time as dune is running in watch mode. This allows users to run example programs without needing to stop their watch server. This works by sending messages to the RPC server to build the executable if necessary.