core/lib/tests/nix-for-tests.nix

15 lines
554 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{ pkgs }:
2024-05-01 22:14:04 +00:00
# The aws-sdk-cpp tests are flaky. Since pull requests to staging
# cause nix to be rebuilt, this means that staging PRs end up
# getting false CI failures due to whatever is flaky in the AWS
# SDK tests. Since none of our CI needs to (or should be able to)
# contact AWS S3, let's just omit it all from the Nix that runs
# CI. Bonus: the tests build way faster.
#
# See also: https://github.com/NixOS/nix/issues/7582
2024-06-30 08:16:52 +00:00
builtins.mapAttrs (
_: pkg: if builtins.isAttrs pkg then pkg.override { withAWS = false; } else pkg
) pkgs.nixVersions