Skip to content

Commit 46c69ac

Browse files
igerberclaude
andcommitted
Add debugging output to CI for Rust backend detection
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6d7d6e1 commit 46c69ac

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/rust-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,21 @@ jobs:
8181
run: |
8282
pip install maturin
8383
maturin build --release -o dist
84+
echo "=== Built wheels ==="
85+
ls -la dist/
8486
# --no-index ensures we install from local wheel, not PyPI
8587
pip install --no-index --find-links=dist diff-diff
8688
8789
- name: Verify Rust backend is available
8890
run: |
89-
python -c "from diff_diff import HAS_RUST_BACKEND; assert HAS_RUST_BACKEND, 'Rust backend not available'"
91+
echo "=== Installed package location ==="
92+
python -c "import diff_diff; print(diff_diff.__file__)"
93+
echo "=== Package contents ==="
94+
python -c "import diff_diff, os; print(os.listdir(os.path.dirname(diff_diff.__file__)))"
95+
echo "=== Try importing rust backend directly ==="
96+
python -c "from diff_diff import _rust_backend; print('Success:', _rust_backend)" || echo "Direct import failed"
97+
echo "=== Check HAS_RUST_BACKEND ==="
98+
python -c "from diff_diff import HAS_RUST_BACKEND; print('HAS_RUST_BACKEND:', HAS_RUST_BACKEND); assert HAS_RUST_BACKEND, 'Rust backend not available'"
9099
91100
- name: Run Rust backend tests
92101
run: pytest tests/test_rust_backend.py -v

0 commit comments

Comments
 (0)