File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ jobs:
179
179
OS_APPLICATION_CREDENTIAL_SECRET : ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
180
180
181
181
- name : Terraform Apply
182
+ id : tf_apply
182
183
run : |
183
184
for attempt in $(seq 5); do
184
185
if terraform apply -auto-approve; then
@@ -355,6 +356,7 @@ jobs:
355
356
if : inputs.upgrade
356
357
357
358
- name : Tempest tests
359
+ id : tempest
358
360
run : |
359
361
mkdir -p tempest-artifacts
360
362
docker run -t --rm \
@@ -380,13 +382,29 @@ jobs:
380
382
env :
381
383
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
382
384
385
+ - name : Collect diagnostic information
386
+ id : diagnostics
387
+ run : |
388
+ mkdir -p diagnostics
389
+ sudo -E docker run -t --rm \
390
+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
391
+ -v $(pwd)/diagnostics:/stack/diagnostics \
392
+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
393
+ $KAYOBE_IMAGE \
394
+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/diagnostics.yml'
395
+ env :
396
+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
397
+ if : ${{ !cancelled() && steps.tf_apply.outcome == 'success' }}
398
+
383
399
- name : Upload test result artifacts
384
400
uses : actions/upload-artifact@v4
385
401
with :
386
402
name : test-results-${{ inputs.os_distribution }}-${{ inputs.os_release }}-${{ inputs.neutron_plugin }}${{ inputs.upgrade && '-upgrade' || '' }}
387
403
path : |
404
+ diagnostics/
388
405
tempest-artifacts/
389
406
sot-results/
407
+ if : ${{ !cancelled() && (steps.tempest.outcome == 'success' || steps.stackhpc-openstack-tests.outcome == 'success' || steps.diagnostics.outcome == 'success') }}
390
408
391
409
- name : Fail if any Tempest tests failed
392
410
run : |
You can’t perform that action at this time.
0 commit comments