Skip to content

This PR is to add comments to BuildRuntimeInfo in pkg/ddc/base/runtime.go#5854

Open
lhxian wants to merge 1 commit into
fluid-cloudnative:masterfrom
lhxian:new-branch
Open

This PR is to add comments to BuildRuntimeInfo in pkg/ddc/base/runtime.go#5854
lhxian wants to merge 1 commit into
fluid-cloudnative:masterfrom
lhxian:new-branch

Conversation

@lhxian
Copy link
Copy Markdown

@lhxian lhxian commented May 11, 2026

Ⅰ. Describe what this PR does

Add comments to BuildRuntimeInfo in pkg/ddc/base/runtime.go

Ⅱ. Does this pull request fix one issue?

fixes #[5853]

lll. Special notes for reviews

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented May 11, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zwwhdls for approval by writing /assign @zwwhdls in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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
Copy link
Copy Markdown

fluid-e2e-bot Bot commented May 11, 2026

Hi @lhxian. Thanks for your PR.

I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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 adds documentation for the BuildRuntimeInfo function in pkg/ddc/base/runtime.go. The feedback suggests updating the documentation examples for runtimeType to use constants like common.AlluxioRuntime instead of capitalized strings to ensure consistency with the actual values used throughout the codebase.

Comment thread pkg/ddc/base/runtime.go
// Parameters:
// - name (string): The name of the runtime.
// - namespace (string): The namespace of the runtime.
// - runtimeType (string): The type of the runtime (e.g., Alluxio, JuiceFS).
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.

medium

The examples provided for runtimeType ('Alluxio', 'JuiceFS') use capitalized names, which might be misleading as the actual runtime type strings in Fluid are typically lowercase (e.g., 'alluxio', 'juicefs') and are defined as constants in the common package. It is recommended to reference these constants directly (e.g., common.AlluxioRuntime) to ensure correctness and consistency with other documentation in this file (see line 619).

Suggested change
// - runtimeType (string): The type of the runtime (e.g., Alluxio, JuiceFS).
// - runtimeType (string): The type of the runtime (e.g., common.AlluxioRuntime, common.JuiceFSRuntime).

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 12, 2026

🤖 DCO check failed for this PR. Please ensure all commits include the Signed-off-by: line as per the DCO policy.

You can fix this by running:

git commit --amend --signoff

or for all commits:

git rebase --signoff HEAD~N

Signed-off-by: Hanxian Lao <1687483153@qq.com>
@sonarqubecloud
Copy link
Copy Markdown

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