All matrix builds were using the same cache key, causing collisions.
pgx puts the postgres data directory in target/pgx-test-data-<pg_ver>,
which the Swatinem/rust-cache action cleans, by removing all its
content, and subsequently caches. This breaks pgx tests, which do not
expect the directory to be empty.
The combination of the cache collisions and incorrect caching caused a
number of build failures, which could only be fixed by removing the
cached artifacts from the GitHub cache.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:
Description
All matrix builds were using the same cache key, causing collisions.
pgx puts the postgres data directory in
target/pgx-test-data-<pg_ver>
, which theSwatinem/rust-cache
action cleans, by removing all its content, and subsequently caches. This breaks pgx tests, which do not expect the directory to be empty.The combination of the cache collisions and incorrect caching caused a number of build failures, which could only be fixed by removing the cached artifacts from the GitHub cache.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:
CHANGELOG entry for user-facing changesUpdated the relevant documentation