-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
experimental_shell_command
sometimes spins for a long time on "Scheduling" step
#16825
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
From the additional
Both of these point to the fact that having tons of small files as inputs/outputs to processes is currently relatively inefficient. Using zips/tars is a workaround, but in the medium term it's possible that we'll want to support using FUSE for these use-cases (see). |
I was wrong about #16848, so this is likely actually the root cause of the display issue: the stray |
@danxmoran confirmed that switching from "fetch" to "validate" dropped the time for the local cache hit by 95% (which is probably at least partially due to #16627: thanks!). Without changing the semantics of
The next step for this one is fuzzier... but it probably involves trying to get a repro in |
Filed #17448 for this one. |
I apparently forgot to link it here, but I did set up a public repository that repros the current behavior: https://github.com/danxmoran/pants-yarn-install-repro |
@danxmoran I get a bunch of errors of the following form when I try to run
|
|
(or not; see edited comment) |
What version of (Note that |
|
Ugh, my guess is the newer |
I actually upgraded form a reasonably old node (though I didn't check the version) in order to see if node version was the issue. I'll see if I can use the same version of node as you |
Yup, this appears to be working now! |
After some experimentation, I found that there's been a few regressions in |
So the good news is that the bug specific bug reported here was fixed on The bad news is that d8c0488 triggered some other bug that is causing consistent cache misses for the |
(To reproduce on main:
) |
Update: We've got this to a point where on be00ed5, we can get the 3rd build and onwards to run in ~3 seconds by installing @stuhood is going to look at #17542 to see if the memory issue has gone away on |
While working on #16825, we discovered that parts of the trace for our `experimental_run_shell_command` were not captured. That's because there was no work unit preserved. This adds such a work unit.
Checking back in on the current |
And just for fun, I'm running on an unadorned I'm running First run: Second run: Third run: @danxmoran to reproduce, try using Based on my tests when |
I think that we should probably still open a ticket about the memory usage, as it is surprising. But yea, this is closer to reasonable. |
@stuhood I agree about the memory usage needing a separate ticket, but IMHO performance even without the immutable inputs is probably tolerable at this point. |
I think we can close this one. @danxmoran please reopen if you're still experiencing untolerable performance on |
While working on pantsbuild#16825, we discovered that parts of the trace for our `experimental_run_shell_command` were not captured. That's because there was no work unit preserved. This adds such a work unit.
) While working on #16825, we discovered that parts of the trace for our `experimental_run_shell_command` were not captured. That's because there was no work unit preserved. This adds such a work unit. Co-authored-by: Christopher Neugebauer <chrisjrn@toolchain.com>
Describe the bug
I've been trying to plug our front-end build process into Pants in a minimal way so we can include static assets in our container builds. I have an
experimental_shell_command
that runsyarn install
as part of this. The command ran once successfully, but e ever since that point when I try to re-run it Pants will spin for awhile on:When I run with
-ldebug
I see:The step eventually (after ~200s) finishes and moves on.
Pants version
v2.13.0
OS
MacOS
Additional info
https://app.toolchain.com/organizations/color/repos/color/builds/pants_run_2022_09_12_08_55_13_980_5f4261a10dfe4c219fc7bde55d1031de/
The text was updated successfully, but these errors were encountered: