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

Checkout failure: "Git fetch failed with exit code 128" #9009

Open
2 tasks
carlossanlop opened this issue Apr 8, 2022 · 14 comments
Open
2 tasks

Checkout failure: "Git fetch failed with exit code 128" #9009

carlossanlop opened this issue Apr 8, 2022 · 14 comments
Labels
Known Build Error Ops - Facilely Operations issues that are easily accomplished or attained

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Apr 8, 2022

Build

https://dev.azure.com/dnceng/public/_build/results?buildId=1706886&view=results

Build leg reported

Libraries Test Run release coreclr Linux_musl x64 Release

Pull Request

Rolling build for runtime

Action required for the engineering services team

To triage this issue (First Responder / @dotnet/dnceng):

  • Open the failing build above and investigate
  • Add a comment explaining your findings

If this is an issue that is causing build breaks across multiple builds and would get benefit from being listed on the build analysis check, follow the next steps:

  1. Add the label "Known Build Error"
  2. Edit this issue and add an error string in the Json below that can help us match this issue with future build breaks. You should use the known issues documentation
{
   "ErrorMessage" : "Git fetch failed with exit code: 128",
   "BuildRetry": true
}

Additional information about the issue reported

The Checkout dotnet/runtime@main to s step is the one that failed. Here is the end of the log output:

remote: Compressing objects:  29% (30070/103687)        
remote: Compressing objects:  30% (31107/103687)        
remote: Compressing objects:  31% (32143/103687)        
remote: Compressing objects:  31% (32322/103687)        
remote: Compressing objects:  32% (33180/103687)        
remote: Compressing objects:  33% (34217/103687)        
remote: Compressing objects:  33% (35247/103687)        
remote: Compressing objects:  34% (35254/103687)        
remote: Compressing objects:  35% (36291/103687)        
remote: Compressing objects:  36% (37328/103687)        
remote: Compressing objects:  37% (38365/103687)        
remote: Compressing objects:  37% (38926/103687)        
remote: Compressing objects:  38% (39402/103687)        
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: protocol error: bad pack header
##[error]Git fetch failed with exit code: 128
Finishing: Checkout dotnet/runtime@main to s

Report

