-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create GitHub Actions workflow for running tests #944
Conversation
Only sanity and unit tests for now.
It looks like this is running the docker and podman tests? This is fantastic. The whole thing ran in under 5 minutes too. |
Yup, just running the tests in a VM hosted by GitHub Actions. Ideally we would run those tests in our test container, but I haven't worked how to run |
Adding the image build steps brings overall execution up to a little over nine minutes. Not too bad, but building that image every time is costly. |
Note for @shanemcd and myself to review this after the holidays to make sure we would be covered on both GHA side and Zuul side (global job references?). |
FYI, there are references to some of the runner jobs in the |
I tried to validate that we were actually using the image created from the new GHA job that creates the image for the integration tests. I expected PR #960 to fail the integration tests, but they did not (and it does seem the exception is being written to the proper location for the callback in the container image). It might be explained by the comment left by @AlanCoding. I know @samdoran put a lot of work into this (thanks Sam!), but given that this doesn't seem to be testing the image created from the PR in the integration tests, I'm not on board with merging this. |
I believe that I've now found a way to make this work properly for integration tests. I'll be updating this PR. |
Add GHA CI workflow. Includes sanity, unit, and integration tests. Co-authored-by: David Shrewsbury <dshrewsb@redhat.com> (cherry picked from commit 16cc1fe)
Add GHA CI workflow. Includes sanity, unit, and integration tests. Co-authored-by: David Shrewsbury <dshrewsb@redhat.com> (cherry picked from commit 16cc1fe)
Remove ansible-runner project ansible-runner is moving to using GHA for its CI (ansible/ansible-runner#944) and will not be using Zuul at all going forward. Reviewed-by: None <None>
[backport] [release_2.1] Create GitHub Actions workflow for running tests (#944) Add GHA CI workflow. Includes sanity, unit, and integration tests. Backport of #944 Co-authored-by: David Shrewsbury dshrewsb@redhat.com (cherry picked from commit 16cc1fe) Reviewed-by: Alexander Sowitzki <dev@eqrx.net> Reviewed-by: None <None>
[backport] [release_2.0] Create GitHub Actions workflow for running tests (#944) Add GHA CI workflow. Includes sanity, unit, and integration tests. Backport of #944 Co-authored-by: David Shrewsbury dshrewsb@redhat.com (cherry picked from commit 16cc1fe) Reviewed-by: Alexander Sowitzki <dev@eqrx.net> Reviewed-by: None <None>
Run sanity, unit, and integration tests in GitHub actions. We should be able to disable some Zuul jobs after merging this.
Also upload code coverage reports.
We may want to look at a matrix of Python version X Ansible version. Currently it only tests one Ansible version per Python version.