Skip to content

Fixed Command Pickleability#101

Merged
dskrypa merged 12 commits into
mainfrom
dev
Jun 14, 2025
Merged

Fixed Command Pickleability#101
dskrypa merged 12 commits into
mainfrom
dev

Conversation

@dskrypa

@dskrypa dskrypa commented Jun 14, 2025

Copy link
Copy Markdown
Owner

Fixed pickleability of ActionFlag and ErrorHandler instances so Command methods can be called in a ProcessPoolExecutor, for example.

The error_handling module needed to be split into a package to be able to isolate Windows-specific handlers so that pickling of shared ErrorHandler instances could be tested. The old tests reloaded the module to cause Windows-specific logic to run, which Pickle didn't like.

Fixed permissions for all tests via chmod +x tests/test_*/test_*.py or similar so they can be executed directly on Linux.

@codecov

codecov Bot commented Jun 14, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 96.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 97.94%. Comparing base (5193ead) to head (545333e).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
lib/cli_command_parser/error_handling/__init__.py 71.42% 1 Missing and 1 partial ⚠️
lib/cli_command_parser/conversion/cli.py 0.00% 1 Missing ⚠️
lib/cli_command_parser/documentation.py 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
- Coverage   98.01%   97.94%   -0.07%     
==========================================
  Files          49       52       +3     
  Lines        6786     6818      +32     
  Branches     1068     1074       +6     
==========================================
+ Hits         6651     6678      +27     
- Misses        110      111       +1     
- Partials       25       29       +4     
Flag Coverage Δ
unittests 97.94% <96.00%> (-0.07%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

@dskrypa dskrypa merged commit abe87c3 into main Jun 14, 2025
9 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.

1 participant