Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] fix nightly APK tests for 32-bit emulators #9308

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

jonathanpeppers
Copy link
Member

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10233028&view=logs&j=16e8a400-d09b-57ea-d2d5-3b6e79259973&t=469522d3-478a-58c1-dd99-cef151b877ac&l=4872

The APK tests on API 21 & 23 (maybe more) emulators fail with:

[BT The app doesn't support ABI architectures of the device. Device ABIs: [x86], app ABIs: [arm64-v8a, x86_64].

Let's build android-x86 as well for all APK tests, to fix this issue.

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10233028&view=logs&j=16e8a400-d09b-57ea-d2d5-3b6e79259973&t=469522d3-478a-58c1-dd99-cef151b877ac&l=4872

The APK tests on API 21 & 23 (maybe more) emulators fail with:

    [BT The app doesn't support ABI architectures of the device. Device ABIs: [x86], app ABIs: [arm64-v8a, x86_64].

Let's build `android-x86` as well for all APK tests, to fix this issue.
@jonathanpeppers
Copy link
Member Author

@jonathanpeppers
Copy link
Member Author

This seems to fix API 21:

image

But API 23 is crashing with:

09-17 14:41:32.933  2758  2758 I monodroid-assembly: Trying to load shared library '/data/app/Mono.Android.NET_Tests-1/base.apk!/lib/x86/./libSystem.Native'
09-17 14:41:32.933  2758  2758 I monodroid-assembly: Failed to load shared library '/data/app/Mono.Android.NET_Tests-1/base.apk!/lib/x86/./libSystem.Native'. dlopen failed: library "/data/app/Mono.Android.NET_Tests-1/base.apk!/lib/x86/./libSystem.Native" not found
09-17 14:41:32.933  2758  2758 I monodroid-assembly: Trying to load shared library '/data/app/Mono.Android.NET_Tests-1/split_config.x86.apk!/lib/x86/./libSystem.Native'
09-17 14:41:32.933  2758  2758 I monodroid-assembly: Failed to load shared library '/data/app/Mono.Android.NET_Tests-1/split_config.x86.apk!/lib/x86/./libSystem.Native'. dlopen failed: library "/data/app/Mono.Android.NET_Tests-1/split_config.x86.apk!/lib/x86/./libSystem.Native" not found
09-17 14:41:32.933  2758  2758 I monodroid-assembly: Trying to load shared library './libSystem.Native'
09-17 14:41:32.933  2758  2758 I monodroid-assembly: Failed to load shared library './libSystem.Native'. dlopen failed: library "./libSystem.Native" not found
09-17 14:41:32.934  2758  2758 W Mono    : DllImport unable to load library 'libSystem.Native'.
09-17 14:41:33.140  2758  2758 F mono-rt : [ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
09-17 14:41:33.140  2758  2758 F mono-rt : Original Exception: at System.Threading.Thread.get_CurrentThread () [0x00009] in <abe84e9d26c94f858f7516774dfbb199>:0
09-17 14:41:33.140  2758  2758 F mono-rt : at System.Threading.Monitor.Exit (object) [0x0000e] in <abe84e9d26c94f858f7516774dfbb199>:0

So, at least more tests are running with this change.

@jonathanpeppers jonathanpeppers marked this pull request as ready for review September 17, 2024 17:12
@jonathanpeppers
Copy link
Member Author

There are some test failure related to XamarinLegacySdk("net8.0-android34.0") and ResourceDesignerWithNuGetReference("net8.0-android").

Fixed in:

@jonathanpeppers jonathanpeppers merged commit 295f898 into main Sep 17, 2024
61 of 77 checks passed
@jonathanpeppers jonathanpeppers deleted the APKTests branch September 17, 2024 21:19
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants