Skip to content

Commit d94b0ba

Browse files
committed
TEMP: probe 3.15 torchvision import under faulthandler in windows smoke
Diagnostic to surface the silent import crash on cp315 (no traceback in the smoke test). Prints torch/numpy/torchvision versions and a C-level stack on fault. To be reverted once the root cause is understood.
1 parent 82275ac commit d94b0ba

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/build_wheels_windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,13 @@ jobs:
371371
else
372372
${CONDA_RUN} pip install "${{ inputs.repository }}/dist/$WHEEL_NAME"
373373
fi
374+
# TEMP DEBUG (3.15): the smoke test crashes on import with no traceback.
375+
# Probe imports under faulthandler to surface the real failure/C stack.
376+
if [[ "${{ startsWith(matrix.python_version, '3.15') }}" == "true" ]]; then
377+
echo "::group::3.15 import probe"
378+
${CONDA_RUN} python -X faulthandler -c "import sys, torch; print('TORCH', torch.__version__); import numpy; print('NUMPY', numpy.__version__); import torchvision; print('TORCHVISION', torchvision.__version__)" 2>&1 || echo "IMPORT_PROBE_FAILED rc=$?"
379+
echo "::endgroup::"
380+
fi
374381
if [[ ! -f "${{ inputs.repository }}"/${SMOKE_TEST_SCRIPT} ]]; then
375382
echo "${{ inputs.repository }}/${SMOKE_TEST_SCRIPT} not found"
376383
${CONDA_RUN} "${{ inputs.repository }}/${ENV_SCRIPT}" python -c "import ${PACKAGE_NAME}; print('package version is ', ${PACKAGE_NAME}.__version__)"

0 commit comments

Comments
 (0)