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
930196 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111849
930160 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111690
930165 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111691
930081 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111848
929957 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111598
929843 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111841
929840 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111840
929724 dotnet/runtime browser-wasm linux Release LibraryTests
929638 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111834
929617 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111598
929594 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111806
929054 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111820
929542 dotnet/runtime browser-wasm linux Release LibraryTests
929497 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111817
929498 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111817
929486 dotnet/sdk Browser_Shortstack_wasm dotnet/sdk#45836
929203 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111826
929200 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111691
928732 dotnet/runtime Libraries Test Run checked coreclr windows x64 Release dotnet/runtime#111804
928424 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111802
928377 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111472
928100 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#110471
928076 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111545
928038 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111750
927936 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#99596
927865 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111580
927780 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#109928
927765 dotnet/runtime browser-wasm linux Release LibraryTests
927749 dotnet/runtime browser-wasm linux Release LibraryTests_Threading
927723 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111743
927704 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#99596
927636 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111691
927541 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#99596
927520 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111645
927516 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111454
927476 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#106925
927398 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111763
927328 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#109605
927287 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#110471
927227 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111759
927173 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#99596
927089 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111328
927047 dotnet/runtime browser-wasm linux Release LibraryTests
926883 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111754
926726 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111747
926722 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#110471
926670 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111580
926564 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111747
926462 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111328
926450 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#99596
926405 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111743
926386 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111215
926384 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111215
926381 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111215
925743 dotnet/runtime browser-wasm linux Release LibraryTests_Threading Log dotnet/runtime#109928
926231 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111691
926152 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111678
925820 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#110471
925717 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111722
925692 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#103153
925683 dotnet/runtime browser-wasm linux Release LibraryTests_Threading
925619 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111716
925567 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111664
925238 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111215
925414 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111676
925377 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#109901
925320 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#109978
925203 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#99596
925200 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111702
925065 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111696
925039 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111694
924967 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111662
924661 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111685
924939 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111521
924870 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#99596
924858 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111692
924847 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111690
924680 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#102704
924617 dotnet/sdk Browser_Shortstack_wasm dotnet/sdk#37872
924557 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111642
924393 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111678
924307 dotnet/runtime browser-wasm linux Release LibraryTests_Threading
924293 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111677
924071 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111545
924029 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111664
923996 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111657
923755 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111614
923970 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111215
923919 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111545
923895 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111214
923879 dotnet/runtime browser-wasm linux Release LibraryTests_Threading
923727 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#102249
923724 dotnet/runtime browser-wasm linux Release LibraryTests
923620 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111328
923531 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111645
923528 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111642
923495 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111646
923465 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#111645
923365 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#110727
923308 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#111521
Displaying 100 of 365 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
7 104 365
@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