From 08203033a218a9abf994d6156e82c1837b575f8d Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Wed, 25 Sep 2024 22:10:00 -0400 Subject: [PATCH] Make the db object sync job more reliable (#2567) It looks like /usr/bin/python *may* no longer exists in the latest cloud builder git image. I ran the latest image and logged into it to verify that /usr/bin/python3 does exist on 9/25, and again on 9/26 where it re-appeared. I think it is generally a good idea to not rely on it being there going forward. --- release/cloudbuild-sync-db-objects.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release/cloudbuild-sync-db-objects.yaml b/release/cloudbuild-sync-db-objects.yaml index 361a0dd3d..8b573de71 100644 --- a/release/cloudbuild-sync-db-objects.yaml +++ b/release/cloudbuild-sync-db-objects.yaml @@ -22,6 +22,9 @@ steps: - | set -e git clone https://gerrit.googlesource.com/gcompute-tools + if [ ! -f /usr/bin/python ]; then + ln -s /usr/bin/python3 /usr/bin/python + fi ./gcompute-tools/git-cookie-authdaemon git clone ${_INTERNAL_REPO_URL} nomulus-internal # Download and decrypt the nomulus tool credential