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

Protocol: [Upload] Getting Error on Gitlab CI/CD run when trying to upload test replay #27844

Closed
zgejadze opened this issue Sep 19, 2023 · 4 comments

Comments

@zgejadze
Copy link

Current behavior

I updated to cypress 13.1.
When I try to see test replay in Cypress Cloud
image

And this is output in logs:

  - Test Replay - Failed Capturing - [
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              1,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              1,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              1,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      1
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              2,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              2,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              2,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      2
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              3,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              3,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              3,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      3
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              4,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              4,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              4,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      4
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              5,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              5,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              5,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      5
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              6,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              6,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              6,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      6
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              7,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              7,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              7,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      7
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              8,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              8,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              8,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      8
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              9,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              9,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              9,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      9
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              10,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              10,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              10,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      10
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              11,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              11,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              11,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      11
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              12,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              12,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              12,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      12
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              13,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              13,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              13,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      13
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              14,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              14,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              14,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      14
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              15,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              15,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              15,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      15
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              16,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              16,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              16,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      16
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              17,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              17,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              17,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      17
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              18,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              18,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              18,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      18
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              19,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              19,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              19,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      19
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              20,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              20,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              20,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      20
    ],
    "message": "Invalid input"
  },
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "err",
              "parsedStack",
              21,
              "message"
            ],
            "message": "Required"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              21,
              "column"
            ],
            "message": "Expected number, received string"
          },
          {
            "code": "invalid_type",
            "expected": "number",
            "received": "string",
            "path": [
              "err",
              "parsedStack",
              21,
              "line"
            ],
            "message": "Expected number, received string"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "err",
      "parsedStack",
      21
    ],
    "message": "Invalid input"
  }
]

Desired behavior

Test replay should be uploaded with other artifacts and should be accessible from Cypress cloud

Test code to reproduce

I don't have test code as this issue is more likely cypress-gitlab related IMO

Cypress Version

13.1

Node version

16.14.2

Operating System

ubuntu-latest

Debug Logs

No response

Other

No response

@nagash77
Copy link
Contributor

Hi @zgejadze can you try upgrading to the latest version of Cypress and see if the behavior persists? We have addressed several issues on our end since 13.1 that may help. Comment back here after you have given that a try.

@nagash77 nagash77 self-assigned this Sep 21, 2023
@zgejadze
Copy link
Author

Hi @nagash77 tried with latest version (13.2.0) same issue, I noticed that on passed tests test replay is uploaded.

@jennifer-shehane jennifer-shehane changed the title Getting Error on Gitlab CI/CD run when trying to upload test replay Protocol: [Upload] Getting Error on Gitlab CI/CD run when trying to upload test replay Dec 17, 2023
@jennifer-shehane jennifer-shehane added Test Replay stage: needs investigating Someone from Cypress needs to look at this labels Dec 17, 2023
@jennifer-shehane
Copy link
Member

@zgejadze If this issue is still occurring for you, could you send a link to the Run where the Test Replay failed uploading? Please try updating first as well.

@zgejadze
Copy link
Author

@jennifer-shehane Issue is no longer reproducable, even on same versions

@jennifer-shehane jennifer-shehane removed the stage: needs investigating Someone from Cypress needs to look at this label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants