Skip to content

PHOENIX-8083 Split BackwardCompatibilityIT by client version - #2715

Merged
apurtell merged 1 commit into
apache:masterfrom
apurtell:PHOENIX-8083
Dec 5, 2026
Merged

apurtell merged 1 commit into
apache:masterfrom
apurtell:PHOENIX-8083

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The backward compatibility test runs close to the fork timeout in CI. In several runs no test fails, but failsafe kills the fork. The class starts a mini cluster for each test, runs every test for each old client version, and runs the old client as an external process.

The change splits the client versions between two test classes, and each class runs in its own fork. The two classes run in parallel, and before this change they wrote the same result files. Each test JVM now writes its result files to its own temporary directory. Gold files and SQL files still come from the class path. The splittable catalog variant still runs all client versions. This is a test-only change.

🤖 Generated with Claude Code

BackwardCompatibilityIT runs close to the 7200 second fork timeout in CI.
BackwardCompatibilityIT now runs the first half of the compatible client versions.
The new BackwardCompatibility2IT runs the other half in a separate fork.
Each test JVM now writes its result files to its own directory.
Thus the two classes do not overwrite the result files of each other in parallel forks.
BackwardCompatibilityForSplittableSyscatIT still runs all client versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI 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.

🟢 Approval recommended

There are no active review issues for this test-only change that shards compatibility tests and isolates fork output.

No open issues 🎉

What changed in this PR

This test-only change reduces backward-compatibility test fork runtime by splitting client versions across two test classes and isolating their output files.

Changes:

  • Divide client versions into two shards, each run by a separate test class.
  • Store results in a per-JVM temporary directory to prevent parallel forks from overwriting files.
  • Keep SQL and gold files on the classpath.
File Description
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​BackwardCompatibilityTestUtil.java Adds version sharding and per-JVM result paths.
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​BackwardCompatibilityIT.java Runs the first client-version shard.
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​BackwardCompatibility2IT.java Runs inherited tests for the second shard.

Review effort: Balanced

@apurtell

apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Precommit note: the failures in this run are not related to this change. Each one is a known problem on master.

(Claude Code)

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