Skip to content

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

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

larseggert merged 1 commit into
mainfrom
fix-android-ci

Conversation

@larseggert

@larseggert larseggert commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

And upgrade nss-rs to 0.16.1, which has a similar fix for its CI action.

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

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 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 required adb support.
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.

@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: 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-tools may itself be redundant here: adb is only used inside the emulator script, and reactivecircus/android-emulator-runner installs platform-tools as part of its own setup. If that holds, packages: "" would skip a redundant sdkmanager install 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

codecov Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.80%. Comparing base (6f4c0e1) to head (667a33d).

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     
Flag Coverage Δ
freebsd 94.23% <ø> (-0.14%) ⬇️
linux 97.02% <ø> (+<0.01%) ⬆️
macos 95.12% <ø> (ø)
windows 95.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
neqo-common 99.26% <ø> (ø)
neqo-http3 95.27% <ø> (ø)
neqo-qpack 96.91% <ø> (ø)
neqo-transport 97.78% <ø> (ø)
neqo-udp 95.37% <ø> (ø)
mtu 89.13% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed

codspeed Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 81 untouched benchmarks


Comparing fix-android-ci (667a33d) with main (6f4c0e1)

Open in CodSpeed

And upgrade `nss-rs` to 0.16.1, which has a similar fix for its CI action.

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

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 in neqo-transport/src/connection/tests/handshake.rs (revoked, ECH PolicyRejection), which is what #174 touches.
  • This is source-breaking for downstream: Connection::peer_certificate, Connection::set_certificate_compression and Http3Client::peer_certificate now name nss::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's gecko = [] is a no-op, while nss-rs still gates its mozbuild in-tree discovery behind nss/gecko and otherwise falls back to pkg-config → cloning NSS from hg. If mozilla-central relies on neqo's gecko feature reaching nss-rs, gecko = ["nss/gecko"] would be the correct forwarding; if it enables nss-rs/gecko directly, 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.

Comment thread Cargo.toml
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" }

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.

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:

Suggested change
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" }

@github-actions

Copy link
Copy Markdown
Contributor

Performance profiles for profiler.firefox.com

Benchmarks (14)
  • neqo-bin-main: pr · base
  • neqo-common-decoder: pr · base
  • neqo-http3-streams_simulated: pr · base
  • neqo-http3-streams_walltime: pr · base
  • neqo-transport-frame_decode: pr · base
  • neqo-transport-min_bandwidth: pr · base
  • neqo-transport-pacer: pr · base
  • neqo-transport-packet_codec: pr · base
  • neqo-transport-range_tracker: pr · base
  • neqo-transport-rx_stream_orderer: pr · base
  • neqo-transport-send_streams: pr · base
  • neqo-transport-sent_packets: pr · base
  • neqo-transport-transfer_simulated: pr · base
  • neqo-transport-transfer_walltime: pr · base
Comparisons (5)

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to 6f4c0e1.

All results
transfer/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 severe
transfer/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 mild
transfer/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 mild
transfer/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 severe
streams/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 severe
streams/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 severe
streams/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 severe
streams-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 severe
transfer/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 mild
transfer/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 severe

Download data for profiler.firefox.com or download performance comparison data.

@github-actions

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to 6f4c0e1.

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
neqo-neqo-newreno 62.0 ± 2.8 57.2 – 69.4 62.2 ± 3.5 516.1 ± 23.2 💔 +2.6 (+4.4%)
neqo-neqo-newreno-nopacing 61.3 ± 3.2 51.5 – 69.2 61.9 ± 2.4 522.0 ± 26.9 💔 +2.9 (+5.0%)

Table above only shows statistically significant changes. See all results below.

All results

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-google 457.9 ± 2.6 453.4 – 465.0 457.6 ± 2.2 69.9 ± 0.4
google-neqo-cubic ⚠️ 263.3 ± 3.4 258.9 – 283.9 262.6 ± 1.8 121.5 ± 1.6 +0.3 (+0.1%)
neqo-google-cubic 645.6 ± 2.2 640.1 – 654.9 645.4 ± 1.9 49.6 ± 0.2 -0.5 (-0.1%)
neqo-neqo-cubic 62.1 ± 3.1 53.1 – 79.2 62.1 ± 2.0 515.4 ± 25.5 -0.0 (-0.1%)
neqo-neqo-cubic-nopacing 61.7 ± 2.5 56.7 – 68.1 61.8 ± 2.8 519.1 ± 21.2 +0.0 (+0.1%)
neqo-neqo-newreno 62.0 ± 2.8 57.2 – 69.4 62.2 ± 3.5 516.1 ± 23.2 💔 +2.6 (+4.4%)
neqo-neqo-newreno-nopacing 61.3 ± 3.2 51.5 – 69.2 61.9 ± 2.4 522.0 ± 26.9 💔 +2.9 (+5.0%)
neqo-quiche-cubic 110.3 ± 3.4 100.8 – 119.0 110.4 ± 2.2 290.1 ± 9.0 -0.2 (-0.2%)
neqo-s2n-cubic 132.1 ± 3.1 123.1 – 138.2 132.3 ± 3.0 242.3 ± 5.6 +0.8 (+0.6%)
quiche-neqo-cubic 133.1 ± 1.8 129.8 – 138.4 132.7 ± 1.4 240.4 ± 3.2 +0.9 (+0.7%)
quiche-quiche 133.1 ± 3.2 127.0 – 142.3 133.4 ± 3.4 240.5 ± 5.8
s2n-neqo-cubic 213.7 ± 2.9 209.0 – 224.3 213.1 ± 2.5 149.8 ± 2.1 -0.6 (-0.3%)
s2n-s2n ⚠️ 291.1 ± 27.0 278.1 – 390.3 282.1 ± 3.2 109.9 ± 10.2

Download data for profiler.firefox.com or download performance comparison data.

@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to main at 6f4c0e1.

neqo-pr as clientneqo-pr as server
neqo-pr vs. go-x-net: BP BA
neqo-pr vs. haproxy: BP BA
neqo-pr vs. kwik: Z
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: Z A L1 C1
neqo-pr vs. mvfst: A
neqo-pr vs. neqo: baseline result missing
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: Z L1 ⚠️C1 CM
neqo-pr vs. picoquic: Z A
neqo-pr vs. quic-go: A
neqo-pr vs. quiche: BP BA
neqo-pr vs. s2n-quic: CM
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: S R Z A L1 C1
aioquic vs. neqo-pr: ⚠️C1 CM
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: BP BA CM
lsquic vs. neqo-pr: ⚠️L1
msquic vs. neqo-pr: ⚠️C1 CM
mvfst vs. neqo-pr: Z L1 C1 CM
neqo vs. neqo-pr: Z A
openssl vs. neqo-pr: LR M A CM
quic-go vs. neqo-pr: CM
quiche vs. neqo-pr: CM
quinn vs. neqo-pr: V2 CM
s2n-quic vs. neqo-pr: CM
tquic vs. neqo-pr: CM
xquic vs. neqo-pr: M CM
All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

@larseggert
larseggert merged commit 8c06f94 into main Sep 17, 2026
241 of 245 checks passed
@larseggert
larseggert deleted the fix-android-ci branch September 17, 2026 07:14
mxinden-bot pushed a commit to mxinden-bot/neqo that referenced this pull request Sep 17, 2026
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
@mxinden mxinden mentioned this pull request Sep 17, 2026
pull Bot pushed a commit to SINHASantos/neqo that referenced this pull request Sep 25, 2026
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
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