Skip to content

This PR is to add comments to GetRuntimeStatus in pkg/ddc/base/runtime.go.#5760

Merged
fluid-e2e-bot[bot] merged 1 commit intofluid-cloudnative:masterfrom
luoyiti:new-branch
Apr 4, 2026
Merged

This PR is to add comments to GetRuntimeStatus in pkg/ddc/base/runtime.go.#5760
fluid-e2e-bot[bot] merged 1 commit intofluid-cloudnative:masterfrom
luoyiti:new-branch

Conversation

@luoyiti
Copy link
Copy Markdown
Contributor

@luoyiti luoyiti commented Apr 3, 2026

Ⅰ. Describe what this PR does

add comments to GetRuntimeStatus in pkg/ddc/base/runtime.go.

Ⅱ. Does this pull request fix one issue?

fixes #5759

Ⅲ. Special notes for reviews

None special notes needed

Signed-off-by: 罗一逖 <luoyititi@icloud.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 3, 2026

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 a detailed docstring to the GetRuntimeStatus function in pkg/ddc/base/runtime.go. The review feedback suggests updating the documentation for the runtimeType parameter to use lowercase string examples, such as "alluxio" and "jindo", to better reflect the actual values used in the system and prevent potential confusion.

Comment thread pkg/ddc/base/runtime.go
//
// Parameters:
// - client (client.Client): The Kubernetes client used to interact with the API server.
// - runtimeType (string): The type of the runtime (e.g., AlluxioRuntime, JindoRuntime, GooseFSRuntime).
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 (e.g., AlluxioRuntime) are potentially misleading. In Fluid, these types are typically represented as lowercase strings (e.g., "alluxio", "jindo", "goosefs") which correspond to the values of the constants in the common package. Using the CamelCase names might lead users to pass incorrect string values.

Suggested change
// - runtimeType (string): The type of the runtime (e.g., AlluxioRuntime, JindoRuntime, GooseFSRuntime).
// - runtimeType (string): The type of the runtime (e.g., "alluxio", "jindo", "goosefs").

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented Apr 3, 2026

Hi @luoyiti. 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.

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented Apr 4, 2026

/ok-to-test

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.40%. Comparing base (2f8fc96) to head (91d6ec8).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5760   +/-   ##
=======================================
  Coverage   61.40%   61.40%           
=======================================
  Files         444      444           
  Lines       30656    30656           
=======================================
  Hits        18824    18824           
  Misses      10285    10285           
  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 4, 2026

Non-blocking comment: the docstring looks good overall. One small tweak would make the parameter description less ambiguous: for runtimeType, examples like "alluxio", "jindo", and "goosefs" are probably clearer than "AlluxioRuntime", "JindoRuntime", and "GooseFSRuntime", since the latter read more like type names than the actual identifier values passed into this function.

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented Apr 4, 2026

/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.

/approve

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented Apr 4, 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 30d225b into fluid-cloudnative:master Apr 4, 2026
18 checks passed
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.

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

2 participants