mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 18:25:50 +00:00
fix: log and stop swallowing synchronous listenForUpdates() failures; retry NDK download in CI
BalancesUpdateSystem.launchChainUpdaters() wrapped updater.listenForUpdates() in a try/catch that discarded synchronous exceptions with zero logging - a silent failure point that could explain a chain's balances never syncing with no trace in logcat. Also add a full-architecture instrumented test that persists a real watch-only MetaAccount and polls AssetDao through the actual BalancesUpdateSystem pipeline, instead of bypassing it like the existing BalancesIntegrationTest does.
This commit is contained in:
@@ -18,7 +18,27 @@ runs:
|
||||
- name: Install NDK
|
||||
run: |
|
||||
SDKMANAGER=$(find ${ANDROID_SDK_ROOT}/cmdline-tools -name sdkmanager -type f 2>/dev/null | head -1)
|
||||
echo "y" | sudo ${SDKMANAGER} --install "ndk;26.1.10909125" --sdk_root=${ANDROID_SDK_ROOT}
|
||||
NDK_PACKAGE="ndk;26.1.10909125"
|
||||
|
||||
# sdkmanager's download of the ~1GB NDK zip from Google's CDN occasionally comes back truncated/corrupted
|
||||
# ("Error on ZipFile unknown archive") with no built-in retry, taking down the whole build for a purely
|
||||
# transient network blip. Retry with cleanup between attempts: sdkmanager can otherwise resume from the
|
||||
# same corrupted partial file instead of re-fetching, making a naive retry fail identically every time.
|
||||
for attempt in 1 2 3; do
|
||||
echo "NDK install attempt $attempt/3"
|
||||
if echo "y" | sudo ${SDKMANAGER} --install "$NDK_PACKAGE" --sdk_root=${ANDROID_SDK_ROOT}; then
|
||||
echo "NDK installed successfully"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Attempt $attempt failed - clearing any partial/corrupted download before retrying"
|
||||
sudo rm -rf "${ANDROID_SDK_ROOT}/ndk/26.1.10909125"
|
||||
sudo find "${ANDROID_SDK_ROOT}" -maxdepth 1 -name "tmp*" -exec rm -rf {} +
|
||||
sleep 10
|
||||
done
|
||||
|
||||
echo "NDK install failed after 3 attempts"
|
||||
exit 1
|
||||
shell: bash
|
||||
|
||||
- name: Set ndk.dir in local.properties
|
||||
|
||||
Reference in New Issue
Block a user