Idea: Unify CI tests in to single strategy #10842
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I had an idea based on my investigations in #10835 that all the CI Tests could be unified in to a single strategy, where as currently they are split across two "Ubuntu & Mac" and "Windows".
The main advantage of this would be the fast fail behavior, when a test fails in a strategy and "fast-fail" is set to True it cancels all other jobs in that same strategy. So all tests would be cancelled, not just "Ubuntu & Mac" or "Windows"
To simplify the logic this PR splits test groups in to 3 (where as they are currently 1 for Ubuntu and Mac and 2 for Windows): Unit, Integration 1, Integration 2. This PR also includes the additional different time zone runs from #10835
To achieve unification I set the TEMP environmental variable for Windows RAM Disk on the command line rather than the using
env
parameter in the run steps. I use exclude to specify whether Windows Python 3.8 and 3.9 are not required, and I use include to specify the additional tests under different time zones: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-additional-values-in-combinationsLet me know if you like the look of this, fully or partially. It's just an idea I had and I'm not attached to it so feel free to reject also.