-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove aws cli install. #110972
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
Remove aws cli install. #110972
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
@bors r+ rollup=iffy |
⌛ Testing commit 7cb798c with merge 200be0aeacba7e41d86347224b22163f6cb8b696... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
The best I can tell from searching around is that error is generated because the v2 CLI now uses the IMDS service to determine the region, but for some reason it doesn't work on GitHub Actions. The solution is to specify the region so that it does not have to go discover it. An alternate solution is possibly to set Also, let me know if you would like the ability to set the region separately for artifacts versus caches. From what I can tell, the buckets currently used in CI are rust-lang-ci-sccache2, rust-lang-ci-mirrors, and rust-lang-ci2. I haven't tested on GitHub Actions if this actually solves the problem. I can do some testing on my own account if you would prefer to not blindly try things. |
Setting the AWS region should be enough. @bors r+ rollup=never |
⌛ Testing commit 291b61e with merge da5bacec5e1c48ed5b0193eb91e7ffc6a05f1d11... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
I'm not too familiar with the self-hosted runner. I forgot that it has its own environment. Is there a separate place where its environment is defined? Or should the CI script just manually install the |
The image is defined in https://github.com/rust-lang/gha-self-hosted/tree/master/images/ubuntu/scripts. I'd add a script in https://github.com/rust-lang/gha-self-hosted/tree/master/images/ubuntu/scripts to install AWS CLI into the image, and then register it in https://github.com/rust-lang/gha-self-hosted/blob/f9bc6794b8b27a22c7805c60b5ee98d9e79ce604/images/ubuntu/ubuntu.json#L30-L46. |
Thanks for the pointers! I have posted rust-lang/gha-self-hosted#18. |
@bors retry Rebuilt the self hosted image with the patch above, so hopefully this should merge now. |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
Finished benchmarking commit (a77c552): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 653.481s -> 654.347s (0.13%) |
All runner images have the AWS CLI 2 installed, so there isn't a really strong reason to install our own version anymore.
The version we were installing was 1.27.122. The runner images currently have 2.11.x (the exact version varies by image).
I do not have the means to really test if the new version has any issues. I looked at all the
aws
commands, and none of them seem to be doing anything unusual. The page at https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration-changes.html contains a list of all the breaking changes, and I didn't see anything that looked important.