Skip to content

test(triple): add legacy compatibility and Java interoperability tests - #1161

Merged
Alanxtl merged 4 commits into
apache:mainfrom
lizining1231:test/triple-codec-compatibility
Nov 23, 2026
Merged

Alanxtl merged 4 commits into
apache:mainfrom
lizining1231:test/triple-codec-compatibility

Conversation

@lizining1231

Copy link
Copy Markdown
Contributor

Description

Add integration coverage for legacy-version compatibility and Java interoperability following the introduction of configurable codec extensions.

The tests run real Triple RPCs between separately built clients and servers and verify the returned response values.

Changes

  1. Add bidirectional compatibility tests with dubbo-go v3.3.2.

    • Run a client pinned to v3.3.2 against a server built from the current checkout.
    • Run a client built from the current checkout against a server pinned to v3.3.2.
    • Assert the expected greeting in both directions to verify request decoding and response decoding across versions.
  2. Add Java/Go interoperability checks using the Apache dubbo-go-samples non-Protobuf Triple example.

    • Pin the sample repository to commit 6e791058f58fd28434f859eb132eb93dd26d5418, whose Java example uses Dubbo 3.3.0-beta.3.
    • Replace the sample's Go dependency with the current checkout.
    • Run Go → Go, Go → Java, Java → Go, and Java → Java calls.
    • Check the expected response from each pairing in addition to the integration script's exit status.
  3. Provide a repeatable integration test entry point.

    • Keep the v3.3.2 fixtures in a separate Go module so they can use a different dubbo-go version.
    • Build the sample applications in a temporary directory and clean up temporary files and server processes on exit.
    • Document prerequisites and how to run the tests, including reuse of a local sample checkout at the pinned commit.

Signed-off-by: lizining <lizining1231@outlook.com>
@Alanxtl

Alanxtl commented Nov 20, 2026

Copy link
Copy Markdown
Member

集成测试失败了

@Alanxtl

Alanxtl commented Nov 23, 2026

Copy link
Copy Markdown
Member

merge到最新的main 这个ci的bug已经修复了

The 3.3.7-SNAPSHOT artifact has been removed from apache-snapshots now that 3.3.7 is released, which broke the Java client/server phases of the http3 integration test. Pin the released version and drop the snapshots repository from both poms, and remove the outdated README notes.
@Alanxtl

Alanxtl commented Nov 23, 2026

Copy link
Copy Markdown
Member

ci还是失败

@lizining1231

Copy link
Copy Markdown
Contributor Author

好的 我先修复现在的ci问题,然后再merge

Cold CI runners can take longer than the fixed five second sleep to bind, which made the generic sample fail with connection refused. Poll the known sample ports until the server accepts connections and keep the previous behavior for samples listening on an unlisted port.
@Alanxtl
Alanxtl merged commit c8f0161 into apache:main Nov 23, 2026
2 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.

2 participants