Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompressLog: Add zstd compression #1400

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Aug 6, 2024

@Mindavi
Copy link
Contributor

Mindavi commented Aug 8, 2024

See my comments @ nixpkgs.

@SuperSandro2000 SuperSandro2000 force-pushed the feat/buildlogs-zstd branch 2 times, most recently from b20b98e to ec1c5a3 Compare August 9, 2024 14:37
@Mindavi
Copy link
Contributor

Mindavi commented Aug 9, 2024

Looks good to me, but haven't tested. Would really love it if a small test is added, but maybe that's a big ask. Would definitely improve my confidence, at least of the case where CompressLog is called. The fallback is probably a bit more annoying to test.

@SuperSandro2000
Copy link
Member Author

Would really love it if a small test is added, but maybe that's a big ask.

I have tested this on my hydra and from what I can tell, it seems to work minus the bit that the original logs where not removed. I don't have time to write a test especially with the current test infrastructure.

@SuperSandro2000 SuperSandro2000 force-pushed the feat/buildlogs-zstd branch 2 times, most recently from 21fb3f0 to e1db234 Compare August 9, 2024 16:40
@SuperSandro2000
Copy link
Member Author

I did some more testing and the logs where not displayed in the web ui. That is now also fixed. I think I have now tested this change end to end and hopefully found all the misses along the way.

Copy link
Contributor

@Mindavi Mindavi left a comment

Choose a reason for hiding this comment

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

Diff now looks good to me, unfortunately I cannot test it this week. Maybe next week.

Out of curiosity, what happens if you fill in something else than bz2 or zstd? It'll just fail somewhere in the compression routines?

@SuperSandro2000
Copy link
Member Author

Out of curiosity, what happens if you fill in something else than bz2 or zstd? It'll just fail somewhere in the compression routines?

I hope so. 😅 I didn't test this explicitly.

@Mic92 Mic92 merged commit 9ee3c6a into NixOS:master Aug 21, 2024
1 check passed
@SuperSandro2000 SuperSandro2000 deleted the feat/buildlogs-zstd branch August 22, 2024 12:51
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.

4 participants