Skip to content

Conversation

@ex172000
Copy link
Contributor

@ex172000 ex172000 commented Feb 9, 2026

Which issue does this PR close?

Closes #2702

Rationale

For more stable Java test runs locally

What changed?

Integration tests should not just directly use the 8090 port, instead it should get the random port mapped from 8090 with Testcontainers. This change fixed the failed test by 1) adding the missing class extension 2) getting the random port to create the client..

Local Execution

  • Passed ./gradlew test
  • Pre-commit hooks ran

AI Usage

  1. Which tools? (e.g., GitHub Copilot, Claude, ChatGPT)
  • Codex
  1. Scope of usage? (e.g., autocomplete, generated functions, entire implementation)
  • AI is used for identifying the issue and proposing the initial fix.
  1. How did you verify the generated code works correctly?
  • The test is ran to ensure the fix is actually working
  • Invalid/unnecessary changes are removed from the initial draft and still ensured fix working
  1. Can you explain every line of the code if asked?
  • Yes

Integration tests should not just directly use 8090 host port, instead
it should get the random port mapped from 8090 with Testcontainers.
@ex172000 ex172000 force-pushed the qichao/fix-java-integration-test branch from fd7745d to 7ef5252 Compare February 9, 2026 01:13
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.31%. Comparing base (db105dd) to head (15a55f5).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2703      +/-   ##
============================================
- Coverage     68.65%   68.31%   -0.35%     
+ Complexity      637      585      -52     
============================================
  Files           734      734              
  Lines         59764    59764              
  Branches      56177    56177              
============================================
- Hits          41031    40826     -205     
- Misses        16727    16953     +226     
+ Partials       2006     1985      -21     
Flag Coverage Δ
java 46.08% <ø> (-5.33%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hubcio hubcio merged commit 5f704d1 into apache:master Feb 10, 2026
36 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.

[Java SDK] Fix integration test failure

3 participants