Build Definition Step Name Console log Pull Request
813179 dotnet/sdk Checkout dotnet/sdk@refs/pull/43580/merge to s Log dotnet/sdk#43580
813181 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43580
812766 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/711/merge to s Log maestro-auth-test/helix-queue-insights-test#711
812687 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/710/merge to s Log maestro-auth-test/helix-queue-insights-test#710
812619 dotnet/runtime Checkout dotnet/runtime@release/9.0 to s Log
812525 dotnet/sdk Checkout dotnet/sdk@refs/pull/43562/merge to s Log dotnet/sdk#43562
812554 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/709/merge to s Log maestro-auth-test/helix-queue-insights-test#709
812526 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43562
812522 dotnet/runtime Checkout dotnet/runtime@refs/pull/107961/merge to s Log dotnet/runtime#107961
812506 dotnet/sdk Checkout dotnet/sdk@refs/pull/43488/merge to s Log dotnet/sdk#43488
812523 dotnet/runtime Checkout dotnet/runtime@refs/pull/107961/merge to s Log dotnet/runtime#107961
812516 dotnet/runtime Checkout dotnet/runtime@refs/pull/107889/merge to s Log dotnet/runtime#107889
812508 dotnet/runtime Checkout dotnet/runtime@refs/pull/106599/merge to s Log dotnet/runtime#106599
812482 dotnet/runtime Checkout dotnet/runtime@refs/pull/107899/merge to s Log dotnet/runtime#107899
812517 dotnet/runtime Checkout dotnet/runtime@refs/pull/107889/merge to s Log dotnet/runtime#107889
812475 dotnet/runtime Checkout dotnet/runtime@refs/pull/107772/merge to s Log dotnet/runtime#107772
812510 dotnet/runtime Checkout dotnet/runtime@refs/pull/106599/merge to s Log dotnet/runtime#106599
812471 dotnet/runtime Checkout dotnet/runtime@refs/pull/106977/merge to s Log dotnet/runtime#106977
812215 dotnet/sdk Checkout dotnet/sdk@refs/pull/43157/merge to s Log dotnet/sdk#43157
812191 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7238/merge to s Log dotnet/machinelearning#7238
812192 dotnet/machinelearning Checkout dotnet/machinelearning@refs/pull/7238/merge to s Log dotnet/machinelearning#7238
811468 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/708/merge to s Log maestro-auth-test/helix-queue-insights-test#708
811323 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/707/merge to s Log maestro-auth-test/helix-queue-insights-test#707
811265 dotnet/performance Checkout dotnet/performance@refs/pull/4464/merge to s Log dotnet/performance#4464
810186 dotnet/runtime Checkout dotnet/runtime@refs/pull/107882/merge to s Log dotnet/runtime#107882
810242 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57907/merge to s Log dotnet/aspnetcore#57907
810240 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57907/merge to s Log dotnet/aspnetcore#57907
810153 dotnet/runtime Checkout dotnet/runtime@refs/pull/107888/merge to s Log dotnet/runtime#107888
810234 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57906/merge to s Log dotnet/aspnetcore#57906
810235 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57906/merge to s Log dotnet/aspnetcore#57906
810177 dotnet/runtime Checkout dotnet/runtime@refs/pull/107602/merge to s Log dotnet/runtime#107602
810180 dotnet/runtime Checkout dotnet/runtime@refs/pull/107590/merge to s Log dotnet/runtime#107590
810123 dotnet/runtime Checkout dotnet/runtime@refs/pull/107896/merge to s Log dotnet/runtime#107896
809944 dotnet/runtime Checkout dotnet/runtime@refs/pull/107708/merge to s Log dotnet/runtime#107708
809950 dotnet/sdk Checkout dotnet/sdk@refs/pull/43475/merge to s Log dotnet/sdk#43475
810016 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57904/merge to s Log dotnet/aspnetcore#57904
810018 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57904/merge to s Log dotnet/aspnetcore#57904
810017 dotnet/aspnetcore Checkout dotnet/aspnetcore@refs/pull/57904/merge to s Log dotnet/aspnetcore#57904
809940 dotnet/runtime Checkout dotnet/runtime@refs/pull/107851/merge to s Log dotnet/runtime#107851
809951 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43475
808737 dotnet/sdk Checkout dotnet/sdk@refs/pull/43460/merge to s Log dotnet/sdk#43460
808713 dotnet/sdk Checkout dotnet/sdk@refs/pull/43458/merge to s Log dotnet/sdk#43458
809709 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/705/merge to s Log maestro-auth-test/helix-queue-insights-test#705
809601 dotnet/runtime Checkout dotnet/runtime@refs/pull/107760/merge to s Log dotnet/runtime#107760
809594 dotnet/runtime Checkout dotnet/runtime@refs/pull/107858/merge to s Log dotnet/runtime#107858
809591 dotnet/runtime Checkout dotnet/runtime@refs/pull/107802/merge to s Log dotnet/runtime#107802
809563 dotnet/runtime Checkout dotnet/runtime@refs/pull/107818/merge to s Log dotnet/runtime#107818
809536 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/704/merge to s Log maestro-auth-test/helix-queue-insights-test#704
809358 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/703/merge to s Log maestro-auth-test/helix-queue-insights-test#703
808453 dotnet/sdk Checkout dotnet/sdk@refs/pull/43445/merge to s Log dotnet/sdk#43445
2538377 dotnet-runtime Checkout dotnet-runtime@release/9.0 to s Log
808266 dotnet/runtime Checkout dotnet/runtime@refs/pull/107712/merge to s Log dotnet/runtime#107712
808207 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/702/merge to s Log maestro-auth-test/helix-queue-insights-test#702
807981 dotnet/runtime Checkout dotnet/runtime@refs/pull/107776/merge to s Log dotnet/runtime#107776
807944 dotnet/runtime Checkout dotnet/runtime@refs/pull/107780/merge to s Log dotnet/runtime#107780
807940 dotnet/runtime Checkout dotnet/runtime@refs/pull/107747/merge to s Log dotnet/runtime#107747
807882 dotnet/sdk Checkout dotnet/sdk@refs/pull/43359/merge to s Log dotnet/sdk#43359
807881 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43359
807883 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43359
807466 dotnet/sdk Checkout dotnet/sdk@refs/pull/43409/merge to s Log dotnet/sdk#43409
807473 dotnet/installer Checkout dotnet/installer@refs/pull/20134/merge to s Log dotnet/installer#20134
807174 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/701/merge to s Log maestro-auth-test/helix-queue-insights-test#701
807079 dotnet/runtime Checkout dotnet/runtime@refs/pull/107750/merge to s Log dotnet/runtime#107750
806940 dotnet/runtime Checkout dotnet/runtime@refs/pull/107751/merge to s Log dotnet/runtime#107751
806728 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/698/merge to s Log maestro-auth-test/helix-queue-insights-test#698
806601 dotnet/runtime Checkout dotnet/runtime@refs/pull/107722/merge to s Log dotnet/runtime#107722
806598 dotnet/runtime Checkout dotnet/runtime@refs/pull/107638/merge to s Log dotnet/runtime#107638
806583 dotnet/runtime Checkout dotnet/runtime@refs/pull/107548/merge to s Log dotnet/runtime#107548
806646 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/697/merge to s Log maestro-auth-test/helix-queue-insights-test#697
806576 dotnet/runtime Checkout dotnet/runtime@refs/pull/107398/merge to s Log dotnet/runtime#107398
805858 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/696/merge to s Log maestro-auth-test/helix-queue-insights-test#696
805706 dotnet/runtime Checkout dotnet/runtime@refs/pull/107721/merge to s Log dotnet/runtime#107721
805491 dotnet/runtime Checkout dotnet/runtime@refs/pull/107584/merge to s Log dotnet/runtime#107584
805488 dotnet/runtime Checkout dotnet/runtime@refs/pull/107581/merge to s Log dotnet/runtime#107581
805495 dotnet/runtime Checkout dotnet/runtime@refs/pull/107676/merge to s Log dotnet/runtime#107676
805481 dotnet/runtime Checkout dotnet/runtime@refs/pull/107487/merge to s Log dotnet/runtime#107487
805485 dotnet/runtime Checkout dotnet/runtime@refs/pull/107500/merge to s Log dotnet/runtime#107500
805462 dotnet/runtime Checkout dotnet/runtime@refs/pull/107476/merge to s Log dotnet/runtime#107476
2536215 dotnet-aspnetcore Checkout dotnet-aspnetcore@refs/pull/42737/merge to s Log #42737
805266 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/695/merge to s Log maestro-auth-test/helix-queue-insights-test#695
805106 dotnet/runtime Checkout dotnet/runtime@refs/pull/107686/merge to s Log dotnet/runtime#107686
805059 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/694/merge to s Log maestro-auth-test/helix-queue-insights-test#694
804199 dotnet/sdk Checkout dotnet/sdk@refs/pull/43327/merge to s Log dotnet/sdk#43327
804198 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43327
804200 dotnet/sdk Clone dotnet/sdk Log dotnet/sdk#43327
804096 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/692/merge to s Log maestro-auth-test/helix-queue-insights-test#692
2534605 dotnet-sdk Checkout dotnet-sdk@refs/pull/42298/merge to s Log #42298
802086 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/690/merge to s Log maestro-auth-test/helix-queue-insights-test#690
802014 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/689/merge to s Log maestro-auth-test/helix-queue-insights-test#689
800304 dotnet/runtime Checkout dotnet/runtime@refs/pull/107463/merge to s Log dotnet/runtime#107463
800099 dotnet/installer Checkout dotnet/installer@refs/pull/20108/merge to s Log dotnet/installer#20108
800033 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/687/merge to s Log maestro-auth-test/helix-queue-insights-test#687
799474 dotnet/installer Checkout dotnet/installer@refs/pull/20091/merge to s Log dotnet/installer#20091
799458 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/686/merge to s Log maestro-auth-test/helix-queue-insights-test#686
799198 dotnet/runtime Checkout dotnet/runtime@refs/pull/107409/merge to s Log dotnet/runtime#107409
798807 maestro-auth-test/helix-queue-insights-test Checkout maestro-auth-test/helix-queue-insights-test@refs/pull/685/merge to s Log maestro-auth-test/helix-queue-insights-test#685
797991 dotnet/runtime Checkout dotnet/runtime@refs/pull/106340/merge to s Log dotnet/runtime#106340
797990 dotnet/runtime Checkout dotnet/runtime@refs/pull/106340/merge to s Log dotnet/runtime#106340
797875 dotnet/runtime Checkout dotnet/runtime@refs/pull/107039/merge to s Log dotnet/runtime#107039
797845 dotnet/runtime Checkout dotnet/runtime@refs/pull/107147/merge to s Log dotnet/runtime#107147
Displaying 100 of 173 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 59 173

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=323960
Error message validated: Git fetch failed with exit code: 128
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/28/2023 9:15:14 PM UTC

