Add file size check for uploaded artifacts
What does this MR do and why?
It was noticed that there are certain (unexpected) scenarios where the size of the uploaded GCS artifact is not the same as the CI artifacts that was downloaded. Even in such a scenario, the code did not throw an error. This MR adds file size check to avoid such a scenario.
Fixes https://gitlab.com/gitlab-org/gitlab/-/issues/362690
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vishal Tak