Skip to content

Conversation

iit2009060
Copy link
Contributor

@iit2009060 iit2009060 commented Oct 15, 2025

The test logic covers three main scenarios:

  1. Running from the Kafka Root Directory

    Action: The test immediately finds the .git directory.

    Result: It uses this location to correctly find the schema file and
    runs the test successfully.

  2. Running from a Subdirectory

    Action: The test searches up the directory tree (e.g., from
    generator/ or generator/src/test/java/).

    Result: It finds the .git directory at the Kafka root, uses that
    root to build the correct path to the schema file, and runs the test
    successfully.

  3. Running from a Source Release (No Git)

    Action: The test searches all the way up the entire directory tree
    to the filesystem root.

    Result: It never finds the .git directory, and the test skips
    gracefully with a message.

Reviewers: Chia-Ping Tsai [email protected]

@github-actions github-actions bot added triage PRs from the community tests Test fixes (including flaky tests) generator RPC and Record code generator small Small PRs labels Oct 15, 2025
@iit2009060
Copy link
Contributor Author

@lianetm Please review it


if (!gitFound) {
System.out.println("Skipping testVerifyEvolutionGit - not in a Git repository");
return; // Skip test when running from source release without Git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using assumeTrue instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks that would be better. I have done the changes.

@github-actions github-actions bot removed the triage PRs from the community label Oct 22, 2025
@chia7712
Copy link
Member

the flaky is traced by KAFKA-19513

@chia7712 chia7712 merged commit 6f1bd8f into apache:trunk Oct 22, 2025
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved generator RPC and Record code generator small Small PRs tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants