mirror of https://github.com/knative/docs.git
Auto-update dependencies (#2316)
Produced via: `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh` /assign dprotaso grantr samodell /cc dprotaso grantr samodell
This commit is contained in:
parent
46630b5108
commit
543433136e
|
@ -465,14 +465,14 @@
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:e5bd21467544cbd14cb25553c5c78eb2e0e93baf9288a3c2ebaf1cf1fdb0c95f"
|
digest = "1:115d2f6e72ee06327259bdba21d26f28c359c62464afd73538fbab66ae2b7698"
|
||||||
name = "knative.dev/test-infra"
|
name = "knative.dev/test-infra"
|
||||||
packages = [
|
packages = [
|
||||||
"scripts",
|
"scripts",
|
||||||
"tools/dep-collector",
|
"tools/dep-collector",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "71f886c808ce483867a28ca2b47e843916a72b44"
|
revision = "01c075fbeae4b089793fcca6fc855d31e1628cad"
|
||||||
|
|
||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
|
|
|
@ -147,14 +147,20 @@ function markdown_build_tests() {
|
||||||
|
|
||||||
# Default build test runner that:
|
# Default build test runner that:
|
||||||
# * check markdown files
|
# * check markdown files
|
||||||
# * `go build` on the entire repo
|
|
||||||
# * run `/hack/verify-codegen.sh` (if it exists)
|
# * run `/hack/verify-codegen.sh` (if it exists)
|
||||||
|
# * `go build` on the entire repo
|
||||||
# * check licenses in all go packages
|
# * check licenses in all go packages
|
||||||
function default_build_test_runner() {
|
function default_build_test_runner() {
|
||||||
local failed=0
|
local failed=0
|
||||||
# Perform markdown build checks first
|
# Perform markdown build checks
|
||||||
markdown_build_tests || failed=1
|
markdown_build_tests || failed=1
|
||||||
# For documentation PRs, just check the md files
|
# Run verify-codegen check
|
||||||
|
if [[ -f ./hack/verify-codegen.sh ]]; then
|
||||||
|
subheader "Checking autogenerated code is up-to-date"
|
||||||
|
report_build_test Verify_CodeGen ./hack/verify-codegen.sh || failed=1
|
||||||
|
fi
|
||||||
|
# For documentation PRs, just check the md files and run
|
||||||
|
# verify-codegen (as md files can be auto-generated in some repos).
|
||||||
(( IS_DOCUMENTATION_PR )) && return ${failed}
|
(( IS_DOCUMENTATION_PR )) && return ${failed}
|
||||||
# Don't merge these two lines, or return code will always be 0.
|
# Don't merge these two lines, or return code will always be 0.
|
||||||
local go_pkg_dirs
|
local go_pkg_dirs
|
||||||
|
@ -186,13 +192,9 @@ function default_build_test_runner() {
|
||||||
# Remove unused generated binary, if any.
|
# Remove unused generated binary, if any.
|
||||||
rm -f e2e.test
|
rm -f e2e.test
|
||||||
done
|
done
|
||||||
|
|
||||||
local errors_go="$(echo -e "${errors_go1}\n${errors_go2}" | uniq)"
|
local errors_go="$(echo -e "${errors_go1}\n${errors_go2}" | uniq)"
|
||||||
create_junit_xml _build_tests Build_Go "${errors_go}"
|
create_junit_xml _build_tests Build_Go "${errors_go}"
|
||||||
if [[ -f ./hack/verify-codegen.sh ]]; then
|
|
||||||
subheader "Checking autogenerated code is up-to-date"
|
|
||||||
report_build_test Verify_CodeGen ./hack/verify-codegen.sh || failed=1
|
|
||||||
fi
|
|
||||||
# Check that we don't have any forbidden licenses in our images.
|
# Check that we don't have any forbidden licenses in our images.
|
||||||
subheader "Checking for forbidden licenses"
|
subheader "Checking for forbidden licenses"
|
||||||
report_build_test Check_Licenses check_licenses ${go_pkg_dirs} || failed=1
|
report_build_test Check_Licenses check_licenses ${go_pkg_dirs} || failed=1
|
||||||
|
|
Loading…
Reference in New Issue