Skip to content

[Cherry-pick to branch-1.3] [MINOR] fix(helm): Remove hardcoded version in chart unit tests (#11494) - #11505

Merged
jerryshao merged 3 commits into
branch-1.3from
cherry-pick-3b124954-to-branch-1.3
Jun 9, 2026
Merged

jerryshao merged 3 commits into
branch-1.3from
cherry-pick-3b124954-to-branch-1.3

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Cherry-pick Information:

  • Original commit: 3b12495
  • Target branch: branch-1.3
  • Status: ⚠️ Has conflicts - manual resolution required

Please review and resolve the conflicts before merging.

### What changes were proposed in this pull request?

Replace hardcoded SNAPSHOT version assertions in Helm chart unit tests
with matchRegex pattern matching, avoiding CI failures on every version
bump.

Changed files:

deployment_test.yaml
deployment_test.yaml
Both files changed from:
```
- equal:
    path: spec.template.spec.containers[0].image
    value: apache/gravitino-xxx:1.3.0-SNAPSHOT
```
to:

```
- matchRegex:
    path: spec.template.spec.containers[0].image
    pattern: "^apache/gravitino-xxx:.+"
```
This aligns with the existing approach in
deployment_test.yaml

### Why are the changes needed?

The chart unit tests hardcode SNAPSHOT version strings (e.g.,
1.3.0-SNAPSHOT). After every version bump, these tests fail and require
manual updates, adding unnecessary maintenance burden. For example, the
current CI failure:
```
Expected: apache/gravitino-iceberg-rest:1.3.0-SNAPSHOT
Actual:   apache/gravitino-iceberg-rest:1.3.1-SNAPSHOT
```
Using matchRegex ensures the test validates the image repository is
correct and a tag is present, without coupling to a specific version.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

helm unittest --with-subchart=false
dev/charts/gravitino-iceberg-rest-server
helm unittest --with-subchart=false
dev/charts/gravitino-lance-rest-server
helm unittest --with-subchart=false dev/charts/gravitino
# Conflicts:
#	dev/charts/gravitino-iceberg-rest-server/tests/deployment_test.yaml
#	dev/charts/gravitino-lance-rest-server/tests/deployment_test.yaml
@github-actions github-actions Bot added the cherry-pick Automatically opened cherry-pick PR label Jun 8, 2026
@github-actions
github-actions Bot requested a review from jerryshao June 8, 2026 14:47
@mchades mchades closed this Jun 8, 2026
@mchades mchades reopened this Jun 8, 2026
@github-actions

github-actions Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Author

Code Coverage Report

Overall Project 67.04% 🟢
Files changed No Java source files changed -

Module Coverage
aliyun 1.72% 🔴
api 46.8% 🟢
authorization-common 85.96% 🟢
aws 3.66% 🔴
azure 2.47% 🔴
catalog-common 10.42% 🔴
catalog-fileset 80.35% 🟢
catalog-glue 67.41% 🟢
catalog-hive 79.35% 🟢
catalog-jdbc-clickhouse 80.02% 🟢
catalog-jdbc-common 45.31% 🟢
catalog-jdbc-doris 80.28% 🟢
catalog-jdbc-hologres 54.03% 🟢
catalog-jdbc-mysql 79.23% 🟢
catalog-jdbc-oceanbase 78.38% 🟢
catalog-jdbc-postgresql 82.29% 🟢
catalog-jdbc-starrocks 78.51% 🟢
catalog-kafka 77.01% 🟢
catalog-lakehouse-generic 58.53% 🟢
catalog-lakehouse-hudi 79.1% 🟢
catalog-lakehouse-iceberg 85.94% 🟢
catalog-lakehouse-paimon 79.29% 🟢
catalog-model 77.72% 🟢
cli 44.51% 🟢
client-java 77.91% 🟢
common 50.17% 🟢
core 82.51% 🟢
filesystem-hadoop3 76.97% 🟢
flink 0.0% 🔴
flink-common 46.3% 🟢
flink-runtime 0.0% 🔴
gcp 14.12% 🔴
hadoop-common 10.39% 🔴
hive-metastore-common 53.9% 🟢
iceberg-common 57.41% 🟢
iceberg-rest-server 73.8% 🟢
idp-basic 86.07% 🟢
integration-test-common 0.0% 🔴
jobs 66.17% 🟢
lance-common 20.81% 🔴
lance-rest-server 60.54% 🟢
lineage 53.02% 🟢
optimizer 82.87% 🟢
optimizer-api 21.95% 🔴
server 85.73% 🟢
server-common 73.28% 🟢
spark 29.85% 🔴
spark-common 41.01% 🟢
trino-connector 39.97% 🔴

jerryshao and others added 2 commits June 9, 2026 08:17
…on in chart unit tests (#11494) (#11509)

Cherry-pick Information:

Original commit:
3b12495
Target branch: branch-1.3
Status: ⚠️ Has conflicts - manual resolution required
Please review and resolve the conflicts before merging.
@jerryshao
jerryshao merged commit f76124e into branch-1.3 Jun 9, 2026
33 checks passed
@jerryshao
jerryshao deleted the cherry-pick-3b124954-to-branch-1.3 branch June 9, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Automatically opened cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants