Open jamescrosswell opened 1 week ago
For example in this build run you can see that in Attempt 1, dotnet restore succeeded. I assumed at that point that the most recent change I had made was significant. This turned out to be false - dotnet restore failed a second attempt on exactly the same commit.
For reference, the difference between the two seems to be the "runner image" specifically. The fail happened on 20241113.3.0, while the pass happened on 20241021.1.0.
This is visible both in the "setup job" step after you expand the "Runner Image" subhead, or when viewing the raw logs.
See also: https://github.com/actions/runner-images/issues/10978
For reference, the difference between the two seems to be the "runner image" specifically. The fail happened on 20241113.3.0, while the pass happened on 20241021.1.0.
Awesome, thanks @bdach - I didn't spot that. That at least gives me a path to explore.
As is pointed out in the other issue you referenced, it's a bit frustrating that the runners aren't versioned and we can't pin a specific version to ensure deterministic builds. Ideally I'd like every change in the build system to be reflected by a corresponding change in our repository. The runners themselves seem to change frequently and in major ways however, so sometimes things work and sometimes things break, without our having made any changes.
Does anyone have a workaround for this?
I even tried using a specific version of dotnet SDK, but it still complains about android
not being recognized.
https://github.com/nalu-development/nalu/actions/runs/11950637082/job/33312535560
- name: "Setup .NET SDK"
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.401'
- name: "Ensure all workloads are installed" # https://github.com/actions/runner/issues/3578
run: dotnet workload install maui
shell: pwsh
This is breaking our android builds too.
Describe the bug
We started getting this error when running dotnet restore on our Windows runners for any projects targeting net8.0-android 2 days ago:
To Reproduce
We don't consistently get this error for the same commit. For example in this build run you can see that in Attempt 1, dotnet restore succeeded. However
dotnet restore
failed a second attempt on exactly the same commit.As @bdach pointed out, the difference appears to be in the specific image version:
Expected behavior
I'd expect the build runs to be deterministic. If we run the same GitHub Actions workflow with the same commit on the same runner, we should get the same result.
.NET 8 is definitely installed on the runner as are the maui workloads. So the error itself seems erroneous and misleading.
Runner Version and Platform
windows-latest
version: '2.320.0'`What's not working?
Here's an example of a run that (would have) succeeded... you can see the
Restore .NET dependencies
step has succeeded. This just runsdotnet restore
against our solution (which has some projects that targetnet8.0-android
).After I saw that step had succeeded, I cancelled the run and tried again. Here's a retry of exactly the same commit that failed:
And here's a small sample of the log output for that step on the failed attempt: