Repository navigation
fix: drop obsolete 'tools' package from Android SDK setup - #4000
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The package override correctly removes tools while preserving required Android tooling.
Pull request overview
Overrides the Android setup action’s default packages to avoid installing the obsolete tools package.
Changes:
- Installs only
platform-tools, retaining requiredadbsupport.
File summaries
| File | Description |
|---|---|
.github/actions/check-android/action.yml |
Overrides the setup action’s SDK package list. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- 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: pinning packages: platform-tools for android-actions/setup-android so the obsolete tools package is no longer requested. Scoped correctly — CI-only, no library code touched, and no public API or spec surface involved.
Two things worth a thought, neither blocking:
platform-toolsmay itself be redundant here:adbis only used inside the emulator script, andreactivecircus/android-emulator-runnerinstallsplatform-toolsas part of its own setup. If that holds,packages: ""would skip a redundantsdkmanagerinstall entirely. Probably not worth the churn unless you want the extra seconds back, and keeping it explicit is the safer default.- The real fix belongs upstream in the action's default. If you haven't already, an issue there would keep this workaround from becoming permanent.
Verification is the CI run on this branch; I could not check the action's default value directly from this environment, so the reasoning above rests on setup-android defaulting packages to tools platform-tools.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4000 +/- ##
==========================================
- Coverage 96.96% 96.80% -0.16%
==========================================
Files 113 118 +5
Lines 39643 39988 +345
Branches 39643 39988 +345
==========================================
+ Hits 38438 38709 +271
- Misses 1191 1255 +64
- Partials 14 24 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
b371acc to
5480d56
Compare
And upgrade `nss-rs` to 0.16.1, which has a similar fix for its CI action.
5480d56 to
667a33d
Compare
There was a problem hiding this comment.
Two unrelated things in one PR: the setup-android packages override (drops the obsolete tools package) and an nss-rs 0.14.6 → 0.16.1 bump with the agent → cert module move. Both look correct — I verified every nss::agent::{CertificateInfo, CertificateCompressor} reference is updated (no stale paths anywhere, including docs), the lockfile delta matches 0.16.1's manifest exactly (derive_more/pkg-config in, pkcs11-bindings/once_cell/semver out), the action pin and the lock rev are the same commit (ba8a3f6), [package.metadata.nss].min-version is unchanged at 3.126 so qns/Dockerfile and check-vm keep working, and From<CryptoError> only matches EchRetry so dropping the HKDF arm upstream is a no-op here.
Architectural notes:
- The title/description undersell the dependency upgrade. 0.14.6 → 0.16.1 carries behavior changes beyond the rename, notably nss-rs#174 (
handshake()now fails when the peer certificate is rejected) plus several AEAD/key-export changes (#217, #218, #220). Worth naming in the body, and please confirm CI is green (it was pending at review time) — in particular the cert-rejection paths inneqo-transport/src/connection/tests/handshake.rs(revoked, ECHPolicyRejection), which is what #174 touches. - This is source-breaking for downstream:
Connection::peer_certificate,Connection::set_certificate_compressionandHttp3Client::peer_certificatenow namenss::cert::*in their signatures, so Gecko's imports have to move in lockstep. Consider mentioning it in the next release notes. - Pre-existing, but this bump makes it more consequential:
neqo-transport'sgecko = []is a no-op, whilenss-rsstill gates itsmozbuildin-tree discovery behindnss/geckoand otherwise falls back to pkg-config → cloning NSS from hg. If mozilla-central relies on neqo'sgeckofeature reachingnss-rs,gecko = ["nss/gecko"]would be the correct forwarding; if it enablesnss-rs/geckodirectly, no change needed.
My earlier note about documenting why packages: platform-tools is set (it exists solely to override the action's default, which still lists the dead tools package) still applies and isn't re-raised here.
| libc = { version = "0.2", default-features = false } | ||
| log = { version = "0.4", default-features = false } | ||
| nss = { version = "0.14", package = "nss-rs", git = "https://github.com/mozilla/nss-rs" } | ||
| nss = { version = "0.16", package = "nss-rs", git = "https://github.com/mozilla/nss-rs" } |
There was a problem hiding this comment.
Tip
The install-nss action is pinned to the exact 0.16.1 commit while this git dep tracks main, so the two can silently diverge on the next cargo update (which would pull unreleased nss-rs main into a crypto dependency). Pinning the tag keeps them verifiably in sync:
| nss = { version = "0.16", package = "nss-rs", git = "https://github.com/mozilla/nss-rs" } | |
| nss = { version = "0.16", package = "nss-rs", git = "https://github.com/mozilla/nss-rs", tag = "0.16.1" } |
Performance profiles for profiler.firefox.comBenchmarks (14)
|
Benchmark resultsNo significant performance differences relative to 6f4c0e1. All resultstransfer/1-conn/1-100mb-resp (aka. Download)/mtu-1504 time: [133.66 ms 133.86 ms 134.12 ms]
thrpt: [745.59 MiB/s 747.06 MiB/s 748.18 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severetransfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1504 time: [213.10 ms 213.41 ms 213.73 ms]
thrpt: [46.789 Kelem/s 46.857 Kelem/s 46.927 Kelem/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mildtransfer/1-conn/1-1b-resp (aka. HPS)/mtu-1504 time: [7.3940 ms 7.3975 ms 7.4012 ms]
thrpt: [135.11 B/s 135.18 B/s 135.25 B/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildtransfer/1-conn/1-100mb-req (aka. Upload)/mtu-1504 time: [135.64 ms 135.93 ms 136.42 ms]
thrpt: [733.01 MiB/s 735.66 MiB/s 737.22 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) high mild
2 (2.00%) high severestreams/walltime/1-streams/each-1000-bytes time: [542.97 µs 544.66 µs 546.67 µs]
thrpt: [1.7445 MiB/s 1.7509 MiB/s 1.7564 MiB/s]
Found 10 outliers among 100 measurements (10.00%)
1 (1.00%) high mild
9 (9.00%) high severestreams/walltime/1000-streams/each-1-bytes time: [10.327 ms 10.360 ms 10.410 ms]
thrpt: [93.811 KiB/s 94.265 KiB/s 94.560 KiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severestreams/walltime/1000-streams/each-1000-bytes time: [30.503 ms 30.534 ms 30.566 ms]
thrpt: [31.201 MiB/s 31.233 MiB/s 31.265 MiB/s]streams-flow-controlled/walltime/1-streams/each-4194304-bytes time: [24.851 ms 24.928 ms 25.031 ms]
thrpt: [159.80 MiB/s 160.46 MiB/s 160.96 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high severestreams-flow-controlled/walltime/10-streams/each-1048576-bytes time: [68.790 ms 68.865 ms 68.941 ms]
thrpt: [145.05 MiB/s 145.21 MiB/s 145.37 MiB/s]transfer/walltime/pacing-false/varying-seeds time: [17.579 ms 17.592 ms 17.605 ms]
thrpt: [227.20 MiB/s 227.38 MiB/s 227.54 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severetransfer/walltime/pacing-true/varying-seeds time: [17.922 ms 17.933 ms 17.944 ms]
thrpt: [222.91 MiB/s 223.05 MiB/s 223.19 MiB/s]
Found 7 outliers among 100 measurements (7.00%)
3 (3.00%) low mild
4 (4.00%) high mildtransfer/walltime/pacing-false/same-seed time: [17.648 ms 17.659 ms 17.669 ms]
thrpt: [226.38 MiB/s 226.52 MiB/s 226.66 MiB/s]transfer/walltime/pacing-true/same-seed time: [17.902 ms 17.927 ms 17.965 ms]
thrpt: [222.65 MiB/s 223.13 MiB/s 223.44 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
1 (1.00%) high mild
1 (1.00%) high severeDownload data for |
Client/server transfer resultsPerformance differences relative to 6f4c0e1. Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Table above only shows statistically significant changes. See all results below. All resultsTransfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Download data for |
Failed Interop TestsQUIC Interop Runner, client vs. server, differences relative to
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
|
User-visible changes since v0.31.1: - Update nss-rs to 0.16.1, adding NSS 3.129 support: mozilla#4000 - Remove HTTP/3 server push: mozilla#3816 - Back-pressure the outbound QUIC datagram queue: mozilla#3859 - Reject 0-RTT downgrade of the extended CONNECT setting: mozilla#3940 - Report the receiver flow-control window in Stats: mozilla#3978
User-visible changes since v0.31.1: - Update nss-rs to 0.16.1, adding NSS 3.129 support: mozilla#4000 - Remove HTTP/3 server push: mozilla#3816 - Back-pressure the outbound QUIC datagram queue: mozilla#3859 - Reject 0-RTT downgrade of the extended CONNECT setting: mozilla#3940 - Report the receiver flow-control window in Stats: mozilla#3978
And upgrade
nss-rsto 0.16.1, which has a similar fix for its CI action.