CI: UBI: output build artifact sha2 and size
What does this MR do?
During UBI pipelines, that last stage of build:*
jobs is copy_assets
, which pulls /assets
out of the respective container, and creates a tarball of the content.
This MR adds a final step during this bash function, which outputs the sha2, size, and name of the assets tarball, looking like this
ca1c05cd2a46293c341a9beb2c9a5d28378506179012184f4993d20bf660a110 something.tar.gz 120K
This is useful in knowing when assets sizes changed suddenly, and in identifying why a Job such as build:gitaly
(example) fails in CI due to responseStatus=413 Payload Too Large
Related issues
Related to gitlab-org/charts/gitlab#3274 (closed)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated