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
995419 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47933
995385 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#110554
995346 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113956
995283 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113908
995194 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113953
995110 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113500
994887 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47867
994774 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113907
994693 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113929
994664 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113927
994088 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47903
994018 dotnet/sdk Browser_Shortstack_wasm dotnet/sdk#47895
993950 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113911
993839 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47611
993303 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113385
2671590 dotnet-dotnet AzureLinux_x64_Cross_arm
992499 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113766
992362 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113112
991955 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113846
991144 dotnet/runtime browser-wasm linux Release LibraryTests_Threading
990850 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113822
985121 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113507
989925 dotnet/runtime windows-x64 Debug CoreCLR_Libraries dotnet/runtime#113666
989155 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113483
988762 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47767
988504 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113743
988426 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113728
988422 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113592
987566 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113483
988011 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113737
988165 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113453
988120 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113719
986602 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113712
987667 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113739
987747 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113634
987874 dotnet/runtime browser-wasm linux Release LibraryTests
987864 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113453
987824 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112997
987765 dotnet/runtime browser-wasm linux Release LibraryTests_Threading dotnet/runtime#113740
987731 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113719
987714 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113704
987610 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113737
987487 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113416
987370 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113730
987347 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113728
987238 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113667
986807 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#99596
986139 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113416
986236 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113645
987010 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113719
986910 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113721
986904 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#100729
986877 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113720
986690 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112306
986815 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113627
986480 dotnet/sdk Browser_Shortstack_wasm Log dotnet/sdk#47740
986485 dotnet/sdk Android_Shortstack_arm64 Log dotnet/sdk#47741
986796 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112152
986050 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113667
985537 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113190
986493 dotnet/runtime browser-wasm linux Release LibraryTests
986470 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113524
986451 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113704
986454 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113706
986431 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113627
982178 dotnet/runtime browser-wasm linux Release LibraryTests Log dotnet/runtime#99596
986327 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113705
986280 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113703
986182 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113695
985668 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113084
985005 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112306
985970 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#45633
985535 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112937
985397 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113673
985236 dotnet/runtime browser-wasm linux Release LibraryTests
985196 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113500
985103 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113669
985044 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113673
985025 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47700
984942 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112417
984864 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113666
984793 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112604
984789 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#112604
984740 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113663
984720 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113662
984702 dotnet/runtime browser-wasm linux Release AllSubsets_Mono_RuntimeTests monointerpreter dotnet/runtime#113404
984687 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113659
984555 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113606
984551 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113653
984544 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113524
984145 dotnet/sdk Android_Shortstack_x64 dotnet/sdk#47338
984103 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113111
983782 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47670
983563 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113627
983468 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113429
983439 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113618
983341 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47167
983217 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113524
983212 dotnet/sdk Android_Shortstack_arm64 dotnet/sdk#47660
982664 dotnet/runtime browser-wasm linux Release LibraryTests dotnet/runtime#113416
Displaying 100 of 358 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
10 49 343
@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