Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More tests for Backstage #508

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ periodics:
value: "true"
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240814-5855b4567
name: ""
resources: {}
resources:
limits:
memory: 16Gi
requests:
memory: 12Gi
securityContext:
privileged: true
volumeMounts:
Expand Down Expand Up @@ -95,7 +99,11 @@ periodics:
value: "true"
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240814-5855b4567
name: ""
resources: {}
resources:
limits:
memory: 16Gi
requests:
memory: 12Gi
securityContext:
privileged: true
volumeMounts:
Expand Down Expand Up @@ -166,7 +174,11 @@ periodics:
value: "true"
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240814-5855b4567
name: ""
resources: {}
resources:
limits:
memory: 16Gi
requests:
memory: 12Gi
securityContext:
privileged: true
volumeMounts:
Expand Down Expand Up @@ -226,10 +238,83 @@ presubmits:
- --build-tests
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240814-5855b4567
name: ""
resources: {}
resources:
limits:
memory: 16Gi
requests:
memory: 12Gi
securityContext:
privileged: true
nodeSelector:
kubernetes.io/arch: amd64
type: testing
trigger: ((?m)^/test( | .* )build-tests,?($|\s.*))|((?m)^/test( | .* )build-tests_backstage-plugins_main,?($|\s.*))
- always_run: true
branches:
- ^main$
cluster: prow-build
decorate: true
name: unit-tests_backstage-plugins_main
path_alias: knative.dev/backstage-plugins
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:v20240814-5855b4567
name: ""
resources:
limits:
memory: 10Gi
requests:
memory: 8Gi
securityContext:
privileged: true
nodeSelector:
kubernetes.io/arch: amd64
type: testing
trigger: ((?m)^/test( | .* )unit-tests,?($|\s.*))|((?m)^/test( | .* )unit-tests_backstage-plugins_main,?($|\s.*))
- always_run: true
branches:
- ^main$
cluster: prow-build
decorate: true
name: e2e-tests_backstage-plugins_main
path_alias: knative.dev/backstage-plugins
rerun_command: /test e2e-tests
spec:
containers:
- command:
- runner.sh
- ./test/presubmit-tests.sh
- --run-test
- ./test/e2e-tests.sh
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
image: us-docker.pkg.dev/knative-tests/images/prow-tests:v20240814-5855b4567
name: ""
resources:
limits:
memory: 16Gi
requests:
memory: 12Gi
securityContext:
privileged: true
volumeMounts:
- mountPath: /etc/test-account
name: test-account
readOnly: true
nodeSelector:
kubernetes.io/arch: amd64
type: testing
volumes:
- name: test-account
secret:
items:
- key: service-account-key.json
path: service-account.json
secretName: prow-google-credentials
trigger: ((?m)^/test( | .* )e2e-tests,?($|\s.*))|((?m)^/test( | .* )e2e-tests_backstage-plugins_main,?($|\s.*))
24 changes: 24 additions & 0 deletions prow/jobs_config/knative-extensions/backstage-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ jobs:
command: [runner.sh, ./test/presubmit-tests.sh, --build-tests]
excluded_requirements: [gcp]

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

- name: e2e-tests
types: [presubmit]
command: [runner.sh, ./test/presubmit-tests.sh, --run-test, ./test/e2e-tests.sh]

- name: continuous
types: [periodic]
command: [runner.sh, ./test/presubmit-tests.sh, --all-tests]
Expand All @@ -28,3 +38,17 @@ jobs:
requirements: [release, docker]
excluded_requirements: [gcp]
max_concurrency: 1

resources: high
resources_presets:
high:
limits:
memory: 16Gi
requests:
memory: 12Gi

default:
limits:
memory: 10Gi
requests:
memory: 8Gi
aliok marked this conversation as resolved.
Show resolved Hide resolved
Loading