Skip to content

Add zstd_wrapper#100

Closed
ZacSweers wants to merge 7 commits into
buildkite-plugins:toote_compression_refactoringfrom
ZacSweers:z/zstd
Closed

Add zstd_wrapper#100
ZacSweers wants to merge 7 commits into
buildkite-plugins:toote_compression_refactoringfrom
ZacSweers:z/zstd

Conversation

@ZacSweers

@ZacSweers ZacSweers commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

Note this adds checks for the binary since I'm not sure if it's safe to assume it's present. Tested these locally with both files and dirs

@ZacSweers ZacSweers requested a review from a team as a code owner February 12, 2025 21:35

@toote toote 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.

Changes suggested made me realize I had forgotten to add the wrappers folder to the shellcheck of the pipeline. Thanks!

Comment thread compression/zstd_wrapper Outdated
Comment thread compression/zstd_wrapper Outdated
Comment thread compression/zstd_wrapper Outdated
Comment thread README.md Outdated
ZacSweers and others added 4 commits February 13, 2025 15:06
Co-authored-by: Matías Bellone <toote@users.noreply.github.com>
Co-authored-by: Matías Bellone <toote@users.noreply.github.com>
Co-authored-by: Matías Bellone <toote@users.noreply.github.com>

@toote toote 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.

Just a very minor issue leftover from another change I requested. After you have made that change I would approve it even without tests as it would be too much to ask. As long as you have tested it successfully I'd be OK with this :)

Comment thread compression/zstd_wrapper Outdated
fi

if [ "${OPERATION}" = "compress" ]; then
check_zstd

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.

you forgot to remove this reference

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread compression/zstd_wrapper Outdated
fi
tar "${TAR_OPTS[@]}" "${SOURCE}" | zstd -o "${TARGET}"
elif [ "${OPERATION}" = "decompress" ]; then
check_zstd

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.

and this one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ZacSweers

Copy link
Copy Markdown
Contributor Author

Fixed! Missed those as I was just accepting suggestions in github heh. Can reconfirm this all worked fine with local testing

image

@toote toote 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.

👏

@pzeballos pzeballos deleted the branch buildkite-plugins:toote_compression_refactoring February 17, 2025 19:25
@pzeballos pzeballos closed this Feb 17, 2025
@toote toote mentioned this pull request Feb 17, 2025
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.

3 participants