-
Notifications
You must be signed in to change notification settings - Fork 30
158 lines (150 loc) · 4.91 KB
/
integration-tests.yml
File metadata and controls
158 lines (150 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
name: Collector Integration Tests
on:
workflow_call:
inputs:
collector-tag:
description: |
Tag used for running the integration tests
type: string
required: true
collector-qa-tag:
description: |
Tag used for QA containers
type: string
required: true
collector-tests-tag:
description: |
Tag used for the test container
type: string
required: true
job-tag:
description: |
Used to differentiate between different sources when creating
VMs in GCP.
type: string
default: ""
collector-repo:
description: |
Optional repository to use for the collector image
type: string
default: "quay.io/rhacs-eng/collector"
is-konflux:
description: |
Marker for workflows triggered for a konflux build.
These builds don't support multiarch, so it should only run x86
tests
type: boolean
default: false
large-box:
description: |
Marker for workflows that suppose to run tests on nodes with large
number of CPU cores.
type: boolean
default: false
jobs:
amd64-integration-tests:
uses: ./.github/workflows/integration-tests-vm-type.yml
strategy:
# ensure that if one part of the matrix fails, the
# rest will continue
fail-fast: false
matrix:
vm_type:
- rhcos
- ubuntu-os
- cos
- flatcar
- fedora-coreos
- rhel
- rhel-sap
- sles
- garden-linux
with:
vm_type: ${{ matrix.vm_type }}
collector-tag: ${{ inputs.collector-tag }}
collector-qa-tag: ${{ inputs.collector-qa-tag }}
collector-tests-tag: ${{ inputs.collector-tests-tag }}
job-tag: ${{ inputs.job-tag }}
collector-repo: ${{ inputs.collector-repo }}
secrets: inherit
amd64-integration-tests-large-box:
uses: ./.github/workflows/integration-tests-vm-type.yml
if: contains(github.event.pull_request.labels.*.name, 'large-box-integration-tests') || inputs.large-box
strategy:
# ensure that if one part of the matrix fails, the
# rest will continue
fail-fast: false
matrix:
vm_type:
- fedora-coreos-large-node
with:
vm_type: ${{ matrix.vm_type }}
collector-tag: ${{ inputs.collector-tag }}
collector-qa-tag: ${{ inputs.collector-qa-tag }}
collector-tests-tag: ${{ inputs.collector-tests-tag }}
job-tag: ${{ inputs.job-tag }}
collector-repo: ${{ inputs.collector-repo }}
secrets: inherit
arm64-integration-tests:
uses: ./.github/workflows/integration-tests-vm-type.yml
if: |
github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds')
strategy:
# ensure that if one part of the matrix fails, the
# rest will continue
fail-fast: false
matrix:
vm_type:
- rhel-arm64
- ubuntu-arm
- sles-arm64
- fcarm
with:
vm_type: ${{ matrix.vm_type }}
collector-tag: ${{ inputs.collector-tag }}
collector-qa-tag: ${{ inputs.collector-qa-tag }}
collector-tests-tag: ${{ inputs.collector-tests-tag }}
job-tag: ${{ inputs.job-tag }}
collector-repo: ${{ inputs.collector-repo }}
secrets: inherit
s390x-integration-tests:
uses: ./.github/workflows/integration-tests-vm-type.yml
with:
vm_type: rhel-s390x
collector-tag: ${{ inputs.collector-tag }}
collector-qa-tag: ${{ inputs.collector-qa-tag }}
collector-tests-tag: ${{ inputs.collector-tests-tag }}
job-tag: ${{ inputs.job-tag }}
collector-repo: ${{ inputs.collector-repo }}
secrets: inherit
ppc64le-integration-tests:
uses: ./.github/workflows/integration-tests-vm-type.yml
with:
vm_type: rhel-ppc64le
collector-tag: ${{ inputs.collector-tag }}
collector-qa-tag: ${{ inputs.collector-qa-tag }}
collector-tests-tag: ${{ inputs.collector-tests-tag }}
job-tag: ${{ inputs.job-tag }}
collector-repo: ${{ inputs.collector-repo }}
secrets: inherit
notify:
runs-on: ubuntu-24.04
if: always() && contains(join(needs.*.result, ','), 'failure') && github.event_name != 'pull_request'
needs:
- amd64-integration-tests
- arm64-integration-tests
- s390x-integration-tests
- ppc64le-integration-tests
steps:
- name: Slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_COLLECTOR_ONCALL_WEBHOOK }}
SLACK_CHANNEL: team-acs-collector-oncall
SLACK_COLOR: failure
SLACK_LINK_NAMES: true
SLACK_TITLE: "Integration tests failed."
MSG_MINIMAL: actions url,commit
SLACK_MESSAGE: |
@acs-collector-oncall