ScaleComputing / HyperCoreAnsibleCollection

Official Ansible collection for Scale Computing SC//HyperCore (HC3) v1 API
GNU General Public License v3.0
12 stars 8 forks source link

Make examples testing job run after integration tests #236

Closed anazobec closed 1 year ago

anazobec commented 1 year ago

Examples testing job was always run before the integration testing job which made waiting for integration tests to finish even longer then it was supposed to. This pull request fixes this problem by updating the examples-run job to make it run after the integ job finishes regardless of the status.

Jobs examples-run and integ can be found in .github/workflows/integ-test.yml.

Tests:

1. Test if examples-run is run after integ job succeeds:

https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5003937671 Timestamp of the last integration test to succeed (here):

Run echo "Integ time -> $(date +%T)" && exit 0
Integ time -> 13:44:08

Timestamp of the first example test to run (here):

Run echo "Integ time -> $(date +%T)"
Integ time -> 13:44:30

2. Test if examples-run is run after integ job fails:

https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5004006697 Timestamp of the last integration test to fail (here):

Run echo "Integ time -> $(date +%T)" && exit 1
Integ time -> 13:51:26
Error: Process completed with exit code 1.

Timestamp of the first example test to run (here):

Run echo "Integ time -> $(date +%T)"
Integ time -> 13:51:44
justinc1 commented 1 year ago

I will move moved block back to old position, to get smaller diff.

justinc1 commented 1 year ago

integ test for all tests, all examples https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5013334031