Skip to content

This PR is to add comments to TestAlluxioFileUtils_LoadMetadataWithoutTimeout in fluid/pkg/ddc/alluxio/operations/base_test.go#5935

Open
xianyubuxian-TXY wants to merge 1 commit into
fluid-cloudnative:masterfrom
xianyubuxian-TXY:feat/comment—TestAlluxioFileUtils_LoadMetadataWithoutTimeout

Hidden character warning

The head ref may contain hidden characters: "feat/comment\u2014TestAlluxioFileUtils_LoadMetadataWithoutTimeout"
Open

This PR is to add comments to TestAlluxioFileUtils_LoadMetadataWithoutTimeout in fluid/pkg/ddc/alluxio/operations/base_test.go#5935
xianyubuxian-TXY wants to merge 1 commit into
fluid-cloudnative:masterfrom
xianyubuxian-TXY:feat/comment—TestAlluxioFileUtils_LoadMetadataWithoutTimeout

Conversation

@xianyubuxian-TXY
Copy link
Copy Markdown

Ⅰ. Describe what this PR does
This PR is to add comments to TestAlluxioFileUtils_LoadMetadataWithoutTimeout in fluid/pkg/ddc/alluxio/operations/base_test.go

Ⅱ. Does this pull request fix one issue?
fixes #5934

Ⅲ. Special notes for reviews
[optional]

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented May 30, 2026

Hi @xianyubuxian-TXY. 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 doc comment to the TestAlluxioFileUtils_LoadMetadataWithoutTimeout test function. The reviewer suggests simplifying this comment to remove redundant and unidiomatic documentation of standard test parameters and return values in Go.

Comment thread pkg/ddc/alluxio/operations/base_test.go Outdated
Comment on lines +157 to +164
// TestAlluxioFileUtils_LoadMetadataWithoutTimeout tests LoadMetadataWithoutTimeout
// by mocking the internal exec behavior to cover both failure and success cases.
//
// Parameters:
// - t (*testing.T): The testing context used to run assertions.
//
// Returns:
// - None.
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

In Go, documenting standard test function parameters (*testing.T) and return values is redundant and unidiomatic. Go doc comments should be concise and avoid verbose sections like Parameters: and Returns:. Consider simplifying the comment to keep it clean and idiomatic.

Suggested change
// TestAlluxioFileUtils_LoadMetadataWithoutTimeout tests LoadMetadataWithoutTimeout
// by mocking the internal exec behavior to cover both failure and success cases.
//
// Parameters:
// - t (*testing.T): The testing context used to run assertions.
//
// Returns:
// - None.
// TestAlluxioFileUtils_LoadMetadataWithoutTimeout tests LoadMetadataWithoutTimeout
// by mocking the internal exec behavior to cover both failure and success cases.

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 30, 2026

/ok-to-test

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 31, 2026

👋 DCO check failed for this PR (action_required). Please ensure all commits include the Signed-off-by: Name <email> line. You can fix this by amending your commits with git commit --amend --signoff and force-pushing.

…out in fluid/pkg/ddc/alluxio/operations/base_test.go

Signed-off-by: xianyu <2646163045@qq.com>
@xianyubuxian-TXY xianyubuxian-TXY force-pushed the feat/comment—TestAlluxioFileUtils_LoadMetadataWithoutTimeout branch from 323749c to cb7d5ce Compare May 31, 2026 04:18
@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.35%. Comparing base (823e07e) to head (cb7d5ce).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5935   +/-   ##
=======================================
  Coverage   63.35%   63.35%           
=======================================
  Files         481      481           
  Lines       33070    33070           
=======================================
  Hits        20953    20953           
  Misses      10442    10442           
  Partials     1675     1675           

☔ 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 Jun 1, 2026

E2e tests failed for v1.22.17 and v1.28.15, likely due to flaky infrastructure (this is a comment-only change). I've triggered a retry of the failed e2e runs.

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented Jun 1, 2026

/lgtm
/approve

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented Jun 1, 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

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 TestAlluxioFileUtils_LoadMetadataWithoutTimeout in fluid/pkg/ddc/alluxio/operations/base_test.go

2 participants