Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and push system image before performance tests #3454

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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