π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
ci: fail fast with a stack dump when a CPU half-precision test hangs (#5494)
Dmytro Mishkin28b2a875f7cd
diff --git a/.github/workflows/pr_test_cpu.yml b/.github/workflows/pr_test_cpu.ymlindex 4b32e6710..e21d01ba2 100644--- a/.github/workflows/pr_test_cpu.yml+++ b/.github/workflows/pr_test_cpu.yml@@ -152,6 +152,10 @@ jobs:pytorch-version: '["2.9.1"]'pytorch-dtype: ${{ matrix.pytorch-dtype }}known-failure-profile: cpu-${{ matrix.pytorch-dtype }}+ # A whole leg takes ~6m, so no single test comes near these limits. A native float16 kernel+ # can hang on some Intel runners (#5493): faulthandler prints the stack even while the hung+ # call holds the GIL, and pytest-timeout ends the run once the GIL is free.+ pytest-extra: --timeout=600 --timeout-method=thread -o faulthandler_timeout=300cache-path: weights/cache-key: model-weights-${{ needs.pre-tests.outputs.hash }}cache-restore-keys: |diff --git a/.github/workflows/scheduled_test_cpu.yml b/.github/workflows/scheduled_test_cpu.ymlindex 3e43c79ce..424a2a075 100644--- a/.github/workflows/scheduled_test_cpu.yml+++ b/.github/workflows/scheduled_test_cpu.yml@@ -183,6 +183,8 @@ jobs:pytorch-version: '["2.9.1"]'pytorch-dtype: ${{ matrix.pytorch-dtype }}known-failure-profile: cpu-${{ matrix.pytorch-dtype }}+ # Same hang guard as the PR half-precision job (#5493).+ pytest-extra: --timeout=600 --timeout-method=thread -o faulthandler_timeout=300cache-path: weights/cache-key: model-weights-${{ needs.pre-tests.outputs.hash }}cache-restore-keys: |