mirror of https://github.com/hashicorp/boundary
ci(test): Remove matrix for running tests per package (#3200)
The original motivation for the matrix was to mitigate an issue some tests failing that used a vault docker container. When the tests ran in a single step, these tests would almost always fail. By splitting the tests per package, the failure rate of these tests was around 20%. GitHub was able to identify the cause. There was an issue with localhost resolution that causes requests to the vault containers to sometimes fail, resulting in the kinds of failures that were seen. Note that the same issue was not seen when accessing the test postgres database that was running in a container, since the test code connects via 127.0.0.1, while the vault container used localhost. This commit includes the recommended fix so that localhost name resolution works as expected on the GitHub hosted runners. It also removes the test matrix since it is no longer needed as a work around. In addition it seems advisable to remove the matrix given the recent discovery that some tests were not running with the matrix. While this was fixed, removing the matrix reduces the risk of any future mistakes from the test splitting. This also seems to result in a faster pipeline execution time. The overhead to determine the matrix values, wait for a runner to be available, and restore from the cache seems to add up to a longer overall execution time. Eliminating the matrix can also help with another type of failure seen. Sometimes restoring from the cache fails. By eliminating the test matrix, it will greatly reduce the number of cache restoring done by the workflow, which will reduce the chances of an issue restoring from cache. The only remaining benefit from the matrix, was that if there was a transient test failure, a re-run of only the failed jobs would be relatively quick (depending on which package had the failure), while without the matrix the entire test suite will need to be re-run. See: https://github.com/hashicorp/boundary/pull/3199 Refs:pull/3202/head86214a85e1e04438b7f8
parent
a2f8d87bfb
commit
7f7a5ac9c3
Loading…
Reference in new issue