Commit 3f902f2c authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Fix genuine CI hang: disable numba JIT for the test job

Confirmed via the GitLab API: pipeline 1023/1024's test job sat completely
motionless for 40+ minutes with zero new output, stalled right where
test_detect_key_returns_valid_structure would run - the one test exercising
librosa.feature.chroma_cqt, which is numba-JIT-compiled
(librosa.core.constantq imports numba's jit decorator, confirmed locally).

numba's JIT cache never persists across CI runs (fresh container every job),
so that compile cost is paid from scratch on every single push for a
one-shot call that's never repeated in-process - zero benefit, and on this
runner's CPU (already documented elsewhere in this codebase as lacking
SSE3/SSE4/AVX) it appears to hang outright rather than just compile slowly.
NUMBA_DISABLE_JIT=1 forces the pure-Python fallback - verified locally this
costs nothing measurable (2.2s either way for a single detect_key call) and
all 104 tests still pass.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 60f85ef5
Pipeline #1029 failed with stages
in 33 minutes and 10 seconds
......@@ -17,6 +17,15 @@ cache:
test:
stage: test
image: python:3.10-slim
variables:
# librosa's CQT path (used by detect_key, tests/test_remix_engine.py) is numba-JIT-
# compiled. numba's JIT cache never persists across CI runs - each job is a fresh
# container, so that compile cost is paid from scratch every single push for zero
# benefit (it's a one-shot call, never repeated in-process). On this runner's CPU
# (documented elsewhere as lacking SSE3/SSE4/AVX) that compile appears to hang rather
# than just be slow - a pipeline sat at this exact point for 40+ minutes with zero
# progress. Pure-Python fallback costs nothing measurable for a single small-audio call.
NUMBA_DISABLE_JIT: "1"
before_script:
# apt's `ffmpeg` package drags in ~185 packages (video codecs, X11/Mesa, fonts, speech
# recognition libs) that took ~3min to unpack/configure on this runner, for functionality
......
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