Skip to content

Conversation

Apokleos
Copy link
Contributor

@Apokleos Apokleos commented Apr 8, 2025

To make nydus-snapshotter work well in CoCo:

(1) Just go pass when do AddRafsInstance failed.
(2) When sn can't get label.CRIImageRef, just assign it with overlayfs.

Signed-off-by: alex.lyn alex.lyn@antgroup.com

Copy link

codecov bot commented Apr 8, 2025

Codecov Report

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

Project coverage is 21.36%. Comparing base (e3fe566) to head (314951f).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
snapshot/mount_option.go 0.00% 11 Missing ⚠️
pkg/filesystem/fs.go 0.00% 8 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #636      +/-   ##
==========================================
- Coverage   21.39%   21.36%   -0.03%     
==========================================
  Files         122      122              
  Lines       13617    13632      +15     
==========================================
  Hits         2913     2913              
- Misses      10383    10398      +15     
  Partials      321      321              
Files with missing lines Coverage Δ
pkg/filesystem/fs.go 0.00% <0.00%> (ø)
snapshot/mount_option.go 21.45% <0.00%> (-0.66%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@imeoer imeoer requested a review from Copilot April 8, 2025 03:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

snapshot/mount_option.go:175

  • [nitpick] Consider defining a constant for the fallback source value 'overlayfs' instead of using a hard-coded string, to improve maintainability and readability.
source = "overlayfs"

// remains non-empty, a forced assignment is used here. This does not affect the passing of information.
// it is solely to pass the check.
if len(source) == 0 {
source = "overlayfs"
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about dummy-image-reference ?

@@ -27,6 +27,10 @@ import (
"github.com/pkg/errors"
)

const (
KataVirtualVolumeDefaultSource = "overlayfs"
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about dummy-image-reference ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

To make nydus-snapshotter work well in CoCo:

(1) Just go pass when do AddRafsInstance failed.
(2) When sn can't get label.CRIImageRef, just assign it with
overlayfs.

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
@imeoer imeoer merged commit 88a72d9 into containerd:main Apr 9, 2025
14 of 16 checks passed
stevenhorsman added a commit to kata-containers/kata-containers that referenced this pull request Jun 27, 2025
Bump to version v0.15.2 to pick up fix to mount source in
containerd/nydus-snapshotter#636

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
stevenhorsman added a commit to stevenhorsman/kata-containers that referenced this pull request Jun 27, 2025
Bump to version v0.15.2 to pick up fix to mount source in
containerd/nydus-snapshotter#636

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
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