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

[Prioritized] Retry all git commands (aside from internal mechanisms) #5660

Closed
scbedd opened this issue Mar 8, 2023 · 2 comments
Closed
Assignees
Labels
Central-EngSys This issue is owned by the Engineering System team.

Comments

@scbedd
Copy link
Member

scbedd commented Mar 8, 2023

Specifically in the case of a timeout, not other command errors. Is there any way to verify that exit code?

@scbedd scbedd added the Central-EngSys This issue is owned by the Engineering System team. label Mar 8, 2023
@scbedd scbedd self-assigned this Mar 8, 2023
@scbedd
Copy link
Member Author

scbedd commented Mar 17, 2023

What this looks like in log:

2023-03-08T20:08:36.6127360Z ========================== Starting Command Output ===========================
2023-03-08T20:08:36.6165040Z [command]/usr/local/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/Users/runner/work/_temp/eb6b21ee-5314-44bf-9a9b-f90564d6af6a.ps1'
2023-03-08T20:08:37.1478840Z git --version
2023-03-08T20:08:37.2786400Z git remote -v
2023-03-08T20:08:37.2979630Z git clone -c core.longpaths=true --no-checkout --filter=tree:0 [https://github.com/Azure/azure-sdk-assets](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-sdk-assets&data=05%7C01%7Cscbedd%40microsoft.com%7C6fbdcd3242ef4ee4e2e608db201d51ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638139082529505728%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=D2L5lcciGUtHx7HmcIRrkLdyzbTGSZJL2rY78TmeUvo%3D&reserved=0) .
2023-03-08T20:08:45.3768300Z Unhandled exception. Azure.Sdk.Tools.TestProxy.Common.Exceptions.HttpException: Invocation of "git clone -c core.longpaths=true --no-checkout --filter=tree:0 [https://github.com/Azure/azure-sdk-assets](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-sdk-assets&data=05%7C01%7Cscbedd%40microsoft.com%7C6fbdcd3242ef4ee4e2e608db201d51ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638139082529661908%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9TDuGnA2Gi3G3NKHHUk2CErs%2FEbywT8eBkeeecSGc64%3D&reserved=0) ." had a non-zero exit code -1.
2023-03-08T20:08:45.3779650Z StdOut:
2023-03-08T20:08:45.3782290Z StdErr: Cloning into '.'...
2023-03-08T20:08:45.3784360Z fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/': Failed to connect to github.com port 443: Operation timed out
2023-03-08T20:08:45.3785680Z
2023-03-08T20:08:45.3786200Z
2023-03-08T20:08:45.3788770Z    at Azure.Sdk.Tools.TestProxy.Store.GitStore.InitializeAssetsRepo(GitAssetsConfiguration config, Boolean forceInit) in /mnt/vss/_work/1/s/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs:line 456
2023-03-08T20:08:45.3791720Z    at Azure.Sdk.Tools.TestProxy.Store.GitStore.Restore(String pathToAssetsJson) in /mnt/vss/_work/1/s/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs:line 152
2023-03-08T20:08:45.3794070Z    at Azure.Sdk.Tools.TestProxy.Startup.Run(Object commandObj) in /mnt/vss/_work/1/s/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs:line 154
2023-03-08T20:08:45.3795680Z    at CommandLine.ParserResultExtensions.WithParsedAsync[T](ParserResult`1 result, Func`2 action)
2023-03-08T20:08:45.3797700Z    at Azure.Sdk.Tools.TestProxy.Startup.Main(String[] args) in /mnt/vss/_work/1/s/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs:line 67
2023-03-08T20:08:45.3799200Z    at Azure.Sdk.Tools.TestProxy.Startup.<Main>(String[] args)
2023-03-08T20:08:45.7767260Z ##[error]PowerShell exited with code '1'.
2023-03-08T20:08:45.7791310Z ##[section]Finishing: Restore Recordings

@scbedd
Copy link
Member Author

scbedd commented Mar 17, 2023

Occurrence information:

Data Source

BuildLogLine
| where Timestamp > ago(14d)
| where Message has "fatal: unable to access 'https://github.com/Azure/azure-sdk-assets/'"
| extend DefinitionId=BuildDefinitionId
| summarize CountForBuildDefinition=count() by Message, BuildId
| join kind=inner Build on BuildId
| project CountForBuildDefinition, DefinitionName, Message
| sort by CountForBuildDefinition desc

@scbedd scbedd moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🚢🎉 Apr 17, 2023
@scbedd scbedd closed this as completed Apr 17, 2023
@github-project-automation github-project-automation bot moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 🚢🎉 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team.
Projects
None yet
Development

No branches or pull requests

1 participant