Skip to content
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

ci(windows): don't install awscli via choco #4111

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Dec 12, 2024

TLDR: Addresses #4105 (comment).

It's not our problem, but choco upgrade awscli has been causing our master CI to fail since a few days ago:

Progress: 100% - Completed download of C:\Users\runneradmin\AppData\Local\Temp\chocolatey\awscli\2.22.13\AWSCLIV2-2.22.13.msi (40.56 MB).
Download of AWSCLIV2-2.22.13.msi (40.56 MB) completed.
Hashes match.
Installing awscli...
WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\awscli_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.
ERROR: Running ["C:\Windows\System32\msiexec.exe" /i "C:\Users\runneradmin\AppData\Local\Temp\chocolatey\awscli\2.22.13\AWSCLIV2-2.22.13.msi" /qn /norestart /l*v "C:\Users\runneradmin\AppData\Local\Temp\chocolatey\awscli.2.22.13.MsiInstall.log"] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\awscli_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error..
The upgrade of awscli was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\awscli\tools\chocolateyinstall.ps1'.
 See log for details.
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - awscli (exited 1603) - Error while running 'C:\ProgramData\chocolatey\lib\awscli\tools\chocolateyinstall.ps1'.
 See log for details.
Error: Process completed with exit code 1.

... and I guess the only reasonable thing to do now is stop using that command. Instead, we should just check whether awscli is already installed, like we currently do on Linux.

@rami3l rami3l requested review from djc and ChrisDenton December 12, 2024 04:58
Copy link
Member

@ChrisDenton ChrisDenton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. In any case, if it's already installed then we don't need to do anything.

@ChrisDenton ChrisDenton added this pull request to the merge queue Dec 12, 2024
@rami3l
Copy link
Member Author

rami3l commented Dec 12, 2024

Makes sense to me. In any case, if it's already installed then we don't need to do anything.

@ChrisDenton I believe it was there because sometimes inconsistent awscli versions between different runners will also cause problems for us... Now I really don't know since GitHub is constantly changing the list of software being installed and how each piece of software is managed in the system. Let's hope the actual release will be alright 🙏 I've scheduled it for this weekend.

@rami3l rami3l added this to the 1.28.0 milestone Dec 12, 2024
@ChrisDenton
Copy link
Member

I believe it was there because sometimes inconsistent awscli versions between different runners will also cause problems for us...

Would that not be an issue for Linux runners too?

Merged via the queue into rust-lang:master with commit 178c502 Dec 12, 2024
27 checks passed
@rami3l rami3l deleted the ci/no-choco-awscli branch December 12, 2024 05:38
@rami3l
Copy link
Member Author

rami3l commented Dec 12, 2024

I believe it was there because sometimes inconsistent awscli versions between different runners will also cause problems for us...

Would that not be an issue for Linux runners too?

@ChrisDenton That's a very good question 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants