Skip to content

Conversation

leighmcculloch
Copy link
Member

What

Specify retention days for CI workflow artifacts to be a lower number of days for large files. Lower than the 60 day default.

Why

The CI build workflows create a lot of artifacts because the build is completed across many instances and artifacts are how the results of each build are passed to the next job. These artifacts by default are retained for 60 days which is excessively long when the artifacts are only used by the build process in the moment of the build.

The shortest time we can set the artifact expiry is 1 day, but I've set it to 7 days for images and 60 days for logs. Logs are small and it is sometimes useful to be able to go able and look at logs. Images are larger but rarely do we need to go back and use them. The main reason to keep it at 7 and not 1 is so that if we have a failed build that needs to rerun some steps, the artifacts being present from the earlier run is helpful.

When images are built from local branch PRs, the final image gets pushed up to dockerhub anyway.

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Sep 3, 2025
@leighmcculloch leighmcculloch marked this pull request as ready for review September 3, 2025 10:58
@leighmcculloch leighmcculloch enabled auto-merge (squash) September 3, 2025 10:58
@leighmcculloch leighmcculloch linked an issue Sep 3, 2025 that may be closed by this pull request
13 tasks
@leighmcculloch leighmcculloch merged commit fa11e0a into main Sep 3, 2025
420 of 422 checks passed
@leighmcculloch leighmcculloch deleted the add-artifact-retention-days branch September 3, 2025 22:00
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Reduce GitHub Actions resource usage: size of artifacts, cpu time

2 participants