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

nydusify: fix the issue of blob not found when modifying image name d… #1667

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ymydb
Copy link

@ymydb ymydb commented Feb 19, 2025

Relevant Issue (if applicable)

If there are Issues related to this PullRequest, please list it.

Details

There are some bugs in nydusify commit image, following bugs are fixed in this:

  • commit image on rename repository
    Use the mount blob api in the same repository
    lQLPKIG8PDKZOFHNAezNBmqwAcplACLtsPsHkBC2zJLfAQ_1642_492
    lQLPJwJk2O5LQlHNAxnNAs-wrQYQz9DBey8Hj7GUCxDCAA_719_793
    image

Types of changes

What types of changes does your PullRequest introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@ymydb ymydb requested a review from a team as a code owner February 19, 2025 14:34
@ymydb ymydb requested review from bergwolf, imeoer and Desiki-high and removed request for a team February 19, 2025 14:34
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 60.40%. Comparing base (dd9ba54) to head (c9ae691).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/bin/nydusd/main.rs 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1667      +/-   ##
==========================================
- Coverage   60.42%   60.40%   -0.02%     
==========================================
  Files         146      146              
  Lines       48943    48943              
  Branches    46380    46380              
==========================================
- Hits        29573    29566       -7     
- Misses      17906    17911       +5     
- Partials     1464     1466       +2     
Files with missing lines Coverage Δ
src/bin/nydusd/main.rs 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

yumy and others added 2 commits February 25, 2025 22:29
Use `inspect_err` instead of `inspect` to to correctly handle and log
errors when parsing the `failover-policy` argument.

Signed-off-by: Yang Kaiyong <[email protected]>
Signed-off-by: yumy <[email protected]>
Signed-off-by: yumy <[email protected]>
@ymydb ymydb marked this pull request as draft February 25, 2025 14:42
@ymydb ymydb marked this pull request as ready for review February 25, 2025 14:43
@@ -504,8 +504,8 @@ fn process_fs_service(
.value_of("failover-policy")
.unwrap_or(&"flush".to_string())
.try_into()
.inspect(|_e| {
error!("Invalid failover policy");
.inspect_err(|e| {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, please rebase the latest master, it seems have a merge op introduces the additional commit.

logrus.Infof("copying layer %s", layer.Digest)

// Try to use mount API first
err := targetRemoter.Mount(ctx, layer, sourceRef)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the mount request necessary? can we just use sourceRemoter.Pull and targetRemoter.Push instead?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants