-
Notifications
You must be signed in to change notification settings - Fork 188
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
PowerShellForGitHub: Disable Progress Bar for Invoke-WebRequest #229
PowerShellForGitHub: Disable Progress Bar for Invoke-WebRequest #229
Conversation
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.
Thanks for the quick fix. I think we need to consider the failure scenario though to make sure that we're not accidentally making a permanent change to the user's preferences.
I was still getting a progress bar 'flicker' with |
I had been seeing that too and was wondering where it was coming from. Glad you tracked it down. It is a shame that there's duplicated code across |
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.
Thanks for this. Will get it merged in later today. CI queue is a bit backed-up at the moment.
Could you not create two more GitHub accounts/organizations, to have one for each test environment (Windows, Linux, MacOS)? The pipeline jobs could run in parallel then, with no impact on each other. It would reduce the CI runtime from an hour to approx 20 mins. |
Let's see how well this works.... #231. |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
Description
This PR disables the PowerShell progress bar for the
Invoke-WebRequest
cmdlet calls in theInvoke-GHRestMethod
andInvoke-SendTelemetryEvent
functions due to known performance issues in PowerShell 5.1.Issues Fixed
References
Progress bar can significantly impact cmdlet performance.
Checklist
Comment-based help added/updated, including examples.Changes to the manifest file follow the manifest guidance.Unit tests were added/updated and are all passing. See testing guidelines.Relevant usage examples have been added/updated in USAGE.md.If desired, ensure your name is added to our Contributors list