@ChadNedzlek
Copy link
Member

So this is... interesting. I agree this seems like essentially a random network failure that is not the fault of the code. Also... it doesn't seem like there is anything to be done other than retry the build.

@ulisesh and @AlitzelMendez. This seems like another instance of a "known issue" that would really benefit from the ability to get retried automatically. I think Carlos did the right thing by opening the known issue, but his PR (and any future PR that hits this) is still going to be blocked, since the build doesn't run at all in this case, because the checkout failed. And it would be great to help folks that hit this.

@ulisesh
Copy link
Contributor

ulisesh commented Apr 13, 2022

I created the issue to track how often it was happening and measure the impact of the problem. It might be hard to get traction on networking problems but having the number of impacted builds has great value in my opinion.

In the last 24 hours, we had 37 builds failed with the same error. cc @markwilkie who might find this data interesting.

I think automatic retries for known issues will be the next feature after we are done with analyzing builds retroactively, we can discuss this if people think we should change priorities.

@markwilkie
Copy link
Member

So 37 builds were caught with the known issues feature @ulisesh ? Could I get the query please? (super exciting)

@ulisesh
Copy link
Contributor

ulisesh commented Apr 13, 2022

I saw 37 hits in the office but now I only see 33 🤔. There are 33 failed jobs in 2 different builds. Sorry if I misused the terms but I still think it is great that we can track these build breaks 😄

