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

spec is skipped if the /runs/<runId>/instances call fails #30628

Closed
mschile opened this issue Nov 16, 2024 · 1 comment · Fixed by #30697
Closed

spec is skipped if the /runs/<runId>/instances call fails #30628

mschile opened this issue Nov 16, 2024 · 1 comment · Fixed by #30697
Assignees

Comments

@mschile
Copy link
Contributor

mschile commented Nov 16, 2024

Current behavior

If the /runs/<runId>/instances call fails and then succeeds, the current spec is skipped and execution moves onto the next spec but the app run doesn't fail or show any output from the first spec.

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        13.15.2                                                                        │
  │ Browser:        Chrome 131 (headless)                                                          │
  │ Node Version:   v20.18.0 (/Users/mschile/.nvm/versions/node/v20.18.0/bin/node)                 │
  │ Specs:          2 found (aliasing.cy.js, window.cy.js)                                         │
  │ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            │
  │ Params:         Tag: false, Group: false, Parallel: false                                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

We encountered an unexpected error communicating with our servers.

RequestError: Error: ESOCKETTIMEDOUT

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


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  window.cy.js                                                                    (2 of 2)
  Estimated: 1 second


  Window
    ✓ cy.window() - get the global window object (395ms)
    ✓ cy.document() - get the document object (74ms)
    ✓ cy.title() - get the title (64ms)


  3 passing (1s)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      3                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     1 second                                                                         │
  │ Estimated:    1 second                                                                         │
  │ Spec Ran:     window.cy.js                                                                     │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Uploading Cloud Artifacts)

  - Video - Nothing to upload 
  - Screenshot - Nothing to upload 
  - Test Replay - 520 kB

  Uploading Cloud Artifacts: . 

  (Uploaded Cloud Artifacts)

  - Test Replay - Done Uploading 520 kB in 670.89ms 1/1

====================================================================================================

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  window.cy.js                             00:01        3        3        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:01        3        3        -        -        -  


───────────────────────────────────────────────────────────────────────────────────────────────────────

✨  Done in 102.55s.

Desired behavior

No response

Test code to reproduce

  • Record a run that includes multiple specs.
  • Force the /runs/<runId>/instances call to fail and then succeed (I setup a proxy to intercept the request and forced the first one to fail).
  • Observe that the first spec is skipped and doesn't show any output.

Cypress Version

13.15.2

Node version

v20.18.0

Operating System

macOS

Debug Logs

No response

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 4, 2024

Released in 13.16.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.16.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Dec 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants