Skip to content

nydusify: refactor check subcommand #1652

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

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

imeoer
Copy link
Collaborator

@imeoer imeoer commented Dec 4, 2024

  • allow either the source or target to be an OCI or nydus image;
  • improve output directory and log format;

Relevant Issue (if applicable)

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

Details

Please describe the details of PullRequest.

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.

@imeoer imeoer requested a review from a team as a code owner December 4, 2024 10:01
@imeoer imeoer requested review from hsiangkao, power-more and Desiki-high and removed request for a team December 4, 2024 10:01
@imeoer imeoer force-pushed the nydusify-checker-enhance branch from 7918b55 to efe63c3 Compare December 5, 2024 09:29
@imeoer imeoer changed the title [WIP] nydusify: enhance check subcommand [WIP] nydusify: refactor check subcommand Dec 5, 2024
@imeoer imeoer changed the title [WIP] nydusify: refactor check subcommand nydusify: refactor check subcommand Dec 5, 2024
@imeoer imeoer force-pushed the nydusify-checker-enhance branch 2 times, most recently from 62a9ca5 to a09f536 Compare December 5, 2024 10:11
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 15.33101% with 243 lines in your changes missing coverage. Please review.

Project coverage is 59.86%. Comparing base (f60e40a) to head (573922d).

Files with missing lines Patch % Lines
contrib/nydusify/pkg/checker/rule/filesystem.go 0.00% 148 Missing ⚠️
contrib/nydusify/pkg/utils/utils.go 0.00% 30 Missing ⚠️
contrib/nydusify/pkg/checker/rule/bootstrap.go 0.00% 28 Missing ⚠️
contrib/nydusify/pkg/checker/rule/manifest.go 67.69% 13 Missing and 8 partials ⚠️
contrib/nydusify/cmd/nydusify.go 0.00% 16 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1652      +/-   ##
==========================================
- Coverage   60.05%   59.86%   -0.19%     
==========================================
  Files         147      147              
  Lines       49624    49749     +125     
  Branches    47078    47078              
==========================================
- Hits        29802    29784      -18     
- Misses      18040    18177     +137     
- Partials     1782     1788       +6     
Files with missing lines Coverage Δ
contrib/nydusify/cmd/nydusify.go 13.37% <0.00%> (-0.16%) ⬇️
contrib/nydusify/pkg/checker/rule/manifest.go 69.87% <67.69%> (-14.18%) ⬇️
contrib/nydusify/pkg/checker/rule/bootstrap.go 0.00% <0.00%> (ø)
contrib/nydusify/pkg/utils/utils.go 58.38% <0.00%> (-14.72%) ⬇️
contrib/nydusify/pkg/checker/rule/filesystem.go 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes

@imeoer imeoer force-pushed the nydusify-checker-enhance branch from a09f536 to d294237 Compare December 11, 2024 01:59
@imeoer imeoer force-pushed the nydusify-checker-enhance branch from d294237 to 573922d Compare January 20, 2025 02:15
- allow either the source or target to be an OCI or nydus image;
- improve output directory structure and log format;

Signed-off-by: Yan Song <[email protected]>
@imeoer imeoer force-pushed the nydusify-checker-enhance branch from 573922d to 322d9a3 Compare March 14, 2025 02:55
Copy link

@BraveY BraveY left a comment

Choose a reason for hiding this comment

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

LGTM

@imeoer
Copy link
Collaborator Author

imeoer commented Mar 24, 2025

Let's fix the broken nextest CI after merging the PR, it's unrelated to this PR's changes.

@imeoer imeoer merged commit 7daa0a3 into dragonflyoss:master Mar 24, 2025
21 of 23 checks passed
imeoer added a commit to imeoer/image-service that referenced this pull request Mar 25, 2025
The output bootstrap path has been changed in the nydusify
check subcommand.

Related PR: dragonflyoss#1652

Signed-off-by: Yan Song <[email protected]>
BraveY pushed a commit that referenced this pull request Mar 25, 2025
The output bootstrap path has been changed in the nydusify
check subcommand.

Related PR: #1652

Signed-off-by: Yan Song <[email protected]>
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