-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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: use a custom android sdk manager with pinning and mirroring #59926
Conversation
Could you describe a bit what the process would look like to upgrade these images? (ideally in comments in the code as well!) I'd just want to make sure that's documented somewhere and otherwise lgtm |
There is already a bit of docs in the comments. Should I expand it or move it somewhere else? The gist of it (for example to update the emulator) is:
|
Yeah I was wondering how we'd update all the hashes, but I see the words now and that seems reasonable to me, sorry for the oversight! @bors: r+ |
📌 Commit 4e920f2 has been approved by |
Do not rollup this. |
@bors p=2 Putting behind a r0llup and its constituent PRs. |
ci: use a custom android sdk manager with pinning and mirroring Google's own sdkmanager has two issues that make it unsuitable for us: * Mirroring has to be done manually, which is annoying because we need to figure out on our own all the URLs to copy (I couldn't find any documentation when building this PR, had to use mitmproxy). * There is no support for pinning, which means an update on Google's side can break our CI, as it happened multiple times. This PR replaces all our usage of sdkmanager with a custom Python script which mimics its behavior, but with the two issues fixes. sdkmanager's logic for installing packages is thankfully very simple: the package name (like `system-images;android-18;default;armeabi-v7a`) is the directory where the package should live (with `;` replaced with `/`), so to install a package we only need to extract its contents in the right directory. r? @alexcrichton cc @kennytm fixes #59778
☀️ Test successful - checks-travis, status-appveyor |
Google's own sdkmanager has two issues that make it unsuitable for us:
This PR replaces all our usage of sdkmanager with a custom Python script which mimics its behavior, but with the two issues fixes.
sdkmanager's logic for installing packages is thankfully very simple: the package name (like
system-images;android-18;default;armeabi-v7a
) is the directory where the package should live (with;
replaced with/
), so to install a package we only need to extract its contents in the right directory.r? @alexcrichton
cc @kennytm
fixes #59778