Skip to content

Adds some more verbosity to gsutil rsync

John Jarvis requested to merge jarv/gsutil-remove-quiet into master

What does this MR do?

For gitlab-com/gl-infra/production#8162 (comment 1226362124)

We see that our jobs are attempting a sync to GCS for auto-deploy tagged builds, but something is not working since no packages are showing up in the bucket. Example https://dev.gitlab.org/gitlab/omnibus-gitlab/-/jobs/14747423

This change adds a bit more verbosity by not using the quiet option for gsutil, and also reporting the exit code of the two system commands.

I've done a sanity check using the same image and the same key and sync appears to be working fine, so I'm not sure why we aren't copying anything gitlab-com/gl-infra/production#8162 (comment 1227401393)

Related issues

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
  • Pipeline is green on dev.gitlab.org if the change is touching anything besides documentation or internal cookbooks
  • trigger-package has a green pipeline running against latest commit

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Tests added
  • Integration tests added to GitLab QA
  • Equivalent MR/issue for the GitLab Chart opened
Edited by John Jarvis

Merge request reports