ci: stop asking the Android SDK for the obsolete tools package - #185
Merged
Merged
Conversation
nchat main went red on the Android debug APK job:
Warning: Failed to find package 'tools'
Error: The process '/usr/local/lib/android/sdk/cmdline-tools/20.0/bin/sdkmanager'
failed with exit code 1
Not caused by anything in this repo. The job passed at 17:59 today on 5426112
and failed at 20:41 on 0fa163c with no change to the job, and it dies inside
android-actions/setup-android before any step of ours runs — well before
`pnpm install`, so the dependency bumps in that merge cannot reach it.
The action was used with no inputs, so it installs its default package set, and
that set includes `tools`. `tools` has been obsolete for years and cmdline-tools
20.0, which the runner image picked up today, no longer serves it.
Pass `packages: ''` so the action installs nothing and the job uses the SDK the
runner image already ships. platform-tools and build-tools are present there,
which is all `gradlew assembleDebug` needs.
Android is not a required context on this branch (those are Gitleaks and CodeQL
Analysis), so this was not blocking merges — but a red main is a red main.
PR Checks Summary
✅ All checks passed! Ready for review. |
Security Scan Results: PASSED
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Red on main
Not caused by the merge it appeared on
542611290fa163c5Nothing about the job changed between those two runs, and it dies inside
android-actions/setup-android— beforepnpm install, so the dependency bumps in0fa163c5cannot reach it.The action was used with no inputs, so it installs its default package set, which includes
tools. That package has been obsolete for years, andcmdline-tools 20.0— which the runner image picked up today — no longer serves it.Fix
The action then installs nothing and the job uses the SDK the runner image already ships.
platform-toolsandbuild-toolsare present there, which is allgradlew assembleDebugneeds.Scope
Android is not a required context on this branch — those are
GitleaksandCodeQL Analysis— so this was not blocking any merge. But a red main is a red main, and this one will recur on every push until it is fixed.