-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Pants native client: --concurrent
does not work
#12321
Comments
OK. I don't repro on Linux: Python client: $ USE_NATIVE_PANTS=0 ./pants run build-support/bin/debug_concurrent.py
12:58:00.12 [INFO] Initialization options changed: reinitializing scheduler...
12:58:00.54 [INFO] Scheduler initialized.
Another pants invocation is running. Will wait up to 60.0 seconds for it to finish before giving up.
If you don't want to wait for the first run to finish, please press Ctrl-C and run this command with PANTS_CONCURRENT=True in the environment.
^CInterrupted by user.
$ 12:58:05.80 [INFO] Initialization options changed: reinitializing scheduler...
12:58:06.40 [INFO] Scheduler initialized.
2.7.0.dev0
$ Native client: $ USE_NATIVE_PANTS=1 ./pants run build-support/bin/debug_concurrent.py
12:57:43.23 [INFO] Initialization options changed: reinitializing scheduler...
12:57:43.70 [INFO] Scheduler initialized.
Another pants invocation is running. Will wait up to 60.0 seconds for it to finish before giving up.
If you don't want to wait for the first run to finish, please press Ctrl-C and run this command with PANTS_CONCURRENT=True in the environment.
^CInterrupted by user.
$ 12:57:50.08 [INFO] Initialization options changed: reinitializing scheduler...
12:57:50.98 [INFO] Scheduler initialized.
2.7.0.dev0
$ In both cases I need to hit |
This is likely the same root cause as in #12285 - some issue with console handling / signal handling in either the nails client, the nailgun crate that wraps its use, or both. |
So, independent of pants/src/python/pants/bin/pants_runner.py Lines 44 to 49 in b8f6b9f
pantsd .
AFAICT, the native client does not implement the |
Aha ! Ok. That's a much nicer bug to deal with. |
(Backstory on this flag: on the surface, |
Ok, gotcha - thanks. That fix appears to have 0 impact on my non-repro of this issue, but I'll get it in regardless since that's its own bug. |
Oh wait - @Eric-Arellano |
Now the native client recognizes `--concurrent` as a condition that forces `--no-pantsd`. Fixes pantsbuild#12321 [ci skip-build-wheels]
Now the native client recognizes `--concurrent` as a condition that forces `--no-pantsd`. Fixes #12321
To reproduce, apply this diff:
Then run
USE_NATIVE_PANTS=0 ./pants run build-support/bin/debug_concurrent.py
vsUSE_NATIVE_PANTS=1 ./pants run build-support/bin/debug_concurrent.py
.Note that when using ctrl-c w/
USE_NATIVE_PANTS=1
, it cancels out of the outerdebug_concurrent.py
session and then the inner./pants --version
run executes, but it doesn't terminate.fyi @jsirois
The text was updated successfully, but these errors were encountered: