Skip to content

Pin the cronet-api test dependency instead of floating on latest - #26

Merged
Fiona2016 merged 1 commit into
publishfrom
fix/pin-cronet-test-dependency
Aug 18, 2026
Merged

Pin the cronet-api test dependency instead of floating on latest#26
Fiona2016 merged 1 commit into
publishfrom
fix/pin-cronet-test-dependency

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

What

The cronet integration module declared its test-only cronet-api dependency as org.chromium.net:cronet-api:+, so every build compiled the tests against whatever version Chromium had published most recently. Chromium's latest release (500.0.1) changed the Proxy and ProxyOptions constructors to private, which broke this module's test compilation — and with it the release pipeline for v0.6.0 — without any change in this repository.

The dependency is now pinned to 143.7445.0, the newest version whose Proxy API matches what the tests exercise (the compile-time cronet-api stays at 141.7340.3, unchanged). A test classpath that shifts on its own has no place in a release build; moving to a newer cronet should be a deliberate bump.

Verification

  • :integrations:dd-sdk-android-cronet:compileReleaseUnitTestKotlin — compiles.
  • :integrations:dd-sdk-android-cronet:testReleaseUnitTest under JDK 17 (the CI toolchain) — all 114 tests pass.

Scope

One dependency line plus its comment. No production code, no API surface change.

The module's tests compiled against "org.chromium.net:cronet-api:+", so every
build resolved whatever version Chromium had published most recently. The
latest release changed the Proxy and ProxyOptions constructors to private,
which broke compilation of this module's tests and with it the release
pipeline, without any change in this repository.

The dependency is now pinned to 143.7445.0, the newest version whose Proxy
API matches what the tests exercise. A test-compile classpath that shifts on
its own has no place in a release build: version bumps should be deliberate.
@Fiona2016
Fiona2016 merged commit e9db119 into publish Aug 18, 2026
2 checks passed
@Fiona2016
Fiona2016 deleted the fix/pin-cronet-test-dependency branch August 18, 2026 16:20
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.

1 participant