getsentry / getsentry/sentry-dotnet

Restore operations are constantly failing in CI

Open
#5,058 2 comments 0 reactions 0 assignees View on GitHub
.NET
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

### Description

The iOS device tests are frequently failing in CI, which is super frustrating. For example:
https://github.com/getsentry/sentry-dotnet/actions/runs/23469005245/job/68287438952

The error when running `pwsh ./scripts/device-test.ps1 ios -Build` in the Build iOS Test App task is:
```
Objective Sharpie not found. Attempting to install via Homebrew.
==> Downloading https://download.visualstudio.microsoft.com/download/pr/3a748cc2-780d-403c-88ba-700aa9a2d299/88cbfd86e85f56b4c61e092d0f0b9ad9/objectivesharpie-3.5.116.pkg
curl: (18) transfer closed with 28388465 bytes remaining to read
: : error : :Download failed on Cask 'objectivesharpie' with message: Download failed: https://download.visualstudio.microsoft.com/download/pr/3a748cc2-780d-403c-88ba-700aa9a2d299/88cbfd86e85f56b4c61e092d0f0b9ad9/objectivesharpie-3.5.116.pkg [/Users/runner/work/sentry-dotnet/sentry-dotnet/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj::TargetFramework=once]
Sentry -> /Users/runner/work/sentry-dotnet/sentry-dotnet/src/Sentry/bin/Release/net10.0/Sentry.dll
NativeCommandExitException: /Users/runner/work/sentry-dotnet/sentry-dotnet/scripts/generate-cocoa-bindings.ps1:35
Line |
35 | brew install --cask objectivesharpie
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Program "brew" ended with non-zero exit code: 1.
/Users/runner/work/sentry-dotnet/sentry-dotnet/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj(139,5): error MSB3073: The command "pwsh ../../scripts/generate-cocoa-bindings.ps1" exited with code 1. [TargetFramework=once]
Sentry.Extensions.Logging -> /Users/runner/work/sentry-dotnet/sentry-dotnet/src/Sentry.Extensions.Logging/bin/Release/net10.0/Sentry.Extensions.Logging.dll

Build FAILED.

: : error : :Download failed on Cask 'objectivesharpie' with message: Download failed: https://download.visualstudio.microsoft.com/download/pr/3a748cc2-780d-403c-88ba-700aa9a2d299/88cbfd86e85f56b4c61e092d0f0b9ad9/objectivesharpie-3.5.116.pkg [/Users/runner/work/sentry-dotnet/sentry-dotnet/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj::TargetFramework=once]
/Users/runner/work/sentry-dotnet/sentry-dotnet/src/Sentry.Bindings.Cocoa/Sentry.Bindings.Cocoa.csproj(139,5): error MSB3073: The command "pwsh ../../scripts/generate-cocoa-bindings.ps1" exited with code 1. [TargetFramework=once]
0 Warning(s)
2 Error(s)
```

Ideally we could come up with a solution that retries (with a backoff)... so simulating `Microsoft.Extensions.Http.Resilience` during dotnet restore operations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.