Skip to content

This PR is to add comments to GetCommonLabelName in fluid/pkg/ddc/base/validate_test.go.#5817

Merged
fluid-e2e-bot[bot] merged 6 commits intofluid-cloudnative:masterfrom
github2134243:add-comment-GetCommonLabelName
Apr 29, 2026
Merged

This PR is to add comments to GetCommonLabelName in fluid/pkg/ddc/base/validate_test.go.#5817
fluid-e2e-bot[bot] merged 6 commits intofluid-cloudnative:masterfrom
github2134243:add-comment-GetCommonLabelName

Conversation

@github2134243
Copy link
Copy Markdown
Contributor

I. Describe what this PR does

Add comments to GetCommonLabelName in fluid/pkg/ddc/base/validate_test.go.

II. Does this pull request fix one issue?

fixes #5816

III. Special notes for reviews

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented Apr 28, 2026

Hi @github2134243. 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 a descriptive comment and spacing to the GetCommonLabelName method in pkg/ddc/base/validate_test.go. The review feedback recommends simplifying the comment to improve accuracy and removing the newlines to ensure the code remains consistent with the existing style of grouped mock stubs.

Comment thread pkg/ddc/base/validate_test.go Outdated
Comment on lines +87 to +90

// GetCommonLabelName returns the common label name used in runtime validation.
// This is a stub implementation for mockRuntimeInfoForValidate and returns
// an empty string as it is only used for testing purposes.
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 added comment is misleading as GetCommonLabelName is not used in the ValidateRuntimeInfo function, which is the primary focus of this mock. Additionally, the comment is overly verbose for a simple test stub, and the extra newline at line 87 breaks the visual consistency of the mock's method definitions, which are otherwise grouped together without spaces. Consider using a more concise and accurate comment while maintaining the existing code style.

Suggested change
// GetCommonLabelName returns the common label name used in runtime validation.
// This is a stub implementation for mockRuntimeInfoForValidate and returns
// an empty string as it is only used for testing purposes.
// GetCommonLabelName returns the common label name.

Comment thread pkg/ddc/base/validate_test.go Outdated
// This is a stub implementation for mockRuntimeInfoForValidate and returns
// an empty string as it is only used for testing purposes.
func (m *mockRuntimeInfoForValidate) GetCommonLabelName() string { return "" }

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

This extra newline is unnecessary and inconsistent with the surrounding code style where mock stubs are grouped together without intervening whitespace.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.17%. Comparing base (b2263fb) to head (2597bd1).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5817   +/-   ##
=======================================
  Coverage   58.17%   58.17%           
=======================================
  Files         478      478           
  Lines       32477    32477           
=======================================
  Hits        18894    18894           
  Misses      12040    12040           
  Partials     1543     1543           

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

@sonarqubecloud
Copy link
Copy Markdown

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

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented Apr 29, 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 c344236 into fluid-cloudnative:master Apr 29, 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 GetCommonLabelName in fluid/pkg/ddc/base/validate_test.go.

2 participants