Skip to content

Commit

Permalink
Build and push system image before performance tests (#3454)
Browse files Browse the repository at this point in the history
Build and push image before performance tests
  • Loading branch information
gongmax committed Oct 26, 2023
1 parent 67aa5e2 commit 8e3bb74
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/includes/build-image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ endif
pull-build-image:
$(MAKE) pull-remote-build-image REMOTE_TAG=$(build_remote_tag) LOCAL_TAG=$(build_tag)

pull-build-image-with-tag:
$(MAKE) pull-remote-build-image REMOTE_TAG=$(build_remote_tag) LOCAL_TAG=$(CUSTOM_LOCAL_TAG)
tag-build-image:
docker tag $(build_tag) $(CUSTOM_LOCAL_TAG)

# push the local build image up to your repository
push-build-image:
Expand Down
40 changes: 37 additions & 3 deletions ci/perf-test-cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,42 @@ steps:
- name: make-docker
id: pull-build-image
dir: build
env: ['REGISTRY=${_REGISTRY}', 'CUSTOM_LOCAL_TAG=performance-test']
args: [pull-build-image-with-tag]
env: ['REGISTRY=${_REGISTRY}']
args: [pull-build-image]
waitFor:
- build-make-docker

#
# add tag to build image
#
- name: make-docker
id: tag-build-image
dir: build
env: ['CUSTOM_LOCAL_TAG=performance-test']
args: [tag-build-image]
waitFor:
- pull-build-image

#
# Build all the images and sdks, and push them up to the repository
#

- name: "make-docker"
id: build-images
waitFor:
- pull-build-image
dir: "build"
env:
- "REGISTRY=${_REGISTRY}"
args: ["-j", "4", "build-images"]
- name: "make-docker"
id: push-images
waitFor:
- build-images
dir: "build"
env:
- "REGISTRY=${_REGISTRY}"
args: ["-j", "4", "push"]

#
# Run the performance tests with default feature gates setting
Expand All @@ -60,7 +94,7 @@ steps:
- ${_TEST_INTERVAL}
id: performance-test
waitFor:
- pull-build-image
- tag-build-image

substitutions:
_TEST_CLUSTER_NAME: standard-performance-test-cluster-1-27
Expand Down

0 comments on commit 8e3bb74

Please sign in to comment.