Skip to content

Commit beb7f3a

Browse files
WIP/DEBUG: add debugging to diagnose baipp failures - DO NOT MERGE
This is a temporary debugging commit to understand why build-and-inspect-python-package is failing. Changes: - Added 'continue-on-error: true' to build steps so workflow continues on failure - Added 'if: always()' debug steps to list directory structure even after failures - Download artifacts to separate paths (dist-vcs/, dist-scm/) to avoid conflicts - Added explicit combine step that copies packages to dist/ - Debug steps check dist/, out/, and file tree to understand baipp output structure THIS IS A HACK FOR DEBUGGING ONLY. DO NOT MERGE THIS COMMIT TO MAIN. Once we understand the baipp failure, this should be reverted and replaced with proper fixes.
1 parent 37ef6a8 commit beb7f3a

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

.github/workflows/python-tests.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,61 @@ jobs:
3232
fetch-depth: 0
3333

3434
- name: Build vcs-versioning
35+
continue-on-error: true
3536
uses: hynek/build-and-inspect-python-package@v2
3637
with:
3738
path: nextgen/vcs-versioning
3839
upload-name-suffix: -vcs-versioning
3940

41+
- name: Debug - List vcs-versioning build output
42+
if: always()
43+
run: |
44+
echo "=== Listing nextgen/vcs-versioning/dist/ ==="
45+
ls -la nextgen/vcs-versioning/dist/ || echo "Directory does not exist"
46+
echo "=== Listing nextgen/vcs-versioning/out/ ==="
47+
ls -la nextgen/vcs-versioning/out/ || echo "Directory does not exist"
48+
echo "=== Listing current directory ==="
49+
ls -la
50+
echo "=== Tree view of nextgen/vcs-versioning ==="
51+
find nextgen/vcs-versioning/ -type f -o -type d | sort | head -100
52+
4053
- name: Build setuptools-scm
54+
continue-on-error: true
4155
uses: hynek/build-and-inspect-python-package@v2
4256
with:
4357
upload-name-suffix: -setuptools-scm
4458

59+
- name: Debug - List setuptools-scm build output
60+
if: always()
61+
run: |
62+
echo "=== Listing dist/ ==="
63+
ls -la dist/ || echo "Directory does not exist"
64+
echo "=== Listing out/ ==="
65+
ls -la out/ || echo "Directory does not exist"
66+
echo "=== Listing current directory ==="
67+
ls -la
68+
echo "=== Tree view of project root ==="
69+
find . -maxdepth 3 -name "*.whl" -o -name "*.tar.gz" -o -type d | sort | head -100
70+
4571
- name: Download vcs-versioning packages
4672
uses: actions/download-artifact@v4
4773
with:
4874
name: Packages-vcs-versioning
49-
path: dist/
75+
path: dist-vcs/
5076

5177
- name: Download setuptools-scm packages
5278
uses: actions/download-artifact@v4
5379
with:
5480
name: Packages-setuptools-scm
55-
path: dist/
81+
path: dist-scm/
82+
83+
- name: Combine packages
84+
run: |
85+
mkdir -p dist
86+
cp dist-vcs/*.whl dist-vcs/*.tar.gz dist/ 2>/dev/null || true
87+
cp dist-scm/*.whl dist-scm/*.tar.gz dist/ 2>/dev/null || true
88+
echo "=== Combined packages ==="
89+
ls -la dist/
5690
5791
- name: Upload combined packages
5892
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)