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

restarted. Azure DevOps can't recover from restarts. #3879

Open
3 tasks
lewing opened this issue Aug 26, 2024 · 5 comments
Open
3 tasks

restarted. Azure DevOps can't recover from restarts. #3879

lewing opened this issue Aug 26, 2024 · 5 comments

Comments

@lewing
Copy link
Member

lewing commented Aug 26, 2024

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=784852

Build leg reported

Build / linux-x64 debug Libraries_AllConfigurations

Pull Request

dotnet/runtime#106599

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "restarted. Azure DevOps can't recover from restarts.",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=784852
Error message validated: [restarted. Azure DevOps can't recover from restarts.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/26/2024 7:12:18 PM UTC

Report

Build Definition Step Name Console log Pull Request
973371 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113306
973047 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113041
973009 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47389
972845 dotnet/runtime browser-wasm linux Release LibraryTests
972820 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47338
972793 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113288
972783 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112937
972141 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47361
971931 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113258
971912 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111934
968614 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter Log dotnet/runtime#113129
2657674 dotnet-dotnet-buildtools-prereqs-docker Windows2025_amd64 src-windowsservercore-ltsc2025-helix-graph
971793 dotnet/sdk Browser_Shortstack_wasm dotnet/sdk#47355
971666 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113014
971634 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112863
971632 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter
971543 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113241
971589 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113248
971477 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113241
971299 dotnet/runtime browser-wasm linux Release LibraryTests_Threading
971177 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113234
971173 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#111178
971164 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113232
971051 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter
970974 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113226
970793 dotnet/runtime browser-wasm linux Release LibraryTests
970713 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113164
970701 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112945
970605 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113211
970593 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112863
970590 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113210
967751 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113014
970518 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112945
970499 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113164
970418 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113184
970404 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112937
970397 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113190
970399 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113191
970313 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113184
970307 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113150
2656419 dotnet-dotnet AzureLinux_x64_Cross_arm64
970230 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113185
970222 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113111
970216 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113056
969731 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113140
970126 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113167
970062 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113175
969964 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter
969955 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112548
969837 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112549
969763 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113164
969167 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112831
969589 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#107683
969549 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113041
969512 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113159
969447 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112863
969403 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111050
969399 dotnet/sdk Browser_Shortstack_wasm dotnet/sdk#47258
969377 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112985
969333 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#111610
969228 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113113
969195 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113150
969147 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#111771
969108 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113140
969031 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112985
968971 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113141
968838 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter
968796 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#111771
968735 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113113
968745 dotnet/runtime browser-wasm linux Release LibraryTests
968664 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113027
968649 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113131
968558 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112882
968524 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#111610
968514 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112863
968333 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112986
968416 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112947
968370 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112693
968366 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter
968296 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113113
968283 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113111
968273 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113112
968276 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112937
968238 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47240
968114 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#111771
967913 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112406
967856 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112985
967834 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113094
964904 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112991
967494 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112985
967283 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113044
967275 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112825
967256 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#110565
967250 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112406
967247 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112947
967236 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112404
967230 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112404
967142 dotnet/runtime browser-wasm linux Release LibraryTests
967057 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#112833
967028 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113056
Displaying 100 of 213 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 102 212
@am11
Copy link
Member

am11 commented Oct 7, 2024

It seems like all reports are pointing to linux-x64 dev-innerloop leg from this definition: https://dev.azure.com/dnceng-public/public/_build?definitionId=133. GitHub doesn't sync the status and keeps showing as if the job is running for days.. Opened dotnet/runtime#108581 to disable the leg.

@am11
Copy link
Member

am11 commented Oct 7, 2024

Just before the timeout we see low memory warnings like these:

https://dev.azure.com/dnceng-public/public/_build/results?buildId=829130&view=logs&j=e80acbf0-bc87-577c-4c46-0016b0794913&t=f0fa9d72-e49a-5249-4d28-1199014b9857
image

then it hangs for ~20 minutes or so before giving up. The build command has -allConfigurations so it builds all product+test assemblies for all platforms ({linux,win,osx,freebsd,illumos}-{x86,x64,arm,arm64,riscv64.. etc.}) all in one invocation of build (which isn't exactly efficient as we should probably group them..), which means, as it stands, this leg needs decent amount of RAM.

@steveisok
Copy link
Member

@ilyas1974 @markwilkie I don't think our RAM consumption has increased that much to not be able to handle this configuration. Thoughts?

@ericstj
Copy link
Member

ericstj commented Oct 10, 2024

I took a look at a few passing builds, many have the same logs where they approach 95% memory usage but eventually succeed.

Here are some samples:
https://dev.azure.com/dnceng-public/public/_build/results?buildId=836601&view=logs&j=e80acbf0-bc87-577c-4c46-0016b0794913&t=f0fa9d72-e49a-5249-4d28-1199014b9857
https://dev.azure.com/dnceng-public/public/_build/results?buildId=838110&view=logs&j=e80acbf0-bc87-577c-4c46-0016b0794913&t=f0fa9d72-e49a-5249-4d28-1199014b9857&l=3923
https://dev.azure.com/dnceng-public/public/_build/results?buildId=837745&view=logs&j=e80acbf0-bc87-577c-4c46-0016b0794913&t=f0fa9d72-e49a-5249-4d28-1199014b9857&l=4228

Near this point I see logs like this:

  initializing ChangeMakerService with capabilities: Baseline, AddMethodToExistingType, AddStaticFieldToExistingType, AddInstanceFieldToExistingType, NewTypeDefinition, ChangeCustomAttributes, UpdateParameters, GenericAddMethodToExistingType, GenericUpdateMethod, GenericAddFieldToExistingType
  baseline ready
  got a change
  parsing patch #1 from /__w/1/s/src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField/GenericAddInstanceField_v1.cs and creating delta
  Found changes in GenericAddInstanceField.cs
  change service made fa564b82-cf1c-4fb0-9d1a-f5ca4c71ff03
  wrote /__w/1/s/artifacts/bin/System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField/Debug/net10.0/System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField.dll.1.dmeta
  got a change
  parsing patch #2 from /__w/1/s/src/libraries/System.Runtime.Loader/tests/ApplyUpdate/System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField/GenericAddInstanceField_v2.cs and creating delta
  Found changes in GenericAddInstanceField.cs
  change service made fa564b82-cf1c-4fb0-9d1a-f5ca4c71ff03
  wrote /__w/1/s/artifacts/bin/System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField/Debug/net10.0/System.Reflection.Metadata.ApplyUpdate.Test.GenericAddInstanceField.dll.2.dmeta
  done

It looks to me like this is coming from https://github.com/dotnet/hotreload-utils/blob/254ec75de6127c368827d15c3af2477095b8b1b4/src/Microsoft.DotNet.HotReload.Utils.Generator/EnC/ChangeMakerService.cs#L28

Does anyone have an idea why hotreload would be running during a build?? I could imagine that if some hot reload service was runnign during a build or if tests were running while the product was building that could explain high memory usage.

@snakex64
Copy link

snakex64 commented Oct 30, 2024

This seems to be happening consistently in PR #109320 . Should I just try re-running a third time or is it never gonna work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants