From d5f4e0c84babf290e4f71c2cda3e394f0f30c548 Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Fri, 15 Dec 2017 12:12:06 -0800 Subject: [PATCH] Bump the test timeout in CI. Parameterize the timeout for the fast tests with a default of 2 minutes that is bumped to 10 minutes in CI due to slow I/O during macOS builds. --- .travis.yml | 2 +- Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 416a04c9a..6e4308bd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ install: - git clone git@github.com:pulumi/home ${GOPATH}/src/github.com/pulumi/home - make ensure script: - - make travis_${TRAVIS_EVENT_TYPE} + - make travis_${TRAVIS_EVENT_TYPE} TEST_FAST_TIMEOUT=10m notifications: webhooks: https://ufci1w66n3.execute-api.us-west-2.amazonaws.com/stage/travis diff --git a/Makefile b/Makefile index 5d3cd01a4..1d202b931 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ GOMETALINTERBIN := gometalinter GOMETALINTER := ${GOMETALINTERBIN} --config=Gometalinter.json TESTPARALLELISM := 10 +TEST_FAST_TIMEOUT := 2m build:: go install -ldflags "-X github.com/pulumi/pulumi/pkg/version.Version=${VERSION}" ${PROJECT} @@ -26,7 +27,7 @@ lint:: $(GOMETALINTER) ./cmd/... | grep -vE ${LINT_SUPPRESS} | sort ; exit $$(($${PIPESTATUS[1]}-1)) test_fast:: - go test -timeout 5m -cover -parallel ${TESTPARALLELISM} ${PROJECT_PKGS} + go test -timeout $(TEST_FAST_TIMEOUT) -cover -parallel ${TESTPARALLELISM} ${PROJECT_PKGS} test_all:: PATH=$(PULUMI_ROOT)/bin:$(PATH) go test -cover -parallel ${TESTPARALLELISM} ${EXTRA_TEST_PKGS}