Skip to content

chore(runtime): apply gofmt to runtime package#5792

Merged
fluid-e2e-bot[bot] merged 1 commit intofluid-cloudnative:masterfrom
cheyang:go_fmt_fix
Apr 17, 2026
Merged

chore(runtime): apply gofmt to runtime package#5792
fluid-e2e-bot[bot] merged 1 commit intofluid-cloudnative:masterfrom
cheyang:go_fmt_fix

Conversation

@cheyang
Copy link
Copy Markdown
Collaborator

@cheyang cheyang commented Apr 17, 2026

Ⅰ. Describe what this PR does

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

…entation

- Deleted the unfinished GetRuntimeStatus function which retrieved runtime status by type, name, and namespace
- Cleaned up unused code and comments related to runtime status retrieval
- Retained and organized existing RuntimeInfo interface and related helper functions for runtime info construction
- Ensured the code only includes fully implemented and functional parts to improve maintainability

Signed-off-by: cheyang <cheyang.cy@alibaba-inc.com>
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 includes minor formatting and documentation updates to the WithClientMetrics function in pkg/ddc/base/runtime.go. However, the reviewer pointed out that the changes do not reflect the pull request's stated goal of removing the GetRuntimeStatus function and cleaning up unused code, which remain in the file.

Comment thread pkg/ddc/base/runtime.go
func (info *RuntimeInfo) GetAnnotations() map[string]string {
return info.annotations
}

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 pull request title and description state that the GetRuntimeStatus function is being removed and unused code is being cleaned up. However, the provided changes only include minor documentation and formatting updates. The GetRuntimeStatus function (starting at line 614) and its associated comments are still present in the file. Please ensure that the intended refactoring and deletions are included in the commit.

@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5792   +/-   ##
=======================================
  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.

@RongGu RongGu changed the title refactor(runtime): remove incomplete GetRuntimeStatus function implem… refactor(runtime): go fmt fix Apr 17, 2026
@cheyang cheyang changed the title refactor(runtime): go fmt fix chore(runtime): apply gofmt to runtime package Apr 17, 2026
@cheyang
Copy link
Copy Markdown
Collaborator Author

cheyang commented Apr 17, 2026

/gemini review

1 similar comment
@RongGu
Copy link
Copy Markdown
Member

RongGu commented Apr 17, 2026

/gemini review

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 performs minor formatting improvements in pkg/ddc/base/runtime.go, including adding a newline for better separation between functions and correcting indentation and trailing whitespace in the documentation comments for WithClientMetrics. I have no feedback to provide.

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 performs minor formatting and documentation cleanup in pkg/ddc/base/runtime.go, including adding a newline for better function separation, removing trailing whitespace, and adjusting indentation in the Go doc comments for consistency. No review comments were provided, and I have no further feedback to provide.

Copy link
Copy Markdown
Member

@RongGu RongGu 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 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RongGu

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 d6e3cc5 into fluid-cloudnative:master Apr 17, 2026
23 of 24 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.

2 participants