Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove getModTime() to use ModTime() from os.FileInfo directly #39623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gofastasf
Copy link

@Gofastasf Gofastasf commented Jan 31, 2025

  • Use ModTime from os.FileInfo directly instead of custom getModTime implementation.
  • Removed test case for getModTime().

Signed-off-by: Gofastasf [email protected]

@sre-ci-robot
Copy link
Contributor

Welcome @Gofastasf! It looks like this is your first PR to milvus-io/milvus 🎉

@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Jan 31, 2025
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Gofastasf
To complete the pull request process, please assign czs007 after the PR has been reviewed.
You can assign the PR to them by writing /assign @czs007 in a comment when ready.

The full list of commands accepted by this bot can be found here.

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

Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

@mergify mergify bot added needs-dco DCO is missing in this pull request. kind/bug Issues or changes related a bug labels Jan 31, 2025
Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf Please associate the related issue to the body of your Pull Request. (eg. “issue: #”)

@Gofastasf Gofastasf force-pushed the fix/redundant-getmodtime-local-chunk-manager branch from be0b77b to 19a504f Compare January 31, 2025 18:31
@mergify mergify bot added dco-passed DCO check passed. and removed needs-dco DCO is missing in this pull request. labels Jan 31, 2025
Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf go-sdk check failed, comment rerun go-sdk can trigger the job again.

@Gofastasf
Copy link
Author

/run-cpu-e2e

@Gofastasf
Copy link
Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link
Contributor

mergify bot commented Jan 31, 2025

@Gofastasf go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.40%. Comparing base (b3791a6) to head (3d0feea).

❌ Your project check has failed because the head coverage (69.40%) is below the target coverage (77.00%). You can increase the head coverage or adjust the target coverage.

❗ There is a different number of reports uploaded between BASE (b3791a6) and HEAD (3d0feea). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (b3791a6) HEAD (3d0feea)
2 1
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #39623       +/-   ##
===========================================
- Coverage   80.14%   69.40%   -10.74%     
===========================================
  Files        1465      302     -1163     
  Lines      203091    27065   -176026     
===========================================
- Hits       162762    18785   -143977     
+ Misses      34526     8280    -26246     
+ Partials     5803        0     -5803     
Components Coverage Δ
Client ∅ <ø> (∅)
Core 69.40% <ø> (ø)
Go ∅ <ø> (∅)

see 1163 files with indirect coverage changes

- Use ModTime from os.FileInfo directly instead of custom getModTime implementation.
- Removed test case for getModTime().

Signed-off-by: Go [email protected]
Signed-off-by: Gofastasf <[email protected]>
@Gofastasf Gofastasf force-pushed the fix/redundant-getmodtime-local-chunk-manager branch from 19a504f to 3d0feea Compare February 1, 2025 04:52
Copy link
Contributor

mergify bot commented Feb 1, 2025

@Gofastasf go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Feb 1, 2025

@Gofastasf E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@xiaofan-luan
Copy link
Collaborator

hi @Gofastasf
any reason to make this change or it's simply cleanup the code?

@Gofastasf
Copy link
Author

@xiaofan-luan
To reduce redundant Stat call.
filepath.Walk already has os.FileInfo which has ModTime. So directly use it from there instead of extra function call.

@xiaofan-luan
Copy link
Collaborator

The pr overall looks good to me.
We need a related issue and seems that the e2e cluster has some issue and we need to fix that

Copy link
Contributor

mergify bot commented Feb 4, 2025

@Gofastasf E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-passed DCO check passed. do-not-merge/missing-related-issue kind/bug Issues or changes related a bug size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants