Skip to content

ESOCKETTIMEDOUT on run creation prevents retry #33319

@eswanny22

Description

@eswanny22

Current behavior

When creating a Cypress Cloud run, if the network response is slow and times out, the client retry logic fails because the run was already successfully created on the server side.

Desired behavior

The retry should either succeed or gracefully handle the case where the run was already created.

Test code to reproduce

  1. Client makes request to create Cypress Cloud run with --group and --ci-build-id
  2. Cloud successfully creates the run
  3. Response times out before reaching client (ESOCKETTIMEDOUT)
  4. Client retries with same --group and --ci-build-id
  5. Cloud rejects the retry with "group name already used" error

Cypress Version

14.4.0

Debug Logs

We encountered an unexpected error communicating with our servers.

RequestError: Error: ESOCKETTIMEDOUT

We will retry 3 more times in 30 seconds...

You passed the --group flag, but this group name has already been used for this run.

The existing run is: https://cloud.cypress.io/projects/******/runs

The --group flag you passed was: *****
The --ciBuildId flag you passed was: *****

If you are trying to parallelize this run, then also pass the --parallel flag, else pass a different group name.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions