Update test-infra dependency (#61)

Includes:
* fixes to `library.sh` in order to have some `hack` scripts working again;
* better checking of PRs where presubmit tests are unnecessary;
This commit is contained in:
Adriano Cunha 2018-09-05 06:57:14 -07:00 committed by Knative Prow Robot
parent 382a2bff0a
commit b2135236d0
3 changed files with 4 additions and 4 deletions

4
Gopkg.lock generated
View File

@ -98,11 +98,11 @@
[[projects]] [[projects]]
branch = "master" branch = "master"
digest = "1:d6415e6b744ec877c21fe734067636b9ee149af77276b08a3d33dd8698abf947" digest = "1:36968d4eb1d52090841ae868d7125d8ff10afabdea0d6b622c1f4a662f94be58"
name = "github.com/knative/test-infra" name = "github.com/knative/test-infra"
packages = ["."] packages = ["."]
pruneopts = "T" pruneopts = "T"
revision = "4a4a682ee1fd31f33e450406393c3553b9ec5c2a" revision = "51872094d69a5b0266fd92a38978819e20ee70c8"
[[projects]] [[projects]]
digest = "1:475b179287e8afdcd352014b2c2500e67decdf63e66125e2129286873453e1cd" digest = "1:475b179287e8afdcd352014b2c2500e67decdf63e66125e2129286873453e1cd"

View File

@ -29,7 +29,7 @@ readonly KNATIVE_BUILD_RELEASE=https://storage.googleapis.com/knative-releases/b
readonly KNATIVE_EVENTING_RELEASE=https://storage.googleapis.com/knative-releases/eventing/latest/release.yaml readonly KNATIVE_EVENTING_RELEASE=https://storage.googleapis.com/knative-releases/eventing/latest/release.yaml
# Useful environment variables # Useful environment variables
[[ -n "${PROW_JOB_ID}" ]] && IS_PROW=1 || IS_PROW=0 [[ -n "${PROW_JOB_ID:-}" ]] && IS_PROW=1 || IS_PROW=0
readonly IS_PROW readonly IS_PROW
readonly REPO_ROOT_DIR="$(git rev-parse --show-toplevel)" readonly REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"

View File

@ -45,7 +45,7 @@ EMIT_METRICS=0
function exit_if_presubmit_not_required() { function exit_if_presubmit_not_required() {
if [[ -n "${PULL_PULL_SHA}" ]]; then if [[ -n "${PULL_PULL_SHA}" ]]; then
# On a presubmit job # On a presubmit job
local changes="$(git diff --name-only ${PULL_PULL_SHA} ${PULL_BASE_SHA})" local changes="$(/workspace/githubhelper -list-changed-files)"
local no_presubmit_pattern="${NO_PRESUBMIT_FILES[*]}" local no_presubmit_pattern="${NO_PRESUBMIT_FILES[*]}"
local no_presubmit_pattern="\(${no_presubmit_pattern// /\\|}\)$" local no_presubmit_pattern="\(${no_presubmit_pattern// /\\|}\)$"
echo -e "Changed files in commit ${PULL_PULL_SHA}:\n${changes}" echo -e "Changed files in commit ${PULL_PULL_SHA}:\n${changes}"