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

Dashboard: tests passing in seconds, but keeps running for +1 hour. #14929

Closed
MarkLyck opened this issue Feb 5, 2021 · 17 comments
Closed

Dashboard: tests passing in seconds, but keeps running for +1 hour. #14929

MarkLyck opened this issue Feb 5, 2021 · 17 comments
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App type: bug

Comments

@MarkLyck
Copy link

MarkLyck commented Feb 5, 2021

Current behavior

Whenever a run is started on the cypress dashboard, the tests pass quickly. But it keeps being stuck in "Running" for multiple hours.

This seems to have started happening today.

The exact same tests that is now taking 2 hours & counting. Were passing in 10 seconds this morning.

It seems to have gradually gotten worse (even though I have made no changes to the tests, or the pages related to the tests).

Tests running this morning:
Screen Shot 2021-02-04 at 19 24 44

The same tests running now:
Screen Shot 2021-02-04 at 19 25 12

The output of the tests showing it's passing in 1 second
Screen Shot 2021-02-04 at 19 25 59

When running cypress locally in open mode, it finishes in 5 seconds.
When running cypress in CI mode with record key. It finishes in ~4 seconds (and exits out correctly).

When running it in GitHub, it finishes in ~4 minutes (mostly installing node_modules & building), but the run in the dashboard never ends...

in console:
Screen Shot 2021-02-04 at 19 27 54

The status looks like this for about an hour or so.
Screen Shot 2021-02-04 at 19 29 12

Then it does change to reflect saying my 2 tests have passed. but it's STILL running... :(

Screen Shot 2021-02-04 at 19 30 02

This is blocking our CI/CD pipeline as the Cypress status takes hours to pass.

Desired behavior

The tests should be marked as passed after all assertions have passed & cypress should stop running.
Status checks should pass if tests all tests have passed.

Test code to reproduce

integration test:

import {
  SPEC_MOCK
} from '../../src/test/mocks'

declare var cy: any

describe('Page load', () => {
  it('Should visit the page', () => {
    cy.intercept(
      { method: 'GET', url: 'https://api.colonynetworks.com/v3/timescale' },
      SPEC_MOCK
    )

    cy.visit('localhost:5000')
    cy.contains('Dashboard')
  })
})

Github workflow:

name: Integration tests

on: [push]

jobs:
  cypress-run:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Cypress run
        uses: cypress-io/github-action@v2
        with:
          build: yarn build
          start: yarn serve
          wait-on: http://localhost:5000
          record: true
        env:
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Versions:

"cypress": "6.4.0", (latest as of today)

Any idea why this is happening O.o?

@milan-easykad
Copy link

I have just experience the same issue with the Cypress Dashboard using Cypress versions 6.4.0 and 6.3.0, and running tests locally and from AWS CodeBuild Pipeline.

@matthemsteger
Copy link

Unfortunately, if you have github integration turned on with status checks, this will block your build pipeline.

@jennifer-shehane
Copy link
Member

I'm looking into this with our engineering. Is this issue still occuring?

@cypress-bot cypress-bot bot added the stage: investigating Someone from Cypress is looking into this label Feb 5, 2021
@jennifer-shehane jennifer-shehane added external: dashboard stage: investigating Someone from Cypress is looking into this type: bug and removed stage: investigating Someone from Cypress is looking into this labels Feb 5, 2021
@jenwei
Copy link

jenwei commented Feb 5, 2021

@jennifer-shehane - I'm not seeing the issue anymore and am seeing tests complete

@jennifer-shehane
Copy link
Member

We are investigating a possible incident during the time this was reported. I'll update the issue when I have more detail.

@bodinsamuel
Copy link

I confirm the same behavior, right now (Sunday 07/02/2020 21:00 Paris)
In circle ci that means consuming credit for 5hours until timeout :/

@jennifer-shehane
Copy link
Member

@bodinsamuel Can you email [email protected] with the details of the specific run this is occurring on? I think this is likely a new issue.

@jennifer-shehane
Copy link
Member

Closing as resolved as it seems to have been an incident that is no longer occuring.

@KrupalVaghasiya
Copy link

@jennifer-shehane I am facing same issue. in my case in the cypress dashboard test will not stop until i cancel it manually.

@swati-goyal
Copy link

swati-goyal commented May 2, 2022

@jennifer-shehane Facing the same issue on circleci, and getting Too long with no output (exceeded 20m0s): context deadline exceeded error (Version 9.6.0). I have tried everything suggested on different platforms. Now downgraded cypress version (to 9.5.0) and trying again.

@alineborak
Copy link

alineborak commented Jun 14, 2022

@jennifer-shehane I'm facing the same issue, this just started happening.
All my tests passed, but it keeps running.

@joostslijkoort
Copy link

Same here.

@kostekd
Copy link

kostekd commented Dec 30, 2022

Same here. Still looking for a solution

@MelikeTopcu
Copy link

We are having the same problem, @jennifer-shehane we sent an e-mail and we are waiting for a reply.

@muranea
Copy link

muranea commented Oct 4, 2023

@jennifer-shehane I am seeing it as well

@jennifer-shehane jennifer-shehane added Cypress Cloud Feature request or issue in Cypress Cloud, not App and removed external: cloud labels Oct 5, 2023
@onlypfachi
Copy link

I'm having this same issue. What is the solution @jennifer-shehane ?

@onlypfachi
Copy link

onlypfachi commented Dec 15, 2023

Oh, this seems to be caused by the cy.origin(). If you put any line after it somehow it keeps loading even though the test passes. Removed all my everything after cy.origin() and it's fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App type: bug
Projects
None yet
Development

No branches or pull requests