Skip to content

Commit d0b0b11

Browse files
committed
Android: add post-failure diagnostics inspecting jniLibs, intermediate merge output, and APK contents
1 parent c36ce41 commit d0b0b11

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/test-bridge-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,34 @@ jobs:
443443
cd src/serious_python_bridge/example && dart run serious_python:main package app/src --platform Android --python-version ${{ matrix.python_version }}
444444
cd src/serious_python_bridge/example && flutter test integration_test --device-id emulator-${{ env.EMULATOR_PORT }}
445445
446+
- name: Diagnostics on failure
447+
if: failure()
448+
shell: bash
449+
run: |
450+
set +e
451+
REPO="$GITHUB_WORKSPACE"
452+
ABI=x86_64
453+
echo "=== serious_python_android/android/src/main/jniLibs/$ABI/ (post-extract source) ==="
454+
ls -la "$REPO/src/serious_python_android/android/src/main/jniLibs/$ABI/" 2>/dev/null || echo "(not found)"
455+
echo
456+
echo "=== serious_python_bridge/android/src/main/jniLibs/$ABI/ ==="
457+
ls -la "$REPO/src/serious_python_bridge/android/src/main/jniLibs/$ABI/" 2>/dev/null || echo "(not found)"
458+
echo
459+
echo "=== example/build/app/intermediates/merged_native_libs/.../$ABI/ ==="
460+
find "$REPO/src/serious_python_bridge/example/build/app/intermediates/merged_native_libs" -type f 2>/dev/null
461+
echo
462+
echo "=== example/build/app/outputs/apk/debug/*.apk ==="
463+
APK=$(find "$REPO/src/serious_python_bridge/example/build" -name "*-debug.apk" 2>/dev/null | head -n1)
464+
echo "APK: $APK"
465+
if [ -n "$APK" ]; then
466+
echo "Native libs inside APK:"
467+
unzip -l "$APK" | grep -E "lib/$ABI/" || echo "(no lib/$ABI/ entries)"
468+
fi
469+
echo
470+
echo "=== installed app native lib dir (adb) ==="
471+
adb shell run-as com.flet.serious_python_bridge_example ls -la /data/data/com.flet.serious_python_bridge_example/lib/ 2>/dev/null || true
472+
adb shell pm path com.flet.serious_python_bridge_example 2>/dev/null || true
473+
446474
test_bridge_example_windows:
447475
name: Bridge example Windows round-trip (Python ${{ matrix.python_version }})
448476
runs-on: windows-latest

0 commit comments

Comments
 (0)