Update test-infra (#529)

Major changes:
* fix monitoring install function
* fix build tests not failing on module updates
This commit is contained in:
Adriano Cunha 2019-12-03 10:27:35 -08:00 committed by Knative Prow Robot
parent 339232b795
commit 556f457e06
5 changed files with 8 additions and 8 deletions

2
go.mod
View File

@ -21,7 +21,7 @@ require (
knative.dev/eventing v0.10.0 knative.dev/eventing v0.10.0
knative.dev/pkg v0.0.0-20191107185656-884d50f09454 knative.dev/pkg v0.0.0-20191107185656-884d50f09454
knative.dev/serving v0.10.0 knative.dev/serving v0.10.0
knative.dev/test-infra v0.0.0-20191113204928-e381f11dc722 knative.dev/test-infra v0.0.0-20191203152035-98a7b3bbed2d
sigs.k8s.io/yaml v1.1.0 sigs.k8s.io/yaml v1.1.0
) )

4
go.sum
View File

@ -534,8 +534,8 @@ knative.dev/pkg v0.0.0-20191107185656-884d50f09454 h1:nkslWFyRWaJp3nPDm+GSQOSvN8
knative.dev/pkg v0.0.0-20191107185656-884d50f09454/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q= knative.dev/pkg v0.0.0-20191107185656-884d50f09454/go.mod h1:pgODObA1dTyhNoFxPZTTjNWfx6F0aKsKzn+vaT9XO/Q=
knative.dev/serving v0.10.0 h1:T1csznAQrc/DvCE4KROz4NqOtJ24mnU9eF9RMeeYaCc= knative.dev/serving v0.10.0 h1:T1csznAQrc/DvCE4KROz4NqOtJ24mnU9eF9RMeeYaCc=
knative.dev/serving v0.10.0/go.mod h1:x2n255JS2XBI39tmjZ8CwTxIf9EKNMCrkVuiOttLRm0= knative.dev/serving v0.10.0/go.mod h1:x2n255JS2XBI39tmjZ8CwTxIf9EKNMCrkVuiOttLRm0=
knative.dev/test-infra v0.0.0-20191113204928-e381f11dc722 h1:MnOoRxxPk7Hs8NIBhuUinJGgP8gCqKJKQQJWa+rZgao= knative.dev/test-infra v0.0.0-20191203152035-98a7b3bbed2d h1:g6tN3ufvEsQ3NxhsHQRi6q+q3xBDCwbSMUUIrCnQeRU=
knative.dev/test-infra v0.0.0-20191113204928-e381f11dc722/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ= knative.dev/test-infra v0.0.0-20191203152035-98a7b3bbed2d/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ=
modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw=
modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=

View File

@ -426,9 +426,7 @@ function start_knative_monitoring() {
# mentioned in # mentioned in
# https://github.com/knative/serving/blob/4202efc0dc12052edc0630515b101cbf8068a609/config/monitoring/tracing/zipkin/100-zipkin.yaml#L21 # https://github.com/knative/serving/blob/4202efc0dc12052edc0630515b101cbf8068a609/config/monitoring/tracing/zipkin/100-zipkin.yaml#L21
kubectl create namespace istio-system 2>/dev/null kubectl create namespace istio-system 2>/dev/null
echo "Installing Monitoring CRDs from $1" echo "Installing Monitoring from $1"
kubectl apply --selector knative.dev/crd-install=true -f "$1" || return 1
echo "Installing the rest of monitoring components from $1"
kubectl apply -f "$1" || return 1 kubectl apply -f "$1" || return 1
wait_until_pods_running knative-monitoring || return 1 wait_until_pods_running knative-monitoring || return 1
wait_until_pods_running istio-system || return 1 wait_until_pods_running istio-system || return 1

View File

@ -156,8 +156,10 @@ function default_build_test_runner() {
markdown_build_tests || failed=1 markdown_build_tests || failed=1
# For documentation PRs, just check the md files # For documentation PRs, just check the md files
(( IS_DOCUMENTATION_PR )) && return ${failed} (( IS_DOCUMENTATION_PR )) && return ${failed}
# Don't merge these two lines, or return code will always be 0.
local go_pkg_dirs
go_pkg_dirs="$(go list ./...)" || return 1
# Skip build test if there is no go code # Skip build test if there is no go code
local go_pkg_dirs="$(go list ./...)"
[[ -z "${go_pkg_dirs}" ]] && return ${failed} [[ -z "${go_pkg_dirs}" ]] && return ${failed}
# Ensure all the code builds # Ensure all the code builds
subheader "Checking that go code builds" subheader "Checking that go code builds"

2
vendor/modules.txt vendored
View File

@ -668,7 +668,7 @@ knative.dev/serving/pkg/apis/serving/v1
knative.dev/serving/pkg/apis/serving/v1beta1 knative.dev/serving/pkg/apis/serving/v1beta1
knative.dev/serving/pkg/gc knative.dev/serving/pkg/gc
knative.dev/serving/pkg/network knative.dev/serving/pkg/network
# knative.dev/test-infra v0.0.0-20191113204928-e381f11dc722 # knative.dev/test-infra v0.0.0-20191203152035-98a7b3bbed2d
knative.dev/test-infra/scripts knative.dev/test-infra/scripts
# sigs.k8s.io/kustomize v2.0.3+incompatible # sigs.k8s.io/kustomize v2.0.3+incompatible
sigs.k8s.io/kustomize/pkg/fs sigs.k8s.io/kustomize/pkg/fs