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
Use pre-installed Az PowerShell module rather than downloading from PSGallery #1051
Comments
This goes a little larger then smok-tests I've see it fail for normal live test runs as well. We need to come up with some way to reduce this error path when powershell gallery isn't responsive. |
Looks like at least hosted image already includes these PS modules (https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#azure-powershell-modules) and we should try to use those instead of always doing a force install. From a quick look it seems windows and linux have 4.7 and mac has 4.6.1 and as long as those versions are enough we should just use those instead of install anything. |
@heaths do you remember why we do a force install? (https://github.com/Azure/azure-sdk-tools/blob/master/eng/common/TestResources/setup-az-modules.yml#L24) as opposed to using the versions on the machine? |
The force install has nothing to do with overriding what's installed. It's because you're prompted, by default, unless you pass |
Fixed by #1137 |
…EOWNERS emails (Azure#1051) * Enable alerts: move ci.yml, add CODEOWNERS * Move ci.yml to sdk/ to align better with repo layout and take advantage of the SDK owners
Last night we saw the following error.
Now, the pshell installer module already retries an download/install 3 times if it hits an exception. The issue here is that the repository threw a false-negative, which ended up crashing our pipeline.
Whether wrapping the entire script in a retry-loop is the solution, I'll leave up to the implementer.
The text was updated successfully, but these errors were encountered: