Skip to content

Add comments to TestCheckMasterReady in pkg/ddc/efc/master_test.go#6024

Merged
cheyang merged 1 commit into
fluid-cloudnative:masterfrom
HpSuda:MasterReadyTestComment
Jun 22, 2026
Merged

Add comments to TestCheckMasterReady in pkg/ddc/efc/master_test.go#6024
cheyang merged 1 commit into
fluid-cloudnative:masterfrom
HpSuda:MasterReadyTestComment

Conversation

@HpSuda

@HpSuda HpSuda commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Add comments to TestCheckMasterReady in pkg/ddc/efc/master_test.go

Fixes #6025

@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds descriptive comments to the TestCheckMasterReady unit test in pkg/ddc/efc/master_test.go to explain the test setup, inputs, and validation steps. Feedback indicates that while the comments mention covering the 'not-ready' master state, the actual test cases omit the corresponding engine, meaning this state is never validated. It is recommended to add the missing test case or update the comments accordingly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pkg/ddc/efc/master_test.go Outdated
@cheyang

cheyang commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

The new GoDoc comment on TestCheckMasterReady is accurate and improves readability. It follows the Go convention of starting with the function name and matches the behavior of EFCEngine.CheckMasterReady, which delegates to Helper.CheckAndSyncMasterStatus and updates EFCRuntime conditions. Looks good to me. Note: the DCO check is currently failing on this PR, so a sign-off (git commit --amend -s and force-push) will be needed before tide can merge.

Comment thread pkg/ddc/efc/master_test.go
@HpSuda HpSuda force-pushed the MasterReadyTestComment branch from b5e1d73 to 5ea24ce Compare June 18, 2026 16:07
@HpSuda HpSuda force-pushed the MasterReadyTestComment branch from 5ea24ce to f7f3364 Compare June 18, 2026 16:11
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.86%. Comparing base (8f66427) to head (f7f3364).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6024      +/-   ##
==========================================
+ Coverage   63.56%   64.86%   +1.30%     
==========================================
  Files         479      480       +1     
  Lines       33276    33514     +238     
==========================================
+ Hits        21151    21738     +587     
+ Misses      10445    10051     -394     
- Partials     1680     1725      +45     

☔ View full report in Codecov by Harness.
📢 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 cheyang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All CI checks passed and maintainer has approved. Auto-approving to satisfy branch protection.

@fluid-e2e-bot

fluid-e2e-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

[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

@cheyang cheyang merged commit a106621 into fluid-cloudnative:master Jun 22, 2026
23 checks passed
@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.

Add comments to TestCheckMasterReady in pkg/ddc/efc/master_test.go

2 participants