Skip to content

fix(cli): default min-compress-size to resolved block size#32

Merged
RenanGBarreto merged 1 commit into
mainfrom
better-min-compress-size
Jun 6, 2026
Merged

fix(cli): default min-compress-size to resolved block size#32
RenanGBarreto merged 1 commit into
mainfrom
better-min-compress-size

Conversation

@RenanGBarreto
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 6, 2026 22:07
@RenanGBarreto RenanGBarreto merged commit 3d03350 into main Jun 6, 2026
7 checks passed
@RenanGBarreto RenanGBarreto deleted the better-min-compress-size branch June 6, 2026 22:07
Copy link
Copy Markdown
Contributor

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.

Pull request overview

This PR updates MkPFS’s CLI packing behavior so that when --min-compress-size is omitted (or provided as 0), it defaults to the resolved block size being used for the build (including auto and auto-fit cases). This aligns PFSC compression skipping with the effective logical block size to avoid wasting effort/compression overhead on sub-block-sized payloads.

Changes:

  • Update CLI pack config resolution to map min_compress_size=0 to the resolved block_size.
  • Extend CLI test coverage to assert the derived min_compress_size for auto and auto-fit flows (including single-file streaming vs fallback).
  • Refresh README option docs and a minor formatting cleanup in the limitations section.

Reviewed changes

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

File Description
tests/mkpfs/test_cli.py Adds assertions/tests confirming min_compress_size defaults to the resolved block size across relevant CLI paths.
README.md Documents the new --min-compress-size defaulting behavior and fixes a small formatting issue.
mkpfs/cli.py Implements the derived min_compress_size resolution (0 → resolved block_size) and updates CLI help text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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