-
Notifications
You must be signed in to change notification settings - Fork 553
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
gazelle extension calls cmd.Wait() too eagerly #1546
Comments
tyler-french
changed the title
gazelle extension is too dependent on OS stdout and stdin FDs
gazelle extension calls cmd.Wait() too eagerly
Nov 8, 2023
At the very least, |
aignas
added a commit
to aignas/rules_python
that referenced
this issue
Nov 9, 2023
@tyler-french, @sbalabanov, let me know if #1550 is something what you are looking for. |
lgtm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐞 bug report
Affected Rule
gazelle/python/std_modules.go
Is this a regression?
No
Description
os.Stdout
andos.Stdin
are assigned to global mutable variables in this file. Then, they are initialized in this function.When running gazelle at Uber, the process can sometimes take 10-15 minutes as we traverse 100ks of directories with Gazelle. To help make this more familiar, we tried to implement metrics and progress logging. One of the metrics emitters uses a call to a
os/exec.Cmd
. We noticed that when this is added, we experience intermittent failures that look like this:🔬 Minimal Reproduction
Add this patch to gazelle:
Run gazelle on a small directory with the python gazelle plugin installed:
🔥 Exception or Error
This seems to be caused by calling
cmd.Wait
https://pkg.go.dev/os/exec#Cmd.StdoutPipe🌍 Your Environment
Operating System:
linux_x86_64
Output of
bazel version
:6.4.0
Rules_python version:
Anything else relevant?
Gazelle version 0.33.0
The text was updated successfully, but these errors were encountered: