sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Windows builds are failing intermittently on CI

Open jamescrosswell opened this issue 7 months ago • 4 comments

See here, for an example. The error log shows:

Error: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.50\tools\Xamarin.Android.Common.targets(2038,3): error XA3007: Could not link native shared library: libxamarin-app.so [D:\a\sentry-dotnet\sentry-dotnet\test\AndroidTestApp\AndroidTestApp.csproj::TargetFramework=net9.0-android]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.50\tools\Xamarin.Android.Common.targets(2038,3): error XA3007:  [D:\a\sentry-dotnet\sentry-dotnet\test\AndroidTestApp\AndroidTestApp.csproj::TargetFramework=net9.0-android]
Error: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.50\tools\Xamarin.Android.Common.targets(2038,3): error XA3007: stderr | ld: error: failed to write output 'obj\Release\net9.0-android\android-x64\app_shared_libraries\x86_64\libxamarin-app.so': permission denied [D:\a\sentry-dotnet\sentry-dotnet\test\AndroidTestApp\AndroidTestApp.csproj::TargetFramework=net9.0-android]

Which is coming from here in the Xamarin.Android.Common.targets.

@vaind commented in slack that this might be a concurrency issue:

Could not link native shared library: libxamarin-app.so And i've also got that on a clean build locally. I believe it's a concurrency issue, because running dotnet build again on the same project succeeded. (edited)

I can also reproduce this reliably on a clean build locally.

... now all we have to do is work out why 🙃

jamescrosswell avatar Apr 08 '25 02:04 jamescrosswell