Skip to content

Commit

Permalink
More tests for Backstage (#508)
Browse files Browse the repository at this point in the history
* More tests for Backstage

* More tests for Backstage

* Update codegen

* Reduce used resources
  • Loading branch information
aliok authored Aug 22, 2024
1 parent b2530ba commit f56ead3
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 4 deletions.
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: 10Gi
requests:
memory: 8Gi
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: 10Gi
requests:
memory: 8Gi
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: 10Gi
requests:
memory: 8Gi
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: 10Gi
requests:
memory: 8Gi
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: 10Gi
requests:
memory: 8Gi
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.*))
18 changes: 18 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,11 @@ jobs:
requirements: [release, docker]
excluded_requirements: [gcp]
max_concurrency: 1

resources: default
resources_presets:
default:
limits:
memory: 10Gi
requests:
memory: 8Gi

0 comments on commit f56ead3

Please sign in to comment.