Skip to content

Commit b8f98c7

Browse files
atc964claude
andcommitted
Bump CI timeout to 600s + add telemetry opt-out env vars (ar-r82f.16)
Pragmatic ship for the lingering interpreter-shutdown hang. Cycle 3 confirmed pytest itself completes (no traceback in the killed runs), but the Python interpreter hangs ~5min on exit, triggering the outer timeout 300s and producing exit 124 / FAILURE despite a clean test run. Two-part fix: 1. Bump outer `timeout` from 300s to 600s on both pytest steps. Even if the interpreter still sits in atexit handlers for several minutes, it has room to complete naturally instead of being killed. 2. Add belt-and-suspenders telemetry opt-out env vars on both steps, targeting the dependencies most likely to be registering atexit network calls: - CREWAI_DISABLE_TELEMETRY / CREWAI_DISABLE_TRACKING: the other crewai-recognized opt-out names (CREWAI_TELEMETRY_OPT_OUT alone turned out to be a documented-but-unrecognized no-op). - ANONYMIZED_TELEMETRY: chromadb's opt-out switch. - POSTHOG_DISABLED: posthog (used by chromadb/crewai) opt-out. Any one of these may shorten the hang; together with the 600s budget the workflow should report SUCCESS on clean runs while still surfacing real pytest failures (cycle 1 verified this works in 8.47s). bead: ar-r82f.16 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 038bf21 commit b8f98c7

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,22 @@ jobs:
3838
ANTHROPIC_API_KEY: test-key-for-ci
3939
AD_BUYER_SRC_PATH: ${{ github.workspace }}/buyer-agent/src
4040
CREWAI_TELEMETRY_OPT_OUT: "true"
41+
CREWAI_DISABLE_TELEMETRY: "true"
42+
CREWAI_DISABLE_TRACKING: "true"
4143
LITELLM_TELEMETRY: "False"
4244
OTEL_SDK_DISABLED: "true"
43-
run: timeout --kill-after=10s 300s pytest tests/unit/ -v --tb=short --timeout=30 --timeout-method=thread
45+
ANONYMIZED_TELEMETRY: "False"
46+
POSTHOG_DISABLED: "1"
47+
run: timeout --kill-after=10s 600s pytest tests/unit/ -v --tb=short --timeout=30 --timeout-method=thread
4448

4549
- name: Integration tests
4650
env:
4751
ANTHROPIC_API_KEY: test-key-for-ci
4852
CREWAI_TELEMETRY_OPT_OUT: "true"
53+
CREWAI_DISABLE_TELEMETRY: "true"
54+
CREWAI_DISABLE_TRACKING: "true"
4955
LITELLM_TELEMETRY: "False"
5056
OTEL_SDK_DISABLED: "true"
51-
run: timeout --kill-after=10s 300s pytest tests/integration/ -v --tb=short --timeout=60 --timeout-method=thread
57+
ANONYMIZED_TELEMETRY: "False"
58+
POSTHOG_DISABLED: "1"
59+
run: timeout --kill-after=10s 600s pytest tests/integration/ -v --tb=short --timeout=60 --timeout-method=thread

0 commit comments

Comments
 (0)