Skip to content

Commit

Permalink
chore: add presubmit job for func unit tests (#115)
Browse files Browse the repository at this point in the history
Adds a job for func unit tests. Doing this incrementally so that one
issue at a time can be debugged.

Signed-off-by: Lance Ball <[email protected]>
  • Loading branch information
lance committed Jun 26, 2023
1 parent ae122a4 commit e513e97
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions prow/jobs/generated/knative/func-main.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,28 @@ periodics:
path: /sys/fs/cgroup
type: Directory
name: cgroup
presubmits:
knative/func:
- always_run: true
branches:
- ^main$
cluster: prow-build
decorate: true
name: unit-tests_func_main
path_alias: knative.dev/func
rerun_command: /test unit-tests
spec:
containers:
- command:
- runner.sh
- ./test/presubmit-tests.sh
- --unit-tests
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20230616-086ddd644
name: ""
resources: {}
securityContext:
privileged: true
nodeSelector:
kubernetes.io/arch: amd64
type: testing
trigger: ((?m)^/test( | .* )unit-tests,?($|\s.*))|((?m)^/test( | .* )unit-tests_func_main,?($|\s.*))
5 changes: 5 additions & 0 deletions prow/jobs_config/knative/func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ branches: [main]
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20230616-086ddd644

jobs:
- name: unit-tests
types: [presubmit]
command: [runner.sh, ./test/presubmit-tests.sh, --unit-tests]
excluded_requirements: [gcp]

- name: nightly
types: [periodic]
command: [runner.sh, ./hack/release.sh, --publish, --tag-release,
Expand Down

0 comments on commit e513e97

Please sign in to comment.