Skip to content

Implicit set --compress when specifying --compress-method - #274

Merged
twiggler merged 2 commits into
fox-it:mainfrom
Matthijsy:feature/compress-method-without-compress
Aug 12, 2026
Merged

Implicit set --compress when specifying --compress-method#274
twiggler merged 2 commits into
fox-it:mainfrom
Matthijsy:feature/compress-method-without-compress

Conversation

@Matthijsy

Copy link
Copy Markdown
Contributor

When specifying --compress-method without --compress the first argument is ignored. This PR adds a quick check to see that you always specify --compress when you specify a method. There is no need to specify a method when the compression is not happing.

twiggler
twiggler previously approved these changes Dec 4, 2025

@twiggler twiggler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The logic here correctly catches the edge case where a user supplies a method but forgets the boolean flag.

However, from a UX perspective, if the user explicitly supplies --compress-method, their intent is clearly to compress. Instead of raising a ValueError, would it be cleaner to simply infer args.compress = True if a method is present?

(I approved the pr in case you don't want to pursue this any further)

@twiggler
twiggler force-pushed the feature/compress-method-without-compress branch from 49f1735 to 9dd1621 Compare December 4, 2025 15:36
@Matthijsy Matthijsy changed the title Ensure --compress is set when specifying --compress-method Implicit set --compress when specifying --compress-method Dec 5, 2025
@Matthijsy

Copy link
Copy Markdown
Contributor Author

Good point, I agree that --compress-method should infer --compress as well. I just added that to the PR

@Matthijsy
Matthijsy requested a review from twiggler March 11, 2026 10:59
@Matthijsy

Copy link
Copy Markdown
Contributor Author

@twiggler Anything still needed to get this merged?

@twiggler
twiggler force-pushed the feature/compress-method-without-compress branch from 59d3cbf to e4ebdb5 Compare August 10, 2026 09:17
@twiggler

Copy link
Copy Markdown
Contributor

@twiggler Anything still needed to get this merged?

@Matthijsy No, looks good.
The main branch is broken at the moment; after this has been addressed, I will merge it in (probably this week).

@twiggler
twiggler force-pushed the feature/compress-method-without-compress branch from e4ebdb5 to e724c42 Compare August 12, 2026 08:42
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 43.75%. Comparing base (fdd7c1e) to head (e724c42).

Files with missing lines Patch % Lines
acquire/utils.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #274   +/-   ##
=======================================
  Coverage   43.74%   43.75%           
=======================================
  Files          26       26           
  Lines        3630     3632    +2     
=======================================
+ Hits         1588     1589    +1     
- Misses       2042     2043    +1     
Flag Coverage Δ
unittests 43.75% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@twiggler
twiggler merged commit bff526b into fox-it:main Aug 12, 2026
23 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