Skip to content

Commit 0577375

Browse files
committed
Debug test_sundry.py CI failure
- Remove full Python 3.10/3.11 manifests - Add minimal manifests with only test_sundry.py - Add debug workflow to test distutils import and original file - Will help identify what's different in CI environment
1 parent aacf625 commit 0577375

File tree

3 files changed

+47
-8644
lines changed

3 files changed

+47
-8644
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Debug test_sundry
2+
3+
on: [push]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
10+
test:
11+
name: Debug test_sundry
12+
runs-on: self-hosted
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python: ["python3.10", "python3.11"]
17+
steps:
18+
- name: Clear workspace
19+
run: rm -rf "${GITHUB_WORKSPACE:?}/*"
20+
21+
- name: Checkout
22+
uses: actions/[email protected]
23+
with:
24+
fetch-depth: 1
25+
show-progress: false
26+
persist-credentials: false
27+
28+
- name: Set version statically
29+
run: |
30+
VERSION=0.0.0
31+
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
32+
33+
- name: Debug distutils availability
34+
uses: ./.github/actions/run-in-container
35+
with:
36+
image: danielflook/python-minifier-build:${{ matrix.python }}-2025-08-13
37+
run: |
38+
echo "=== Testing distutils.bcppcompiler import ==="
39+
${{ matrix.python }} -c "import distutils.bcppcompiler; print('SUCCESS: distutils.bcppcompiler imported')" || echo "FAILED to import distutils.bcppcompiler"
40+
41+
echo "=== Testing original test_sundry.py ==="
42+
${{ matrix.python }} /usr/local/lib/python${{ matrix.python == 'python3.10' && '3.10' || '3.11' }}/test/test_sundry.py || echo "FAILED: original test_sundry.py"
43+
44+
echo "=== Running regression test ==="
45+
tox -r -e $(echo "${{ matrix.python }}" | tr -d .) -- xtest

0 commit comments

Comments
 (0)