Skip to content

feat(database/json): Add support for file compression#814

Open
gfieni wants to merge 2 commits intomasterfrom
feat/json-database-compression
Open

feat(database/json): Add support for file compression#814
gfieni wants to merge 2 commits intomasterfrom
feat/json-database-compression

Conversation

@gfieni
Copy link
Copy Markdown
Contributor

@gfieni gfieni commented Apr 13, 2026

This PR adds the support for transparent (de-)compression for input/output files using the json database driver.
The supported compression methods are :

  • none for uncompressed files
  • auto where the compression method is inferred from the file extension (default)
  • gzip for Gzip compression
  • lzma for LZMA compression

@gfieni gfieni self-assigned this Apr 13, 2026
@gfieni gfieni requested a review from a team as a code owner April 13, 2026 14:07
@gfieni gfieni added the enhancement New feature or request label Apr 13, 2026
@gfieni gfieni force-pushed the feat/json-database-compression branch from 6d85256 to 61bb209 Compare April 14, 2026 10:15
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 83.54430% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.01%. Comparing base (05182ec) to head (93a44e2).

Files with missing lines Patch % Lines
src/powerapi/database/json/file_handlers.py 85.71% 9 Missing ⚠️
src/powerapi/cli/common_cli_parsing_manager.py 0.00% 2 Missing ⚠️
src/powerapi/database/json/driver.py 83.33% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #814      +/-   ##
==========================================
+ Coverage   70.70%   71.01%   +0.31%     
==========================================
  Files          88       89       +1     
  Lines        2895     2964      +69     
==========================================
+ Hits         2047     2105      +58     
- Misses        848      859      +11     
Files with missing lines Coverage Δ
src/powerapi/cli/generator.py 89.30% <100.00%> (ø)
src/powerapi/cli/common_cli_parsing_manager.py 0.00% <0.00%> (ø)
src/powerapi/database/json/driver.py 50.74% <83.33%> (+3.12%) ⬆️
src/powerapi/database/json/file_handlers.py 85.71% <85.71%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gfieni gfieni changed the title feat(database/json): Add support for input/output file compression feat(database/json): Add support for file compression Apr 14, 2026
@gfieni gfieni force-pushed the feat/json-database-compression branch from 61bb209 to 21d0ee4 Compare April 14, 2026 13:02
@gfieni gfieni force-pushed the feat/json-database-compression branch from 21d0ee4 to 93a44e2 Compare April 14, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants