Skip to content

Conversation

SToPire
Copy link
Contributor

@SToPire SToPire commented Sep 29, 2024

This commit uses compact parameter directly insteadof compact config file in the cli interface. It also fix a bug where chunk key for ChunkWrapper::Ref is not generated correctly.

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)

@SToPire SToPire requested a review from a team as a code owner September 29, 2024 10:14
@SToPire SToPire requested review from bergwolf, changweige and adamqqqplay and removed request for a team September 29, 2024 10:14
This commit uses compact parameter directly  insteadof compact config
file in the cli interface. It also fix a bug where chunk key for
ChunkWrapper::Ref is not generated correctly.

Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Copy link

codecov bot commented Sep 29, 2024

Codecov Report

Attention: Patch coverage is 1.36986% with 72 lines in your changes missing coverage. Please review.

Project coverage is 61.24%. Comparing base (a4683ba) to head (7abd881).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/bin/nydus-image/main.rs 0.00% 63 Missing ⚠️
builder/src/compact.rs 10.00% 9 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1631      +/-   ##
==========================================
- Coverage   61.29%   61.24%   -0.05%     
==========================================
  Files         146      146              
  Lines       48156    48189      +33     
  Branches    46123    46156      +33     
==========================================
- Hits        29516    29513       -3     
- Misses      17084    17115      +31     
- Partials     1556     1561       +5     
Files with missing lines Coverage Δ
builder/src/lib.rs 64.66% <ø> (ø)
builder/src/compact.rs 79.90% <10.00%> (-0.43%) ⬇️
src/bin/nydus-image/main.rs 0.62% <0.00%> (-0.01%) ⬇️

... and 3 files with indirect coverage changes

Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

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

Others LGTM, thanks!

.group("backend"),
Arg::new("min-used-ratio")
.long("min-used-ratio")
.help("Lower bound of used ratio for blobs to be kept")
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be add some help hint: Lower bound of used ratio for blobs to be kept, possible values: 0-99, 0 means disable.

.arg(
Arg::new("compact-blob-size")
.long("compact-blob-size")
.help("Upper bound of blob size for blobs to be compacted")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Upper bound of blob size for blobs to be compacted, in bytes.

.arg(
Arg::new("max-compact-size")
.long("max-compact-size")
.help("Upper bound of compacted blob size")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Upper bound of compacted blob size, in bytes.

This patch modifies the compact interface to meet the change in
nydus-image.

Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Copy link
Collaborator

@imeoer imeoer 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 imeoer merged commit 7c49849 into dragonflyoss:master Oct 15, 2024
24 checks passed
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