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

Migrate tektoncd/Pipeline integration tests from prow to tekton #1292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion tekton/ci/jobs/e2e-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ spec:
- name: credentials
workspace: credentials
- name: source
workspace: sources
workspace: sources
152 changes: 151 additions & 1 deletion tekton/ci/repos/pipeline/template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,157 @@
- op: add
path: /spec/resourcetemplates
value:
- apiVersion: tekton.dev/v1beta1
- apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: run-integration-tests-
labels:
prow.k8s.io/build-id: $(tt.params.buildUUID)
tekton.dev/source-event-id: $(tt.params.sourceEventId)
tekton.dev/check-name: pull-tekton-pipeline-integration-tests-df
tekton.dev/kind: ci
tekton.dev/pr-number: $(tt.params.pullRequestNumber)
annotations:
tekton.dev/gitRevision: "$(tt.params.gitRevision)"
tekton.dev/gitURL: "$(tt.params.gitRepository)"
spec:
serviceAccountName: tekton-ci-jobs
workspaces:
- name: sources
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: credentials
secret:
secretName: "release-secret"
pipelineRef:
name: kind-e2e
params:
- name: pullRequestNumber
value: $(tt.params.pullRequestNumber)
- name: pullRequestBaseRef
value: $(tt.params.pullRequestBaseRef)
- name: gitRepository
value: "$(tt.params.gitRepository)"
- name: gitCloneDepth
value: $(tt.params.gitCloneDepth)
- name: fileFilterRegex
value: '^(cmd/|examples/|images/|pkg/|test/|go\.)'
- name: checkName
value: pull-tekton-pipeline-integration-tests-df
- name: gitHubCommand
value: $(tt.params.gitHubCommand)
- name: k8s-version
value: v1.24.x
- name: e2e-script
value: test/e2e-tests.sh
- name: e2e-env
value: test/e2e-tests-kind-prow.env
- apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: run-alpha-integration-tests-
labels:
prow.k8s.io/build-id: $(tt.params.buildUUID)
tekton.dev/source-event-id: $(tt.params.sourceEventId)
tekton.dev/check-name: pull-tekton-pipeline-alpha-integration-tests-df
tekton.dev/kind: ci
tekton.dev/pr-number: $(tt.params.pullRequestNumber)
annotations:
tekton.dev/gitRevision: "$(tt.params.gitRevision)"
tekton.dev/gitURL: "$(tt.params.gitRepository)"
spec:
serviceAccountName: tekton-ci-jobs
workspaces:
- name: sources
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: credentials
secret:
secretName: "release-secret"
pipelineRef:
name: kind-e2e
params:
- name: pullRequestNumber
value: $(tt.params.pullRequestNumber)
- name: pullRequestBaseRef
value: $(tt.params.pullRequestBaseRef)
- name: gitRepository
value: "$(tt.params.gitRepository)"
- name: gitCloneDepth
value: $(tt.params.gitCloneDepth)
- name: fileFilterRegex
value: '^(cmd/|examples/|images/|pkg/|test/|go\.)'
- name: checkName
value: pull-tekton-pipeline-alpha-integration-tests-df
- name: gitHubCommand
value: $(tt.params.gitHubCommand)
- name: k8s-version
value: v1.24.x
- name: e2e-script
value: test/e2e-tests.sh
- name: e2e-env
value: test/e2e-tests-kind-prow-alpha.env
- apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: run-beta-integration-tests-
labels:
prow.k8s.io/build-id: $(tt.params.buildUUID)
tekton.dev/source-event-id: $(tt.params.sourceEventId)
tekton.dev/check-name: pull-tekton-pipeline-beta-integration-tests-df
tekton.dev/kind: ci
tekton.dev/pr-number: $(tt.params.pullRequestNumber)
annotations:
tekton.dev/gitRevision: "$(tt.params.gitRevision)"
tekton.dev/gitURL: "$(tt.params.gitRepository)"
spec:
serviceAccountName: tekton-ci-jobs
workspaces:
- name: sources
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: credentials
secret:
secretName: "release-secret"
pipelineRef:
name: kind-e2e
params:
- name: pullRequestNumber
value: $(tt.params.pullRequestNumber)
- name: pullRequestBaseRef
value: $(tt.params.pullRequestBaseRef)
- name: gitRepository
value: "$(tt.params.gitRepository)"
- name: gitCloneDepth
value: $(tt.params.gitCloneDepth)
- name: fileFilterRegex
value: '^(cmd/|examples/|images/|pkg/|test/|go\.)'
- name: checkName
value: pull-tekton-pipeline-beta-integration-tests-df
- name: gitHubCommand
value: $(tt.params.gitHubCommand)
- name: k8s-version
value: v1.24.x
- name: e2e-script
value: test/e2e-tests.sh
- name: e2e-env
value: test/e2e-tests-kind-prow-beta.env
- apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: run-go-coverage-
Expand Down