Skip to content

fix: drop obsolete 'tools' package from Android SDK setup - #145

Merged
larseggert merged 1 commit into
mainfrom
fix-android-ci
Sep 15, 2026
Merged

larseggert merged 1 commit into
mainfrom
fix-android-ci

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI balanced review requested due to automatic review settings September 15, 2026 12:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread nss/action.yml Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-tools needed at all? Nothing in this repo invokes adb/fastboot; the Android path only needs the NDK, which the next step installs via sdkmanager --install "ndk;$NDK_VERSION" using the cmdline-tools the action already provisions. If setup-android treats packages: "" 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.yml copy noted inline is the only signal, so keeping the two call sites consistent (or collapsing to one) matters more than usual.

Comment thread nss/action.yml Resolved
Comment thread nss/action.yml Resolved
Copilot AI review requested due to automatic review settings September 15, 2026 12:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change removes the obsolete package while preserving required SDK tooling and test coverage.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/test.yml Resolved
@larseggert
larseggert merged commit 4f51578 into main Sep 15, 2026
63 checks passed
@larseggert
larseggert deleted the fix-android-ci branch September 15, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants