Skip to content

Conversation

@DavePearce
Copy link
Collaborator

@DavePearce DavePearce commented Nov 20, 2025

Note

Adds transparent decompression for .gz/.bz2 trace files and updates readers to parse compressed inputs and line-based JSON batches.

  • Utilities:
    • Add file.ReadAndUncompress to open and transparently decompress .gz/.bz2 files, returning stripped filename and raw data.
    • Introduce file.ReadInputFileAsLines (with .bz2 support) for efficient line-by-line reading.
  • Trace IO:
    • Update cmd.ReadTraceFile to use ReadAndUncompress and resolve format based on the decompressed filename extension.
    • Update cmd.ReadBatchedTraceFile and tests (pkg/test/util/check_valid.go) to use ReadInputFileAsLines for batched JSON traces.
  • Dependencies:
    • Import compress/gzip to support .gz decompression.

Written by Cursor Bugbot for commit 6b236c6. This will update automatically on new commits. Configure here.

@DavePearce DavePearce linked an issue Nov 20, 2025 that may be closed by this pull request
@DavePearce DavePearce force-pushed the 1337-feat-support-reading-compressed-lt-files branch from 020a3e0 to 2b92415 Compare November 20, 2025 22:09
@DavePearce DavePearce force-pushed the 1337-feat-support-reading-compressed-lt-files branch from 2b92415 to 6b236c6 Compare November 21, 2025 03:19
@DavePearce DavePearce merged commit 7e21cbd into main Nov 21, 2025
22 checks passed
@DavePearce DavePearce deleted the 1337-feat-support-reading-compressed-lt-files branch November 21, 2025 04:03
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.

feat: support reading compressed lt files

2 participants