wasmtime: disable tests on x86_64-darwin

Remove tests on x86_64-darwin to avoid specific false errors due to
the way Hydra runners are set up for this architecture.

On this platform, on Hydra runners we see: `SIMD support requires
SSE3, SSSE3, SSE4.1, and SSE4.2 on x86_64.` present in all failing
tests.

Thus, do not run tests on this platform to avoid false reports of this
derivation being broken, because Hydra runners are set up in a way
that this CPU features are not available.

An example of automation marking this derivation as broken because the
Hydra runs were reporting failures: 03bc571744.
This commit is contained in:
Rafael Fernández López 2022-08-21 10:44:31 +02:00
parent 8508d5decf
commit 9c59fd919f
No known key found for this signature in database
GPG key ID: A07C55EEE4CCE570

View file

@ -1,4 +1,4 @@
{ rustPlatform, fetchFromGitHub, lib }:
{ rustPlatform, fetchFromGitHub, lib, stdenv }:
rustPlatform.buildRustPackage rec {
pname = "wasmtime";
@ -14,7 +14,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-DnThste0SbBdpGAUYhmwbdQFNEB3LozyDf0X8r2A90Q=";
doCheck = true;
# We disable tests on x86_64-darwin because Hydra runners do not
# support SSE3, SSSE3, SSE4.1 and SSE4.2 at this time. This is
# required by wasmtime. Given this is very specific to Hydra
# runners, just disable tests on this platform, so we don't get
# false positives of this package being broken due to failed runs on
# Hydra (e.g. https://hydra.nixos.org/build/187667794/)
doCheck = (stdenv.system != "x86_64-darwin");
checkFlags = [
"--skip=cli_tests::run_cwasm"
"--skip=commands::compile::test::test_unsupported_flags_compile"