This is an automated email from the ASF dual-hosted git repository.
yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 046fa7076 Fix a failing task with the release profile (#1693)
046fa7076 is described below
commit 046fa7076203ddfc66574323adb2996535cd1d8c
Author: Yufei Gu <[email protected]>
AuthorDate: Thu May 29 14:30:45 2025 -0700
Fix a failing task with the release profile (#1693)
---
.../apache/polaris/version/TestPolarisVersion.java | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git
a/tools/version/src/jarTest/java/org/apache/polaris/version/TestPolarisVersion.java
b/tools/version/src/jarTest/java/org/apache/polaris/version/TestPolarisVersion.java
index 63982e31f..695959b34 100644
---
a/tools/version/src/jarTest/java/org/apache/polaris/version/TestPolarisVersion.java
+++
b/tools/version/src/jarTest/java/org/apache/polaris/version/TestPolarisVersion.java
@@ -57,13 +57,21 @@ public class TestPolarisVersion {
@Order(1)
public void versionAvailable() {
soft.assertThat(polarisVersionString()).isEqualTo(System.getProperty("polarisVersion"));
- soft.assertThat(isReleaseBuild()).isFalse();
- soft.assertThat(getBuildReleasedVersion()).isEmpty();
- soft.assertThat(getBuildTimestamp()).isEmpty();
- soft.assertThat(getBuildGitHead()).isEmpty();
- soft.assertThat(getBuildGitTag()).isEmpty();
- soft.assertThat(getBuildSystem()).isEmpty();
- soft.assertThat(getBuildJavaVersion()).isEmpty();
+ if (isReleaseBuild()) {
+ soft.assertThat(getBuildReleasedVersion()).isNotEmpty();
+ soft.assertThat(getBuildTimestamp()).isNotEmpty();
+ soft.assertThat(getBuildGitHead()).isNotEmpty();
+ soft.assertThat(getBuildGitTag()).isNotEmpty();
+ soft.assertThat(getBuildSystem()).isNotEmpty();
+ soft.assertThat(getBuildJavaVersion()).isNotEmpty();
+ } else {
+ soft.assertThat(getBuildReleasedVersion()).isEmpty();
+ soft.assertThat(getBuildTimestamp()).isEmpty();
+ soft.assertThat(getBuildGitHead()).isEmpty();
+ soft.assertThat(getBuildGitTag()).isEmpty();
+ soft.assertThat(getBuildSystem()).isEmpty();
+ soft.assertThat(getBuildJavaVersion()).isEmpty();
+ }
}
/**