53
53
with :
54
54
python-version : ' 3.11'
55
55
56
- - name : Install Python dependencies for otel trace generation
57
- run : |
58
- pip install --no-cache-dir opentelemetry-sdk opentelemetry-exporter-otlp opentelemetry-instrumentation
59
-
60
- - name : Configure OpenTelemetry Collector
61
- run : |
62
- echo '
63
- receivers:
64
- otlp:
65
- protocols:
66
- grpc:
67
- endpoint: "0.0.0.0:4317"
68
- http:
69
- endpoint: "0.0.0.0:4318"
70
- exporters:
71
- otlphttp:
72
- endpoint: https://apps.platform-sts.pcbk.p1.openshiftapps.com
73
- tls:
74
- insecure: false
75
- cert_pem: ${{ secrets.CLIENT_CERT_ROSA_OTEL }}
76
- key_pem: ${{ secrets.CLIENT_KEY_ROSA_OTEL }}
77
- ca_pem: ${{ secrets.SERVER_CERT_ROSA_OTEL }}
78
- logging:
79
- verbosity: detailed
80
- service:
81
- pipelines:
82
- traces:
83
- receivers: [otlp]
84
- exporters: [logging,otlphttp]
85
- ' > otel-collector-config.yaml
86
-
87
- - name : Run OpenTelemetry Collector
88
- run : |
89
- curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.102.1/otelcol_0.102.1_linux_amd64.tar.gz
90
- tar -xvf otelcol_0.102.1_linux_amd64.tar.gz
91
- chmod +x otelcol
92
- ./otelcol --config otel-collector-config.yaml &
93
-
94
- - name : Start integration-tests trace
95
- run : |
96
- export WORKFLOW_NAME="testing_framework"
97
- export STEP_NAME="integration-tests"
98
- export TRACE_ACTION="start"
99
- python ci/trace-steps.py
100
-
101
56
- name : Checkout terraform module
102
57
id : checkout-module
103
58
@@ -116,13 +71,6 @@ jobs:
116
71
run : terraform init
117
72
working-directory : terraform-test-environment-module
118
73
119
- - name : Start bootstrap trace
120
- run : |
121
- export WORKFLOW_NAME="testing_framework"
122
- export STEP_NAME="bootstrap"
123
- export TRACE_ACTION="start"
124
- python ci/trace-steps.py
125
-
126
74
- name : Bootstrap
127
75
id : up
128
76
run : terraform apply -auto-approve -lock=false
@@ -131,13 +79,6 @@ jobs:
131
79
TF_VAR_aws_instance_type : ${{ matrix.aws_image_type }}
132
80
TF_VAR_aws_ami_architecture : ${{ matrix.aws_ami_architecture }}
133
81
134
- - name : End bootstrap trace
135
- run : |
136
- export WORKFLOW_NAME="testing_framework"
137
- export STEP_NAME="bootstrap"
138
- export TRACE_ACTION="end"
139
- python ci/trace-steps.py
140
-
141
82
- name : Terraform Output
142
83
id : terraform-output
143
84
run : |
@@ -148,54 +89,26 @@ jobs:
148
89
149
90
- name : Ansible Collections
150
91
run : ansible-galaxy install -r ./provision/requirements.yml
151
- working-directory : ./main/recipes/natural_language_processing/chatbot
152
-
153
- - name : Start ansible provision trace
154
- run : |
155
- export WORKFLOW_NAME="testing_framework"
156
- export STEP_NAME="ansible-provision"
157
- export TRACE_ACTION="start"
158
- python ci/trace-steps.py
92
+ working-directory : ./recipes/natural_language_processing/chatbot
159
93
160
94
- name : Provision
161
95
run : |
162
- ansible-playbook ./main/ recipes/natural_language_processing/chatbot/provision/playbook.yml \
96
+ ansible-playbook ./recipes/natural_language_processing/chatbot/provision/playbook.yml \
163
97
-i terraform-test-environment-module/hosts.ini \
164
98
--private-key=terraform-test-environment-module/${{ steps.terraform-output.outputs.pem_filename }}
165
99
env :
166
100
ANSIBLE_HOST_KEY_CHECKING : false
167
101
168
- - name : End ansible provision trace
169
- run : |
170
- export WORKFLOW_NAME="testing_framework"
171
- export STEP_NAME="ansible-provision"
172
- export TRACE_ACTION="end"
173
- python ci/trace-steps.py
174
-
175
102
- name : Install Dependencies
176
- working-directory : ./main/ recipes/natural_language_processing/chatbot
103
+ working-directory : ./recipes/natural_language_processing/chatbot
177
104
run : make install
178
105
179
- - name : Start integration test trace
180
- run : |
181
- export WORKFLOW_NAME="testing_framework"
182
- export STEP_NAME="run-integration-tests"
183
- export TRACE_ACTION="start"
184
- python ci/trace-steps.py
185
-
186
106
- name : Run Integration Tests
187
- working-directory : ./main/ recipes/natural_language_processing/chatbot
107
+ working-directory : ./recipes/natural_language_processing/chatbot
188
108
run : make integration-tests
189
109
env :
190
110
URL : ${{ steps.terraform-output.outputs.url }}
191
111
192
- - name : End integration test trace
193
- run : |
194
- export WORKFLOW_NAME="testing_framework"
195
- export STEP_NAME="run-integration-tests"
196
- export TRACE_ACTION="end"
197
- python ci/trace-steps.py
198
-
199
112
- name : Destroy Test Environment
200
113
id : down
201
114
if : always()
@@ -217,13 +130,6 @@ jobs:
217
130
env :
218
131
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
219
132
220
- - name : Stop testing_framework trace
221
- run : |
222
- export WORKFLOW_NAME="testing_framework"
223
- export STEP_NAME="integration-tests"
224
- export TRACE_ACTION="end"
225
- python ci/trace-steps.py
226
-
227
133
release-images :
228
134
runs-on : ubuntu-24.04
229
135
needs : integration-tests
@@ -272,53 +178,10 @@ jobs:
272
178
with :
273
179
python-version : ' 3.11'
274
180
275
- - name : Install Python dependencies for otel trace generation
276
- run : |
277
- pip install --no-cache-dir opentelemetry-sdk opentelemetry-exporter-otlp opentelemetry-instrumentation
278
-
279
- - name : Configure OpenTelemetry Collector
280
- run : |
281
- echo '
282
- receivers:
283
- otlp:
284
- protocols:
285
- grpc:
286
- endpoint: "0.0.0.0:4317"
287
- exporters:
288
- logging:
289
- loglevel: debug
290
- service:
291
- pipelines:
292
- traces:
293
- receivers: [otlp]
294
- exporters: [logging]
295
- ' > otel-collector-config.yaml
296
-
297
- - name : Run OpenTelemetry Collector
298
- run : |
299
- curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.102.1/otelcol_0.102.1_linux_amd64.tar.gz
300
- tar -xvf otelcol_0.102.1_linux_amd64.tar.gz
301
- chmod +x otelcol
302
- ./otelcol --config otel-collector-config.yaml &
303
-
304
- - name : Start chatbot make bootc trace
305
- run : |
306
- export WORKFLOW_NAME="testing_framework"
307
- export STEP_NAME="test-make-targets"
308
- export TRACE_ACTION="start"
309
- python ci/trace-steps.py
310
-
311
181
- name : chatbot
312
182
working-directory : ./recipes/natural_language_processing/chatbot
313
183
run : make bootc
314
184
315
- - name : End chatbot make bootc trace
316
- run : |
317
- export WORKFLOW_NAME="testing_framework"
318
- export STEP_NAME="test-make-targets"
319
- export TRACE_ACTION="end"
320
- python ci/trace-steps.py
321
-
322
185
- name : Publish Job Results to Slack
323
186
id : slack
324
187
if : always()
0 commit comments