This is an automated email from the ASF dual-hosted git repository.
yuqi1129 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 2b46276929 [MINOR] fix(ci): Push chart test images to the kind
registry through localhost (#14959)
2b46276929 is described below
commit 2b4627692946b8c3fa93d7ed88b56cb47625369a
Author: YangJie <[email protected]>
AuthorDate: Wed Nov 18 06:37:07 2026 -0500
[MINOR] fix(ci): Push chart test images to the kind registry through
localhost (#14959)
### What changes were proposed in this pull request?
The chart test now tags each image it builds as
`localhost:<port>/<name>:<tag>` and pushes that tag instead of
`${KIND_REGISTRY}/<name>:<tag>`. Both names reach the same kind
registry, so the cluster still pulls `${KIND_REGISTRY}/<name>:<tag>` and
the `ct install` steps are unchanged.
### Why are the changes needed?
`charts / lint-test` runs on `ubuntu-latest`, which now also assigns
`ubuntu-26.04` runners. On those (Docker 29.4.2 with the containerd
image store), `docker push kind-registry:5000/...` fails with `http:
server gave HTTP response to HTTPS client`, so any pull request that
changes a chart fails Fork CI there and the other jobs are cancelled;
#13872 failed this way twice. The same push succeeds on `ubuntu-24.04`
(Docker 28.0.4), and a push to `localhost:5000` succeeds on
`ubuntu-26.04`.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
CI on this pull request does not reach the push step, because the image
build and the installs run only when a chart changes. A fork run of this
change plus a one-line chart change, on an `ubuntu-26.04` runner, pushed
all three images through `localhost:5000`, and all five `ct install`
steps passed:
https://github.com/LuciferYang/gravitino/actions/runs/43227372708
Co-authored-by: Qi Yu <[email protected]>
---
.github/workflows/chart-test.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/chart-test.yaml
b/.github/workflows/chart-test.yaml
index 6e31278202..4127038bf3 100644
--- a/.github/workflows/chart-test.yaml
+++ b/.github/workflows/chart-test.yaml
@@ -204,7 +204,11 @@ jobs:
CONTEXT_DIR="${{ github.workspace }}/dev/docker/${FOLDER_NAME}/"
. ${CONTEXT_DIR}/${FOLDER_NAME}-dependency.sh
docker build -t ${KIND_REGISTRY}/${REPO_NAME}:${tag}
"${CONTEXT_DIR}"
- docker push ${KIND_REGISTRY}/${REPO_NAME}:${tag}
+ # With the containerd image store (ubuntu-26.04), Docker pushes to
${KIND_REGISTRY} over HTTPS
+ # and fails, but uses plain HTTP for localhost. Both names reach
the registry the cluster pulls from.
+ PUSH_IMAGE="localhost:${KIND_REGISTRY##*:}/${REPO_NAME}:${tag}"
+ docker tag ${KIND_REGISTRY}/${REPO_NAME}:${tag} "${PUSH_IMAGE}"
+ docker push "${PUSH_IMAGE}"
)
done