This is the query:

KnownIssues
| where IssueId == 9009 and IssueRepository == "dotnet/arcade"

@ilyas1974 ilyas1974 self-assigned this Apr 19, 2022
@ilyas1974 ilyas1974 removed their assignment Jun 22, 2022
@ilyas1974 ilyas1974 removed Ops - First Responder Detected By - Customer Issue was reported by a customer labels Jun 22, 2022
@danmoseley danmoseley changed the title Checkout dotnet/runtime step failure: "Git fetch failed with exit code 128" Checkout failure: "Git fetch failed with exit code 128" Oct 7, 2022
@ViktorHofer
Copy link
Member

ViktorHofer commented Jan 11, 2023

This happened 36 times in the last 24 hours. Should we add a retry (assuming that's possible)?

@premun
Copy link
Member

premun commented Jan 11, 2023

GitHub reported degraded git operations yesterday: https://www.githubstatus.com/incidents/00km0kwpz23b
We saw problems cloning all over. Maybe it's related to that?

@dougbu
Copy link
Member

dougbu commented Jan 8, 2024

This issue may have started in early 2022 but seems to remain w/ 29 matching failures in the last 24 hours. https://www.githubstatus.com/ and various Azure / Azure DevOps status pages aren't showing any current or recent degradations. Unclear what's going on this time beyond what appears to be DNS flakiness. I looked at the last 7 reports; all but one showed fatal: unable to access 'https://github.com/dotnet/runtime/': Could not resolve host: github.com and a few also showed fatal: unable to access 'https://github.com/dotnet/runtime/': Failed to connect to github.com port 443 after 75012 ms: Couldn't connect to server.

Without more information, I think the best we could do is auto retry when the problem occurs. @AlitzelMendez and @carlossanlop what are your thoughts on including "BuildRetry": true in the JSON content in this description❔

@carlossanlop
Copy link
Member Author

It's fine, we can try that, as long as we monitor it closely, because if we keep seeing the failure even with a retry, I think we should just go back to "BuildRetry": false, to avoid wasting resources.

@dougbu
Copy link
Member

dougbu commented Jan 8, 2024

you mean "BuildRetry": true was tried in the past and didn't help much @carlossanlop❔ if the extra time it takes PR creators to click the Rerun failed builds actually helps avoid issues in the retry, I'd lean toward leaving things as-is.

@carlossanlop
Copy link
Member Author

I do not know if it was tried in the past.

@AlitzelMendez
Copy link
Member

sounds like a good plan @dougbu, let's try "BuildRetry": true, I will put together a query to monitor if it is helpful for this issue

@dougbu
Copy link
Member

dougbu commented Jan 8, 2024

updated the description to try retries

@AlitzelMendez
Copy link
Member

query:

let buildIds =
KnownIssues
| where ingestion_time() > datetime(2024-01-08 23:10:44.8683418)
| where IssueId  == 9009
| distinct BuildId;
TimelineBuilds
| where BuildId  in (buildIds)
| summarize arg_max(FinishTime, *) by BuildId
| summarize count() by Result, bin(FinishTime, 1d)
| order by FinishTime asc 
| render columnchart with (xcolumn=FinishTime)

I will check this on Monday to see how it is going, posting here the query so I don't loose it :)

@AlitzelMendez
Copy link
Member

the success rate (having a green build) after the retry was between 30% to 50% per day, so this doesn't solve the issue, it just helps to mitigate it a little bit.

@AlitzelMendez AlitzelMendez removed their assignment Jan 16, 2024
@ilyas1974 ilyas1974 added the Ops - Facilely Operations issues that are easily accomplished or attained label Feb 21, 2024
@garath garath added the Ops - P2 Operations task, priority 2 label Mar 28, 2024
@ilyas1974 ilyas1974 removed the Ops - P2 Operations task, priority 2 label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Known Build Error Ops - Facilely Operations issues that are easily accomplished or attained
Projects
None yet
Development

No branches or pull requests

10 participants