Open pakrym opened 3 years ago
Could that be the underlying issue? https://github.com/nodejs/node/issues/35824 Seems to have been a bug in node 14 resolved in node 15+. Also not sure what code is the source of this. AutroRest doesn't directly use this and this seems it would be caused by a "server" connection not a client
Hm, maybe.
cc @AlexanderSher we might need to update node across the board.
Node 16 will become the new LTS version Oct 26th https://nodejs.dev/download
Is it supported by autorest?
Yeah, the integration tests are running against it.
Update to node 16 didn't help.
AutoRest code generation utility [cli version: 3.4.1; node: v16.13.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
(node:15376) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info | AutoRest core version selected from configuration: 3.6.6.
EXEC : error : read ECONNRESET [/mnt/vss/_work/1/s/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj]
at TLSWrap.onStreamRead (node:internal/stream_base_commons:220:20)
This makes .NET builds very flaky. I had pipeline fail with this error twice in a row just now.
Did you ever repro this locally?
Nope, wasn't able to. Only time see it is in core PR that generates a lot of libraries in parallel
Im really don't know where this could be happening, when reading files it will catch errors and retry already. Any chance you could
--debug --verbose
Looking at builds it seems to always fail during the ResourceManager.Network generation.
@AlexanderSher can we pick up the latest Autorest?
Sorry to reopen this old issue but this issue is not fixed and as we scale across the board we are hitting very often in all languages running autorest codegen. We need to get to the bottom of this issue and ensure we are correctly retrying or fixing any potential race conditions that is causing this issue.
In the .NET repo we run a lot of instances of autorest in parallel.
SOmetimes they fail with
We should retry errors like these as they are often transient.