Skip to content

Commit

Permalink
Migrating tekton pipeline integration from prow to tekton
Browse files Browse the repository at this point in the history
This PR allows us to run the tektonCD/pipeline's integration tests on the tekton dogfooding cluster using a pipeline instead of a prow job.
  • Loading branch information
chitrangpatel committed Jan 19, 2023
1 parent 7a18f66 commit 52b6501
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tekton/ci/jobs/e2e-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ spec:
- name: credentials
workspace: credentials
- name: source
workspace: sources
workspace: sources
100 changes: 100 additions & 0 deletions tekton/ci/repos/pipeline/template.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,106 @@
- op: add
path: /spec/resourcetemplates
value:
- apiVersion: tekton.dev/v1beta1
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.23.x
- name: e2e-script
value: test/e2e-tests.sh
- name: e2e-env
value: test/e2e-tests-kind-prow.env
- apiVersion: tekton.dev/v1beta1
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.23.x
- name: e2e-script
value: test/e2e-tests.sh
- name: e2e-env
value: test/e2e-tests-kind-prow-alpha.env
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
Expand Down

0 comments on commit 52b6501

Please sign in to comment.