Skip to content

Commit

Permalink
Add an informational message about schema validation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Oct 12, 2023
1 parent 8f468d7 commit e27bf12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/verify-crd-schema-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
# Use PULL_BASE_REF for CI, otherwise use master unless overriden.
COMPARISON_BASE=${COMPARISON_BASE:-${PULL_BASE_SHA:-"master"}}

# Use a trap so this gets printed at the end of the log even when we exit early due to an error/failure
trap 'echo This verifier checks all files that have changed. In some cases you may have changed or renamed a file that \
already contained api violations, but you are not introducing a new violation. In such cases it is appropriate to /override the \
failing CI job.' EXIT

GENERATOR=schemacheck EXTRA_ARGS=--schemacheck:comparison-base=${COMPARISON_BASE} ${SCRIPT_ROOT}/hack/update-codegen.sh

0 comments on commit e27bf12

Please sign in to comment.