Skip to content

Commit 6862ded

Browse files
committed
Merge branch 'mco-merge'
2 parents b550413 + b3273fa commit 6862ded

File tree

378 files changed

+41232
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+41232
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run E2E Fork
2+
jobs:
3+
- template: display-github-context
4+
- template: setup
5+
# dependabot gets a read only github token, and so must use pull_request_target instead of pull_request.
6+
if: contains(github.event.pull_request.labels.*.name, 'dependencies') || contains(github.event.pull_request.labels.*.name, 'safe-to-test')
7+
steps:
8+
- template: cancel-previous
9+
- template: checkout-fork
10+
- template: setup-and-install-python
11+
- template: quay-login
12+
- template: set-up-qemu
13+
- template: build-and-push-development-images
14+
- template: tests
15+
steps:
16+
- template: cancel-previous
17+
- template: checkout-fork
18+
- template: set-run-status
19+
- template: setup-and-install-python
20+
- template: setup-kind-cluster
21+
if: steps.last_run_status.outputs.last_run_status != 'success'
22+
- template: run-test-matrix
23+
- template: save-run-status
24+
- template: dump-and-upload-diagnostics
25+
26+
events:
27+
- template: pull-request-target
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run E2E
2+
jobs:
3+
- template: display-github-context
4+
- template: setup
5+
# run on master, or if a PR is being created from a branch, or if it has been manually triggered.
6+
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
7+
steps:
8+
- template: cancel-previous
9+
- template: checkout
10+
- template: setup-and-install-python
11+
- template: quay-login
12+
- template: set-up-qemu
13+
- template: build-and-push-development-images
14+
- template: tests
15+
steps:
16+
- template: cancel-previous
17+
- template: checkout
18+
- template: set-run-status
19+
- template: setup-and-install-python
20+
- template: setup-kind-cluster
21+
if: steps.last_run_status.outputs.last_run_status != 'success'
22+
- template: run-test-matrix
23+
- template: save-run-status
24+
- template: dump-and-upload-diagnostics
25+
26+
events:
27+
- template: on-pull-request-master
28+
- template: on-push-master
29+
- template: workflow-dispatch
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run Single E2E
2+
jobs:
3+
- template: display-github-context
4+
- template: setup
5+
steps:
6+
- template: checkout
7+
- template: setup-and-install-python
8+
- template: quay-login
9+
- template: set-up-qemu
10+
- template: build-and-push-development-images
11+
- template: single-test
12+
steps:
13+
- template: checkout
14+
- template: setup-and-install-python
15+
- template: setup-kind-cluster
16+
- template: run-test-single
17+
- template: dump-and-upload-diagnostics-always
18+
19+
events:
20+
- template: single-e2e-workflow-dispatch
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pull_request:
2+
branches:
3+
- master
4+
paths-ignore:
5+
- 'docs/**'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
push:
2+
branches:
3+
- master
4+
paths-ignore:
5+
- 'docs/**'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# pull_request_target means that the secrets of this repo will be used.
2+
pull_request_target:
3+
types: [labeled]
4+
branches:
5+
- master
6+
paths-ignore:
7+
- 'docs/**'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
workflow_dispatch:
2+
inputs:
3+
distro:
4+
description: 'Distro to run test'
5+
required: true
6+
default: "ubuntu"
7+
test-name:
8+
description: 'Name of test to run'
9+
required: true
10+
cluster-wide:
11+
description: 'Whether or not the test is cluster wide'
12+
required: true
13+
default: "false"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
workflow_dispatch: {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
action-context:
2+
if: always()
3+
runs-on: ubuntu-latest
4+
steps:
5+
- name: Dump GitHub context
6+
env:
7+
GITHUB_CONTEXT: ${{ toJSON(github) }}
8+
run: echo "$GITHUB_CONTEXT"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
setup:
2+
runs-on: ubuntu-latest
3+
strategy:
4+
fail-fast: false
5+
matrix:
6+
include:
7+
- pipeline-argument: operator
8+
- pipeline-argument: version-upgrade-hook
9+
- pipeline-argument: readiness-probe
10+
- pipeline-argument: agent
11+
- pipeline-argument: e2e

0 commit comments

Comments
 (0)