Skip to content

Restore operations are constantly failing in CI #5058

@jamescrosswell

Description

@jamescrosswell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeBugSomething isn't working
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions