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

Update e2e Test Config Task. #1223

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
77 changes: 59 additions & 18 deletions .konflux/tekton/bundle-e2e-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ spec:
type: string
- description: Namespace where the the Operator bundle will be deployed.
name: NAMESPACE
default: default
default: openshift-operators
type: string
- name: image
type: string
default: quay.io/openshift-pipeline/ci:latest
- name: repo_url
type: string
default: https://github.com/pramodbindal/release-tests
- name: revision
type: string
default: master

tasks:
- name: parse-metadata
taskRef:
Expand Down Expand Up @@ -103,7 +113,6 @@ spec:
- provision-cluster
params:
- name: bundleImage
# value: quay.io/redhat-user-workloads/tekton-ecosystem-tenant/operator-main/bundle:on-pr-50f60424789114acc5c6644cbea516e475c439d0
value: "$(tasks.parse-metadata.results.component-container-image)"
- name: namespace
value: "$(params.NAMESPACE)"
Expand Down Expand Up @@ -149,7 +158,6 @@ spec:
- "$(params.namespace)"
- "$(params.bundleImage)"
- name: e2e-test
description: Placeholder task that prints the Snapshot and outputs standard TEST_OUTPUT
runAfter:
- deploy-operator
params:
Expand All @@ -161,10 +169,34 @@ spec:
volumes:
- name: credentials
emptyDir: { }
results:
- name: TEST_OUTPUT
description: Test output
- name: source
emptyDir: { }
stepTemplate:
volumeMounts:
- name: source
mountPath: /source
- name: credentials
mountPath: /credentials
steps:
- name: create-repo
image: $(params.image)
script: |
mkdir -p /source/repo
chmod 777 /source/repo
- name: fetch-repo
ref:
resolver: http
params:
- name: url
value: https://raw.githubusercontent.com/openshift-pipelines/tektoncd-catalog/p/stepactions/stepaction-git-clone/0.4.1/stepaction-git-clone.yaml
params:
- name: OUTPUT_PATH
value: /source/repo
- name: URL
value: $(params.repo_url)
- name: REVISION
value: $(params.revision)

- name: get-kubeconfig
ref:
resolver: git
Expand All @@ -182,19 +214,28 @@ spec:
value: "$(tasks.provision-cluster.results.clusterName)"
- name: credentials
value: credentials
- name: e2e
image: quay.io/openshift-pipeline/ci:latest

- name: configure-tekton-config
image: $(params.image)
workingDir: /source/repo
env:
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
key: github-token
name: github
optional: true
script: |
gauge run --tags="" --log-level=debug --verbose specs/konflux-olm.spec

- name: run-e2e-tests
image: $(params.image)
workingDir: /source/repo
env:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
- name: KUBECONFIG
value: "/credentials/$(steps.get-kubeconfig.results.kubeconfig)"
volumeMounts:
- name: credentials
mountPath: /credentials
script: |
#!/usr/bin/env bash
set -ex -u -o pipefail

git clone https://github.com/openshift-pipelines/release-tests.git
gauge run --tags="" --log-level=debug --verbose release-tests/specs/pipelines || true
gauge run --tags="" --log-level=debug --verbose specs/pipelines/
gauge run --tags="" --log-level=debug --verbose specs/metrics/