Skip to content

Conversation

@zhang-x-z
Copy link
Collaborator

Ⅰ. Describe what this PR does

This PR fix some incorrect conversions between integer types. In some ddc's operation, the uint64 type is convert to int64 directly, which may provide unexpected return value.

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Add some unit tests in which the return value is negative.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: ZhangXiaozheng <zhang__xiaozheng@outlook.com>
@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
54.2% Duplication on New Code

See analysis details on SonarCloud

@codecov
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (453b086) 64.47% compared to head (2890006) 64.46%.

Files Patch % Lines
pkg/ddc/alluxio/operations/base.go 62.50% 2 Missing and 1 partial ⚠️
pkg/ddc/goosefs/operations/base.go 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3688      +/-   ##
==========================================
- Coverage   64.47%   64.46%   -0.01%     
==========================================
  Files         471      471              
  Lines       28140    28149       +9     
==========================================
+ Hits        18142    18147       +5     
- Misses       7844     7847       +3     
- Partials     2154     2155       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cheyang
Copy link
Collaborator

cheyang commented Jan 12, 2024

/test fluid-e2e

@cheyang cheyang requested a review from Hexilee January 12, 2024 13:31
Copy link
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

fluid-e2e-bot bot commented Jan 12, 2024

[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 5206a2b into fluid-cloudnative:master Jan 12, 2024
xliuqq pushed a commit to xliuqq/fluid that referenced this pull request Jan 17, 2024
Signed-off-by: ZhangXiaozheng <zhang__xiaozheng@outlook.com>
xliuqq added a commit to xliuqq/fluid that referenced this pull request Jan 17, 2024
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