Repository navigation
fix: drop obsolete 'tools' package from Android SDK setup - #145
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The Android test workflow still requests the obsolete default package before invoking the updated action.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates Android SDK setup to avoid installing the obsolete tools package.
Changes:
- Explicitly installs only
platform-tools.
File summaries
| File | Description |
|---|---|
nss/action.yml |
Overrides the SDK package list. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
One-line CI fix: pin packages: platform-tools on android-actions/setup-android so its default tools platform-tools no longer tries to install the obsolete (and no-longer-served) tools package. Correct approach — overriding the input is cleaner than any post-hoc workaround, and the SHA pin is preserved.
Two things beyond the individual lines:
- Is
platform-toolsneeded at all? Nothing in this repo invokesadb/fastboot; the Android path only needs the NDK, which the next step installs viasdkmanager --install "ndk;$NDK_VERSION"using the cmdline-tools the action already provisions. Ifsetup-androidtreatspackages: ""as "install nothing" (it does as of v3; worth a quick confirm against the pinned v4.0.1), that would shave a download off every Android job and make the intent — "don't install the default set" — unambiguous. - No regression guard. The failure mode is a silently-changing upstream default, which no test here can catch. Not worth building machinery for, but it does mean the
test.ymlcopy noted inline is the only signal, so keeping the two call sites consistent (or collapsing to one) matters more than usual.
ce197b4 to
1adb411
Compare
There was a problem hiding this comment.
Re-review of 1adb411.
Resolved since my last pass: the test.yml duplicate-setup issue is fixed — and fixed the better of the two ways I suggested, by deleting the redundant setup-java/setup-android pair rather than copying the packages override into it. grep now finds exactly one setup-android call site in the repo, so there's nothing left to keep in sync. Same conclusion as Copilot's comment, which this commit also addresses.
Still open: my inline packages: comment (explain that the value overrides a default rather than adds to it) and the question from my previous review body of whether platform-tools is needed at all — nothing here invokes adb/fastboot, and the NDK install goes through sdkmanager from cmdline-tools. Both are cosmetic/optimization, not blockers.
Architecturally this is now the right shape: nss/action.yml owns the whole Android prerequisite chain (Java → SDK → NDK), all three gated on the same contains(inputs.target, '-android') predicate, and test.yml just exercises the action as a consumer would. That also makes the Android jobs a genuine integration test of the action's defaults instead of a path the workflow had pre-configured — the coverage note is inline.
No description provided.