Skip to content

Improve how reviews apps redeploy by using rsync

Marcel Amirault requested to merge improve-review-app-redeployments into main

This is an improved fix, following up from !3222 (merged)

Related to #735 (comment 1152386294)

Instead of deleting everything on redeployment, we can use rsync to just update whatever has changed. Note that some flags changed, though the functionality is identical:

Therefore:

  • gsutil cp -z -> gsutil rsync -j
  • gsutil cp -c -> gsutil rsync -C
  • Also note: gsutil rsync -d -> If files are deleted in the source, also delete them in the destination (we sometimes delete images/files in later commits, so we should delete during rsync to match the files exactly).

Testing

Edited by Marcel Amirault

Merge request reports