Commit 4a6db62c authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Shrink sidechain envelope test's sample count to fix a ~5min CI stall

filtfilt's cost scales with sample count, not just CPU SIMD support - the
original sr=8000 (16k total samples) took ~5 minutes on CI's runner alone
(likely memory pressure from the torch/demucs/librosa import chain already
loaded by that point, not raw compute on such a tiny array). Same real-time
duration/filter behavior at sr=400, just far fewer samples to filter.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 00739c1b
Pipeline #1012 canceled with stage
in 8 minutes and 2 seconds
......@@ -62,7 +62,10 @@ def test_detect_key_returns_valid_structure():
def test_sidechain_envelope_ducks_loud_regions_more():
sr = 8000
# sr kept low (not a real audio rate) - filtfilt's cost scales with sample count, and this
# only needs enough samples for the 8Hz envelope filter to settle, not real audio fidelity.
# On CI's constrained CPU, the original sr=8000 (16k samples total) took ~5 minutes.
sr = 400
silence = np.zeros(sr, dtype=np.float32)
loud = np.ones(sr, dtype=np.float32)
source = np.concatenate([silence, loud])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment