Skip to content

Commit e711c9f

Browse files
Revert "CTK Enhancement: Updating binary using zip and secrets" (GoogleCloudPlatform#5158)
1 parent 31d8123 commit e711c9f

65 files changed

Lines changed: 67 additions & 643 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tools/cloud-build/daily-tests/builds/ansible-vm.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,10 @@ steps:
3737
- -c
3838
- |
3939
set -x -e
40-
cd /workspace
41-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
42-
unzip -o gcluster-bundle.zip
43-
# Grant execution permissions to the binary
44-
chmod +x gcluster
40+
cd /workspace && make
4541
BUILD_ID_FULL=$BUILD_ID
4642
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
4743
4844
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
4945
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
5046
--extra-vars="@tools/cloud-build/daily-tests/tests/ansible-vm.yml"
51-
secretEnv: ['GCLUSTER_GCS_PATH']
52-
availableSecrets:
53-
secretManager:
54-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
55-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/batch-mpi.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ availableSecrets:
3030
secretManager:
3131
- versionName: projects/$PROJECT_ID/secrets/spack_cache_url_wrf/versions/1
3232
env: SPACK_CACHE_WRF
33-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
34-
env: 'GCLUSTER_GCS_PATH'
3533

3634
steps:
3735
# While using static network names we are guarding against more than 1 instance running at a time (for multi-group tests)
@@ -46,16 +44,12 @@ steps:
4644
env:
4745
- "ANSIBLE_HOST_KEY_CHECKING=false"
4846
- "ANSIBLE_CONFIG=/workspace/tools/cloud-build/ansible.cfg"
49-
secretEnv: ['SPACK_CACHE_WRF', 'GCLUSTER_GCS_PATH']
47+
secretEnv: ['SPACK_CACHE_WRF']
5048
args:
5149
- -c
5250
- |
5351
set -x -e
54-
cd /workspace
55-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
56-
unzip -o gcluster-bundle.zip
57-
# Grant execution permissions to the binary
58-
chmod +x gcluster
52+
cd /workspace && make
5953
BUILD_ID_FULL=$BUILD_ID
6054
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
6155
SG_EXAMPLE=examples/serverless-batch-mpi.yaml

tools/cloud-build/daily-tests/builds/chrome-remote-desktop-ubuntu.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,10 @@ steps:
3636
- -c
3737
- |
3838
set -x -e
39-
cd /workspace
40-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
41-
unzip -o gcluster-bundle.zip
42-
# Grant execution permissions to the binary
43-
chmod +x gcluster
39+
cd /workspace && make
4440
BUILD_ID_FULL=$BUILD_ID
4541
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
4642
4743
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
4844
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT} os=ubuntu" \
4945
--extra-vars="@tools/cloud-build/daily-tests/tests/chrome-remote-desktop.yml"
50-
secretEnv: ['GCLUSTER_GCS_PATH']
51-
availableSecrets:
52-
secretManager:
53-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
54-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/chrome-remote-desktop.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,10 @@ steps:
3737
- -c
3838
- |
3939
set -x -e
40-
cd /workspace
41-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
42-
unzip -o gcluster-bundle.zip
43-
# Grant execution permissions to the binary
44-
chmod +x gcluster
40+
cd /workspace && make
4541
BUILD_ID_FULL=$BUILD_ID
4642
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
4743
4844
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
4945
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT} os=default" \
5046
--extra-vars="@tools/cloud-build/daily-tests/tests/chrome-remote-desktop.yml"
51-
secretEnv: ['GCLUSTER_GCS_PATH']
52-
availableSecrets:
53-
secretManager:
54-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
55-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/cloud-batch.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,10 @@ steps:
3838
- -c
3939
- |
4040
set -x -e
41-
cd /workspace
42-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
43-
unzip -o gcluster-bundle.zip
44-
# Grant execution permissions to the binary
45-
chmod +x gcluster
41+
cd /workspace && make
4642
BUILD_ID_FULL=$BUILD_ID
4743
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
4844
4945
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
5046
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
5147
--extra-vars="@tools/cloud-build/daily-tests/tests/cloud-batch.yml"
52-
secretEnv: ['GCLUSTER_GCS_PATH']
53-
availableSecrets:
54-
secretManager:
55-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
56-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/e2e.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,10 @@ steps:
3737
vars="project_id=$PROJECT_ID,deployment_name=$depl_name,region=$region,zone=$zone"
3838
3939
cd /workspace
40-
gsutil cp gs://${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
41-
unzip -o gcluster-bundle.zip
42-
# Grant execution permissions to the binary
43-
chmod +x gcluster
40+
make
4441
./gcluster deploy tools/cloud-build/daily-tests/blueprints/e2e.yaml --vars="$vars" --auto-approve
4542
4643
# check instance was created
4744
gcloud compute instances describe "${depl_name}-0" --project="$PROJECT_ID" --zone="$zone" >/dev/null
4845
4946
./gcluster destroy "$depl_name" --auto-approve
50-
secretEnv: ['GCLUSTER_GCS_PATH']
51-
availableSecrets:
52-
secretManager:
53-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
54-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/gke-a2-highgpu-kueue-onspot.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ steps:
6868
echo "Resource policy $${POLICY_NAME} already exists in region $${REGION}."
6969
fi
7070
set -x
71-
cd /workspace
72-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
73-
unzip -o gcluster-bundle.zip
74-
# Grant execution permissions to the binary
75-
chmod +x gcluster
71+
cd /workspace && make
7672
BUILD_ID_SHORT=$${BUILD_ID:0:6}
7773
EXAMPLE_BP=tools/cloud-build/daily-tests/blueprints/gke-a2-highgpu.yaml
7874
@@ -93,8 +89,3 @@ steps:
9389
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
9490
--extra-vars="region=$${REGION} zone=$${ZONE}" \
9591
--extra-vars="@tools/cloud-build/daily-tests/tests/gke-a2-highgpu-kueue-onspot.yml"
96-
secretEnv: ['GCLUSTER_GCS_PATH']
97-
availableSecrets:
98-
secretManager:
99-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
100-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/gke-a2-highgpu-kueue.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ steps:
3939
- -c
4040
- |
4141
set -x -e
42-
cd /workspace
43-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
44-
unzip -o gcluster-bundle.zip
45-
# Grant execution permissions to the binary
46-
chmod +x gcluster
42+
cd /workspace && make
4743
BUILD_ID_FULL=$BUILD_ID
4844
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
4945
EXAMPLE_BP=tools/cloud-build/daily-tests/blueprints/gke-a2-highgpu.yaml
@@ -58,8 +54,3 @@ steps:
5854
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
5955
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
6056
--extra-vars="@tools/cloud-build/daily-tests/tests/gke-a2-highgpu-kueue.yml"
61-
secretEnv: ['GCLUSTER_GCS_PATH']
62-
availableSecrets:
63-
secretManager:
64-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
65-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/gke-a3-highgpu-onspot.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ steps:
5252
exit 1
5353
fi
5454
set -x
55-
cd /workspace
56-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
57-
unzip -o gcluster-bundle.zip
58-
# Grant execution permissions to the binary
59-
chmod +x gcluster
55+
cd /workspace && make
6056
REGION="$${ZONE%-*}"
6157
BUILD_ID_SHORT=$${BUILD_ID:0:6}
6258
EXAMPLE_BP=examples/gke-a3-highgpu.yaml
@@ -89,8 +85,3 @@ steps:
8985
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
9086
--extra-vars="region=$${REGION} zone=$${ZONE}" \
9187
--extra-vars="@tools/cloud-build/daily-tests/tests/gke-a3-highgpu-onspot.yml"
92-
secretEnv: ['GCLUSTER_GCS_PATH']
93-
availableSecrets:
94-
secretManager:
95-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
96-
env: 'GCLUSTER_GCS_PATH'

tools/cloud-build/daily-tests/builds/gke-a3-highgpu.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ steps:
3939
- -c
4040
- |
4141
set -x -e
42-
cd /workspace
43-
gsutil cp gs://$${GCLUSTER_GCS_PATH}/latest/gcluster-bundle.zip .
44-
unzip -o gcluster-bundle.zip
45-
# Grant execution permissions to the binary
46-
chmod +x gcluster
42+
cd /workspace && make
4743
BUILD_ID_FULL=$BUILD_ID
4844
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
4945
EXAMPLE_BP=examples/gke-a3-highgpu.yaml
@@ -70,8 +66,3 @@ steps:
7066
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
7167
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
7268
--extra-vars="@tools/cloud-build/daily-tests/tests/gke-a3-highgpu.yml"
73-
secretEnv: ['GCLUSTER_GCS_PATH']
74-
availableSecrets:
75-
secretManager:
76-
- versionName: projects/${PROJECT_ID}/secrets/gcluster-develop-release-bucket/versions/latest
77-
env: 'GCLUSTER_GCS_PATH'

0 commit comments

Comments
 (0)