Run CI tests on ubuntu 20.04 #1823
Merged
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.
This PR updates GitHub Actions to use Ubuntu 20.04 for our CI tests. Currently, we are using Ubuntu 16.04 which is officially EOL this month, after which it's not clear how long it's going to supported on CI platforms.
In order to get tests working on Ubuntu 16.04, I had to switch our MPI implementation from OpenMPI to MPICH. We actually just switched to OpenMPI in #1820, but it looks like it's not going to work on Ubuntu 20.04. The problem is that recent versions of OpenMPI do not allow recursive invocations of MPI_Init, and this actually happens in our test suite from the following logic:
Importing mpi4py actually initializes MPI in the current process, and then calling a subprocess with
mpiexecdoes it again. MPICH thankfully handles this fine.There's also a few fixes in here for warnings that are raised when the test suite is run.