Skip to content

Commit

Permalink
upgrade to latest dependencies (#2841)
Browse files Browse the repository at this point in the history
bumping knative.dev/hack 403114f...f2f9b6f:
  > f2f9b6f Vendorless docs (# 324)
  > 46659bc Update actions (# 323)

Signed-off-by: Knative Automation <[email protected]>
  • Loading branch information
knative-automation authored Sep 27, 2023
1 parent 0f52db7 commit 6cf4b05
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ require (
k8s.io/gengo v0.0.0-20221011193443-fad74ee6edd9
k8s.io/klog/v2 v2.80.2-0.20221028030830-9ae4992afb54
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2
knative.dev/hack v0.0.0-20230925170847-403114ff3229
knative.dev/hack v0.0.0-20230926181829-f2f9b6f91263
sigs.k8s.io/yaml v1.3.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 h1:+70TFaan3hfJzs+7VK2o+O
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280/go.mod h1:+Axhij7bCpeqhklhUTe3xmOn6bWxolyZEeyaFpjGtl4=
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2 h1:GfD9OzL11kvZN5iArC6oTS7RTj7oJOIfnislxYlqTj8=
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
knative.dev/hack v0.0.0-20230925170847-403114ff3229 h1:dPLHHKeP7t5aKlAJMSRMWwz9EeK6BaQjjMBpjtJJewA=
knative.dev/hack v0.0.0-20230925170847-403114ff3229/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/hack v0.0.0-20230926181829-f2f9b6f91263 h1:e6r9J1YopzSh6tDCpyKhVBfRUlZ2r0KRo9wupRjdRF4=
knative.dev/hack v0.0.0-20230926181829-f2f9b6f91263/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
pgregory.net/rapid v1.0.0 h1:iQaM2w5PZ6xvt6x7hbd7tiDS+nk7YPp5uCaEba+T/F4=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
Expand Down
31 changes: 21 additions & 10 deletions vendor/knative.dev/hack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ entrypoint functionality.

This is a helper script to run the presubmit tests. To use it:

1. Source this script.
1. Source this script:
```bash
source "$(go run knative.dev/hack/cmd/script presubmit-tests.sh)"
```

1. [optional] Define the function `build_tests()`. If you don't define this
function, the default action for running the build tests is to:
- run `go build` on the entire repo
- run `/hack/verify-codegen.sh` (if it exists)
- run `hack/verify-codegen.sh` (if it exists)
- check licenses in all go packages
1. [optional] Customize the default build test runner, if you're using it. Set
Expand Down Expand Up @@ -70,7 +73,7 @@ skipped.
### Sample presubmit test script
```bash
source vendor/knative.dev/hack/presubmit-tests.sh
source "$(go run knative.dev/hack/cmd/script presubmit-tests.sh)"

function post_build_tests() {
echo "Cleaning up after build tests"
Expand Down Expand Up @@ -99,7 +102,10 @@ This is a helper script for Knative E2E test scripts. To use it:
[here](https://github.com/knative/toolbox/blob/main/kntest/pkg/kubetest2/gke/README.md) to the `initialize` function
call if the default values don't fit your needs.
1. Source the script.
1. Source the script:
```bash
source "$(go run knative.dev/hack/cmd/script e2e-tests.sh)"
```
1. [optional] Write the `knative_setup()` function, which will set up your
system under test (e.g., Knative Serving).
Expand Down Expand Up @@ -166,8 +172,7 @@ for Knative Serving to be up before running the tests. It also requires that the
test cluster is created in a specific region, `us-west2`.
```bash

source vendor/knative.dev/hack/e2e-tests.sh
source "$(go run knative.dev/hack/cmd/script e2e-tests.sh)"
function knative_setup() {
start_latest_knative_serving
Expand Down Expand Up @@ -201,7 +206,10 @@ This is a helper script for Knative performance test scripts. In combination
with specific Prow jobs, it can automatically manage the environment for running
benchmarking jobs for each repo. To use it:
1. Source the script.
1. Source the script:
```bash
source "$(go run knative.dev/hack/cmd/script performance-tests.sh)"
```
1. [optional] Customize GCP project settings for the benchmarks. Set the
following environment variables if the default value doesn't fit your needs:
Expand Down Expand Up @@ -238,7 +246,7 @@ benchmarking jobs for each repo. To use it:
This script will update `Knative serving` and the given benchmark.
```bash
source vendor/knative.dev/hack/performance-tests.sh
source "$(go run knative.dev/hack/cmd/script performance-tests.sh)"
function update_knative() {
echo ">> Updating serving"
Expand All @@ -257,7 +265,10 @@ main $@
This is a helper script for Knative release scripts. To use it:
1. Source the script.
1. Source the script:
```bash
source "$(go run knative.dev/hack/cmd/script release.sh)"
```
1. [optional] By default, the release script will run
`./test/presubmit-tests.sh` as the release validation tests. If you need to
Expand Down Expand Up @@ -313,7 +324,7 @@ This is a helper script for Knative release scripts. To use it:
### Sample release script
```bash
source vendor/knative.dev/hack/release.sh
source "$(go run knative.dev/hack/cmd/script release.sh)"
function build_release() {
# config/ contains the manifests
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ k8s.io/utils/net
k8s.io/utils/pointer
k8s.io/utils/strings/slices
k8s.io/utils/trace
# knative.dev/hack v0.0.0-20230925170847-403114ff3229
# knative.dev/hack v0.0.0-20230926181829-f2f9b6f91263
## explicit; go 1.18
knative.dev/hack
# sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2
Expand Down

0 comments on commit 6cf4b05

Please sign in to comment.