Skip to content

import helm-bin from local for cacheruntime#5795

Merged
fluid-e2e-bot[bot] merged 1 commit intofluid-cloudnative:masterfrom
xliuqq:cacheruntime-build
Apr 19, 2026
Merged

import helm-bin from local for cacheruntime#5795
fluid-e2e-bot[bot] merged 1 commit intofluid-cloudnative:masterfrom
xliuqq:cacheruntime-build

Conversation

@xliuqq
Copy link
Copy Markdown
Collaborator

@xliuqq xliuqq commented Apr 18, 2026

Ⅰ. Describe what this PR does

cacheruntime docker build file uses helm-bin from local.

Ⅱ. Does this pull request fix one issue?

fixes #XXXX

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: xliuqq <xlzq1992@gmail.com>
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Alpine base image version and modifies the Dockerfile to copy the Helm binary from the build context instead of downloading it. Feedback indicates that the specified Alpine version 3.23.3 is invalid and should likely be 3.21.3. Furthermore, the change to the Helm binary source requires an update to the Makefile to ensure the binary is available during the build process, preventing potential failures in clean environments.

Comment on lines +13 to +14
# alpine:3.23.3
FROM alpine:3.23.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The Alpine version 3.23.3 is invalid as Alpine Linux has not released a version 3.23 (the current latest stable is 3.21). This will cause the image build to fail during the base image pull. Based on the SHA provided, it is highly likely that 3.21.3 was intended.

# alpine:3.21.3
FROM alpine:3.21.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659

chmod u+x /usr/local/bin/ddc-helm && \
rm -f helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
rm -rf linux-${TARGETARCH}
COPY --from=builder /go/src/github.com/fluid-cloudnative/fluid/bin/helm/${HELM_VERSION}/helm-linux-${TARGETARCH} /usr/local/bin/ddc-helm
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

This change makes the Docker build dependent on the Helm binary being present in the local bin/ directory of the build context. However, the Makefile does not currently ensure that make download-helm is executed before docker-build-cacheruntime-controller. This will cause builds to fail in clean environments or CI pipelines where the binary hasn't been manually downloaded. To fix this, you should update the Makefile to include download-helm as a dependency for the Docker build targets.

@xliuqq xliuqq requested a review from cheyang April 18, 2026 10:16
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.46%. Comparing base (041354d) to head (c2ebde7).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5795   +/-   ##
=======================================
  Coverage   58.46%   58.46%           
=======================================
  Files         473      473           
  Lines       32222    32222           
=======================================
  Hits        18839    18839           
  Misses      11836    11836           
  Partials     1547     1547           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented Apr 19, 2026

Good change — aligning cacheruntime Dockerfile with the same COPY-from-builder pattern used by all other runtime Dockerfiles (alluxio, dataset, efc, etc.).

A few observations:

Positive:

  • Removes wget network dependency at build time
  • Alpine 3.23.3 is a valid tag (confirmed on Docker Hub)
  • Consistent with existing Dockerfile patterns in the repo

Note (not blocking, pre-existing):
make cacheruntime-controller-build does not include download-helm, so the helm binaries under bin/helm/<version>/ must be pre-downloaded before running docker build. This is the same dependency pattern used by all other runtime Dockerfiles — the download-helm Makefile target is run separately before image builds. Not a new issue introduced by this PR.

This looks ready to merge.

Copy link
Copy Markdown
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Copy Markdown
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented Apr 19, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot fluid-e2e-bot Bot merged commit 9129a05 into fluid-cloudnative:master Apr 19, 2026
18 checks passed
@xliuqq xliuqq deleted the cacheruntime-build branch April 20, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants