Skip to content

[AMORO-3853] Stabilize continuous optimizing tests on Java 17#4142

Open
xxubai wants to merge 1 commit intoapache:masterfrom
xxubai:codex/java17-test-stabilization
Open

[AMORO-3853] Stabilize continuous optimizing tests on Java 17#4142
xxubai wants to merge 1 commit intoapache:masterfrom
xxubai:codex/java17-test-stabilization

Conversation

@xxubai
Copy link
Contributor

@xxubai xxubai commented Mar 24, 2026

Why are the changes needed?

Some continuous optimizing tests are unstable on Java 17 due to non-deterministic test data generation and missing test build configuration for generated sources.

Follow #3853.

Brief change log

  • make RandomRecordGenerator deterministic for the affected test flows
  • update keyed/unkeyed continuous optimizing tests to use the deterministic seed
  • exclude src/main/gen-java/** from checkstyle in amoro-common
  • keep surefire configured in amoro-common for test execution

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible
  • Add screenshots for manual tests if appropriate
  • Run test locally before making a pull request

Local verification:

  • ./mvnw -pl amoro-ams -am -Dtest=TestKeyedContinuousOptimizing,TestUnKeyedContinuousOptimizing test

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant