-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
The first command invocation on Windows is extraordinarily slow #6561
Comments
Hello @ofek, |
Any update on this? |
@ofek we are working on this issue. I will share all information after I get something interesting. |
Do you have any theories? I'm curious 🙂 |
Dear @ofek , I suppose that Windows Defender might be responsible for build delay. I created sample repo with your pipeline definition. |
oh wow nice! note that |
Actually it looks like the machines are already set up that way https://github.com/al-cheb/virtual-environments/blob/main/images/win/scripts/Installers/Configure-Antivirus.ps1 It would be nice if we could get an official follow-up on this issue as it is globally wasting countless minutes |
FYI @ofek I independently raised #7320. See #7320 (comment) in particular, which points to action/investigation over at actions/checkout#1186.
Note my response is not an official response, just a signpost to others issues. |
Thanks for the links! I have (mostly) resolved this in our workflows by always using Bash |
Interesting. This does not appear to influence our case, because all of our workflows on all platforms are bash, and yet we still see the significant slowness on Windows. |
It's not a complete resolution for sure! But it is much faster than powershell. |
we were able to find a difference between pwsh and powershell. by our measurement this: #8495 should reduce initial powershell run time from 20s to 8s |
Deployed now, closing |
Thank you! |
Description
Between 8-25s to run a help command
Note:
bash
is faster but still affected,powershell
is fastestPlatforms affected
Runner images affected
Image version and build link
https://github.com/ofek/vector/actions/runs/3456312722
Is it regression?
Unknown
Expected behavior
Minimal start-up penalty
Actual behavior
Extreme start-up penalty
Repro steps
The text was updated successfully, but these errors were encountered: