This directory contains entrypoints for our Continuous Integration system, Prow.
The scripts in this directory can also be run manually on your workstation, but might need minor changes. This document explains the changes required for each test.
All the tests will only run after these prerequisites are met.
Most of the tests are hard-coded to only work on the cloudesf-testing
project.
Therefore, you will need the Editor
role in cloudesf-testing
.
Running the tests on a separate GCP project is not supported yet.
Assuming you are in the root of the repo, run:
./prow/gcpproxy-build.sh
This script will:
- Build all the binaries locally and place them in the /bin directory.
- Build the docker images using Google Cloud Build.
- Push the docker images to Google Container Registry in
cloudesf-testing
.
The following tests can be run locally with minor changes.
You will need the Cloud Run Admin
role for your user to run this script.
Note this is not part of the default Editor
role.
You need install jq
by
sudo apt-get install jq
No other changes are needed. Run the script from the root of the repo:
./prow/e2e-cloud-run-http-bookstore.sh
If you comment out the tearDown
function in cloud-run/deploy.sh,
please make sure to manually clean-up the resources.
Create a kubernetes cluster on GKE. Connect to the cluster in your shell:
gcloud container clusters get-credentials ${CLUSTER_NAME} --zone ${ZONE} --project cloudesf-testing
Then run the script, no changes are needed:
./prow/e2e-tight_http_bookstore_managed_long_run.sh
Please make sure to manually delete your entire cluster when you are done.