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

Update Kokoro tests for Cloud Run #1629

Merged
merged 7 commits into from
Oct 22, 2019
Merged

Update Kokoro tests for Cloud Run #1629

merged 7 commits into from
Oct 22, 2019

Conversation

averikitsch
Copy link
Contributor

No description provided.

@averikitsch averikitsch requested review from kurtisvg and a team October 21, 2019 21:38
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 21, 2019
# See the License for the specific language governing permissions and
# limitations under the License.

set -eo pipefail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want the script to fail if it doesn't build or deploy the container.

Comment on lines 26 to 34
export SAMPLE_VERSION="${KOKORO_GIT_COMMIT:-latest}"
# Builds not triggered by a PR will fall back to the commit hash then "latest".
SUFFIX=${KOKORO_GITHUB_PULL_REQUEST_NUMBER:-${SAMPLE_VERSION:0:12}}
export SERVICE_NAME="${SAMPLE_NAME}-${SUFFIX}"
export CONTAINER_IMAGE="gcr.io/${GOOGLE_CLOUD_PROJECT}/run-${SAMPLE_NAME}:${SAMPLE_VERSION}"

# Build the service
set -x
gcloud builds submit --tag="${CONTAINER_IMAGE}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some mechanism setup to only keep N versions, or is this just going to grow forever?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a clean up function. I've confirmed it's working. I'm also going to check a few times over the next month to confirm there's nothing broken.

@averikitsch averikitsch added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 21, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 21, 2019
@averikitsch averikitsch added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 22, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 22, 2019
@averikitsch averikitsch merged commit 6d24381 into master Oct 22, 2019
@averikitsch averikitsch deleted the run-tests branch October 22, 2019 01:28
bradmiro pushed a commit that referenced this pull request Dec 2, 2019
* Kokoro tests

* change for kokoro to run

* update bash script

* fix clean up and wildcard

* sample name fixed

* Add todo

* test remove pipe to file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants