Skip to content

Workarounds for errors from flaky connections to Swiftly #7

Description

@vanvoorden

Please summarize your feature request

Potential new auto-retry-attempts argument?

Describe the functionality you're seeking in more detail

Hi! I just added the swiftly-action to my GitHub actions for building Linux. I like it a lot!

I seem to be getting some flaky connections when trying to download the Swiftly tool or a Swift toolchain. About one out of every 200 attempts seem to fail with some kind of connection error:

  • Error: stream ended at an unexpected time
  • curl: (56) Recv failure: Connection reset by peer
  • Error: HTTPClientError.readTimeout

I'm not sure there's anything that can be done inside swiftly-action to fix these errors from happening… but could we possibly add support for auto-retry? Could we assume that certain errors should lead to another connection attempt?

I'm currently passing a toolchain configuration variable to swiftly-action. Would the best way to support auto-retry be a new configuration argument? Something like auto-retry-attempts?

Have you considered any alternatives?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions