Purge Fastly cache after release
When releasing a new version of rustup, we need to purge the cached version on Fastly. This is done by calling Fastly's API using curl and purging the surrogate key that is used for rustup.
See https://github.com/rust-lang/simpleinfra/issues/415 for more details.
@jdno Thank you! Since this commit cannot be tested (and is essentially used by t-infra exclusively), I entrust you with its correctness.
@jdno One (newbie) question: is it possible to move this script to e.g. some repo that you directly control? After all, it's a bit weird to have something in our repo that we can't run π€
Thanks for the quick review! I'll ask @Mark-Simulacrum to have a look as well.
Before we merge this it would be great to test it with dev-static. I've tested the snippets that I've added and am fairly confident that everything should just workβ’. But it'd be great to actually confirm this. π
@jdno One (newbie) question: is it possible to move this script to e.g. some repo that you directly control? After all, it's a bit weird to have something in our repo that we can't run π€
Mark and I briefly discussed in Zulip that it would be good to replace this script with an automated release process, maybe similar to rust-lang/promote-release which runs on AWS CodeBuild and is deployed through rust-lang/simpleinfra.
We can definitely have a more concrete discussion about how the release process can be automated/improved. π
Agreed with @rami3l that it doesn't make much sense for us to review this. A more automated release process sounds good, I guess that's something someone from the infra team would implement?
This is waiting for @Mark-Simulacrum's approval then.
We've been discussing refactoring the release process in Zulip and on the draft implementation in promote-release.
The outcome of that discussion is that we definitely want to reimplement the Python script as part of promote-release. But that requires some modifications to the current release process.
I've written a draft for that process in #3844.