python3Packages.torchaudio: disable RAM intensive test

This test alone baloons the memory usage of the pytest process to
something like 20GB, which makes torchaudio effectively unbuildable
on the kind of machines most people actually have, especially aarch64.

With it skipped, the whole thing still peaks at something like 15GB,
but that at least puts us under 16GB+zram which is a best-case potato
system setup.
This commit is contained in:
K900
2026-08-09 14:48:48 +03:00
parent 02d24ee379
commit 71b8bfefd1

View File

@@ -117,10 +117,6 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
disabledTestPaths = [
# Require internet access
"test/integration_tests"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Passes, but hangs the build after Pytest completes
"test/torchaudio_unittest/models/models_test.py::TestConvTasNet"
];
disabledTests = [
@@ -140,6 +136,9 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
"AutogradCPUTest"
"TestAutogradLfilterCPU"
"TestWav2Vec2Model"
# Massive RAM usage
"TestConvTasNet"
]
++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [
# AssertionError: Tensor-likes are not close!