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

feat: compress job logs above a threshold before uploading it as an artifact #253

Merged
merged 4 commits into from
Oct 3, 2024

Conversation

lucaspin
Copy link
Contributor

@lucaspin lucaspin commented Oct 2, 2024

https://github.com/renderedtext/tasks/issues/6930

Issue

Since the artifacts API does not support multipart uploads yet, uploading the job logs as an artifact is not possible if the amount of job logs produced is bigger than the amount of data the artifact storage backend can take. For example, when using S3 as the backend for artifact storage, we are limited to 5GB files.

Solution

If the file is above a certain threshold, we compress it before uploading it as an artifact. The default threshold is 100M, but it can be configured with the SEMAPHORE_AGENT_LOGS_COMPRESSION_SIZE environment variable.

@lucaspin lucaspin merged commit 86ee0a9 into master Oct 3, 2024
3 checks passed
@lucaspin lucaspin deleted the compress-job-logs-before-uploading branch October 3, 2024 10:07
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.

2 participants