[
https://issues.apache.org/jira/browse/KAFKA-18128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17902037#comment-17902037
]
Chia-Ping Tsai commented on KAFKA-18128:
----------------------------------------
[~frankvicky] thanks for taking over this JIRA
As a simple solution, we should check the ref of trunk first, and switch it to
"HEAD" if the trunk ref is nonexistent.
> Fix failed test MetadataSchemaCheckerToolTest.testVerifyEvolutionGit in PR
> --------------------------------------------------------------------------
>
> Key: KAFKA-18128
> URL: https://issues.apache.org/jira/browse/KAFKA-18128
> Project: Kafka
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Assignee: TengYao Chi
> Priority: Major
>
> there are two issues in MetadataSchemaCheckerToolTest
>
> # it assumes the root folder name is `kafka`
> # it assumes the root folder has ref "refs/heads/trunk" but it is not
> existent in PR. see the fetch command used by CI
> ```
> git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules
> --depth=1 origin
> +e2aee931410fe32dd62ac8b832b437f058c1f43e:refs/remotes/pull/17980/merge
> ```
> That means the refs in PR repo are only "HEAD" and
> "refs/remotes/pull/17980/merge"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)