Skip to content

Rebuild LinkedIn fork on AWS SDK 2.59.1 (2.59.1-li-0.1) - #16

Merged
satishkotha merged 7 commits into
linkedin:s3-li-2.59.1from
satishkotha:s3-li-2.59.1-port
Dec 3, 2026
Merged

satishkotha merged 7 commits into
linkedin:s3-li-2.59.1from
satishkotha:s3-li-2.59.1-port

Conversation

@satishkotha

@satishkotha satishkotha commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Rebuilds the LinkedIn fork on upstream AWS SDK for Java v2 2.59.1 (release commit a4528184d) and releases it as 2.59.1-li-0.1. Base branch s3-li-2.59.1 is upstream 2.59.1 unchanged.

LinkedIn changes ported from s3-li-2.49.1:

  • HTTP/2 END_STREAM / early-reset fix in netty-nio-client (li#6) with EarlyResponseResetTest
  • Relaxed S3 bucket name validation (li#4, li#5)
  • Hermetic test fixes (li#9) and -li-X.Y qualifier support in BusinessMetricsUserAgentTest
  • Version 2.59.1-li-0.1 across all 530 POMs, LinkedIn distributionManagement, third-party javadoc-jar executions dropped (li#10)
  • Release tooling (publish-linkedin.yml, check-linkedin-release.py and its tests, docs) retargeted to s3-li-2.59.1, keeping the fake AWS profile credentials and the 360-minute publish timeout
  • pull-request-build.yml: the AWS-internal aws-sdk-pr-build job now runs only in aws/aws-sdk-java-v2. It needs an AWS-owned IAM role and an AWS-private bucket, and since 2.59.1 it also triggers on ready_for_review, so it failed on this fork once the PR left draft.

Motivation / Context

The 2.49.1-li-* line pulls Netty 4.1.136 and httpclient5 5.6.2, which carry known advisories (including Critical GHSA-c4c3-7fpv-j4q5). Upstream 2.59.1 already ships patched dependencies, so we keep upstream's versions with no overrides:

Dependency 2.59.1
Netty 4.1.138.Final (tcnative 2.0.84.Final)
httpclient5 / httpcore5 5.6.4 / 5.4.3
Jackson 2.21.8

The GitHub advisory database lists no advisories for any of these versions. This supersedes #15, the 2.49.1-based dependency bump.

Testing Done

  • python3 -m unittest test_check_linkedin_release: OK. RELEASE_VERSION=2.59.1-li-0.1 check-linkedin-release.py: validated.
  • apache5-client: 265 tests, 0 failures.
  • netty-nio-client: 502 tests. EarlyResponseResetTest 14/14 passes. ServerConnectivityErrorMessageTest cases [1] and [3] fail locally on macOS, and they fail the same way on unmodified upstream 2.59.1 sources. ServerNotRespondingTest failed once and passed on rerun.
  • s3: CreateBucketInterceptorTest, S3PresignerTest, BuilderClientContextParamsTest, MultipartClientUserAgentTest all pass.
  • Full reactor: this PR's CI.

Risk Assessment

Consumers move up 10 upstream minor versions (2.49 → 2.59), so they pick up upstream behavior changes from that range. The LinkedIn patches applied without conflicts.

Rollout / Backout Plan

Merging publishes 2.59.1-li-0.1 through publish-linkedin.yml, since s3-li-2.59.1 has been added to the jfrog-publish environment. s3-li-2.49.1 stays untouched, and its 2.49.1-li-0.2 artifacts remain available for backout.

AI Usage

GitHub Copilot (Claude Opus 5.5) ported the commits, ran the tests and drafted this description.

satishkotha and others added 6 commits December 3, 2026 10:08
- HTTP/2 END_STREAM / early-reset fix (li#6), merged with 2.49.1 write-idle handlers
- Relax S3 bucket name validation (li#4, li#5)
- Hermetic test fixes that applied cleanly (li#9)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Also drop third-party javadoc-jar executions (li#10).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Some unit tests build clients through the default credentials chain and
fail on runners without credentials. A profile file is used instead of
env vars so the credential-provider tests are unaffected.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…Test

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… publish timeout

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Comment on lines +22 to +40
runs-on: ubuntu-latest

strategy:
matrix:
java: [8, 11]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven

- name: Build with Maven (no tests, no deploy)
run: mvn -B clean install -DskipTests
@satishkotha
satishkotha marked this pull request as ready for review December 3, 2026 18:35

@crliao crliao left a comment •

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.

Reviewed the full diff against s3-li-2.59.1 and s3-li-2.49.1. The port looks correct. I'll approve once the Maven build (8) and build (11) jobs pass.

Verified

  • Base s3-li-2.59.1 is exactly the upstream release commit a4528184d (Release 2.59.1).
  • Every ported file is byte-identical to s3-li-2.49.1:
    • main code: NettyRequestExecutor, HttpToHttp2OutboundAdapter, BucketUtils, CreateBucketInterceptor
    • all 15 test files, including EarlyResponseResetTest
    • maven-build.yml
  • The release tooling (publish-linkedin.yml, check-linkedin-release.py and its tests, docs/LinkedInPublishing.md) changes only the branch and version strings.
  • BusinessMetricsUserAgentTest is the only new change. The regex correctly allows the optional -li-X.Y qualifier.
  • All 530 POMs that carried the SDK version are now 2.59.1-li-0.1. No POM has a leftover plain 2.59.1.
  • distributionManagement and the removal of the 3 third-party javadoc-jar executions match li-0.6.
  • bundle and bundle-sdk still have javadoc-jar executions, but they did on 2.49.1 too, so this is not a regression.
  • The new upstream version.properties generation writes version=2.59.x (major.minor only), so the -li qualifier doesn't affect it.
  • Dependencies are at or above the first patched version for every 2026 GitHub advisory:
    • Netty 4.1.138 (the Critical GHSA-c4c3-7fpv-j4q5 was fixed in 4.1.137)
    • tcnative 2.0.84
    • httpclient5 5.6.4 / httpcore5 5.4.3
    • Jackson 2.21.8
  • Upstream 2.59.1 was released 2026-11-13, so it is past the 7-day dependency cool-off.
  • The jfrog-publish environment allows s3-li-2.59.1.

Before merge

  1. Wait for build (8) and build (11) to pass. Merging auto-publishes 2.59.1-li-0.1, and a version can't be republished. This run also covers the ServerConnectivityErrorMessageTest failures you saw on macOS, since CI runs on Linux.
  2. The aws-sdk-pr-build failure is upstream's AWS OIDC workflow, which can't get credentials in this fork. It doesn't block this PR.
  3. s3-li-2.59.1 has no branch protection. A merge here publishes artifacts without needing a review or green checks. The same is true of s3-li-2.23.3 and s3-li-2.49.1. Consider requiring both on all s3-li-* release branches.

Follow-ups (non-blocking)

  • The README.md sample snippets still say 2.59.1. The 2.49.1 line had the same leftover.
  • The new version will need its own internal dependency approval before consumers can pick it up.
  • Consumers jump from 2.49 to 2.59. It's worth skimming the upstream CHANGELOG for behavior changes in S3, Netty and the CRT clients before rolling out.

The job assumes an AWS-owned IAM role and downloads a build script from an
AWS-private bucket, neither of which is available in this fork.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@crliao crliao left a comment

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.

LGTM. The Maven builds on JDK 8 and 11 pass. The new commit a78768e89a only skips upstream's AWS-internal PR build job outside aws/aws-sdk-java-v2, which is fine.

@crliao crliao mentioned this pull request Dec 3, 2026
4 of 12 tasks
@satishkotha
satishkotha merged commit e1e84cb into linkedin:s3-li-2.59.1 Dec 3, 2026
11 checks passed
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.

3 participants