From cde04c9bfa131c0ded92b59009fdb9f99c76bc84 Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Mon, 14 Sep 2026 17:34:19 -0400 Subject: [PATCH] ci: stop asking the Android SDK for the obsolete `tools` package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 54261129 and failed at 20:41 on 0fa163c5 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. --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a776075..92c15aac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -408,7 +408,19 @@ jobs: steps: - uses: actions/checkout@v7 + # packages: '' — do NOT let the action install its default package set. + # That set includes the obsolete `tools` package, which cmdline-tools 20.0 + # (rolled into the runner image today) no longer serves: + # Warning: Failed to find package 'tools' + # Error: The process '.../cmdline-tools/20.0/bin/sdkmanager' + # failed with exit code 1 + # This job passed at 17:59 today and failed at 20:41 with no change to it, + # and it dies inside the action before any step of ours runs. The runner + # image already ships platform-tools and build-tools, which is all + # `gradlew assembleDebug` needs here. - uses: android-actions/setup-android@v4 + with: + packages: '' - uses: pnpm/action-setup@v6