Skip to content

Unify OkHttp dependency catalog entries - #12201

Open
AlexeyKuznetsov-DD wants to merge 2 commits into
masterfrom
alexeyk/cleanup-okhttp-usages
Open

Unify OkHttp dependency catalog entries#12201
AlexeyKuznetsov-DD wants to merge 2 commits into
masterfrom
alexeyk/cleanup-okhttp-usages

Conversation

@AlexeyKuznetsov-DD

Copy link
Copy Markdown
Contributor

What Does This Do

Centralizes OkHttp and Okio versions in the catalog and replaces repeated coordinates with named aliases.

Motivation

Improve catalog naming and unify the minimum, testing, and Datadog-fork versions used across modules.

Additional Notes

Validated by GitLab pipeline #130626366. No public behavior changes.

Contributor Checklist

  • Title follows the contribution guidelines
  • Required type, component, and AI labels are applied
  • No public documentation or CODEOWNERS changes are needed

Jira ticket: N/A

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added tag: no release notes Changes to exclude from release notes type: refactoring tag: ai generated Largely based on code generated by an AI or LLM inst: okhttp Square OkHttp instrumentation labels Aug 13, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD self-assigned this Aug 13, 2026
@AlexeyKuznetsov-DD AlexeyKuznetsov-DD added the tag: dependencies Dependencies related changes label Aug 13, 2026
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD marked this pull request as ready for review August 13, 2026 00:06
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested review from a team as code owners August 13, 2026 00:06
@AlexeyKuznetsov-DD
AlexeyKuznetsov-DD requested review from P403n1x87, jandro996, manuel-alvarez-alvarez and ygree and removed request for a team August 13, 2026 00:06

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Datadog Autotest: WARN

Minimum and latest instrumentation behavior passes today, but the new global aliases couple compatibility floors to unrelated smoke-test dependencies. That contradicts the project’s instrumentation dependency rule and could silently remove 2.2/3.0 boundary coverage during a future catalog bump.

📊 Validated against 10 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit ac8b2b7 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest


dependencies {
compileOnly(group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.0.0')
compileOnly libs.okhttp3.minimum

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Keep instrumentation minimums module-local

A future catalog bump could stop testing an advertised minimum and allow newer API usage that fails for customers on that version.

Assertion details
  • Input: A maintainer raises okhttp3-minimum or okhttp2-minimum for the smoke-test applications without intending to change instrumentation support.
  • Expected: Per the repository’s explicit Gradle guidance, instrumented-library compatibility floors should remain exact and local to each instrumentation module.
  • Actual: The OkHttp 3 compile and minimum-test bounds now read a global catalog value also used by smoke-test modules. The same coupling was introduced in the sibling OkHttp 2 module. The complete fix is to restore local 3.0.0 values for OkHttp 3 compile/strict/preferred bounds and local 2.2.0 values for both OkHttp 2 declarations; existing test sources need no changes because the minimum/latest suites already exercise these boundaries.

Was this helpful? React 👍 or 👎
🤖 Datadog Autotest · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

Comment thread gradle/libs.versions.toml
Comment on lines +55 to +56
okhttp2-minimum = "2.2.0"
okhttp3-minimum = "3.0.0"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔨 issue: ‏okhttp2-minimum / okhttp3-minimum versions and libraries are instrumentation specific. I would rather keep the main version catalog for core and platform components.
What about creating a dedicated lib catalog for the related libraries if you need to share some version numbers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: okhttp Square OkHttp instrumentation tag: ai generated Largely based on code generated by an AI or LLM tag: dependencies Dependencies related changes tag: no release notes Changes to exclude from release notes type: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants