question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jennifer-shehanecommented, Feb 5, 2021

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

2reactions
matthemstegercommented, Feb 5, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
Read more >
Session timeout in BrowserStack Automate
BrowserStack Automate supports session durations up to 2 hours. If a session is running for more than 7200 seconds (2 hours), the session...
Read more >
Load Testing Complete Guide for Beginners
The steady state will usually be a one-hour Load test with Ramp up of 15 min and Ram down of 15 min. Let...
Read more >
Load Testing Best Practices | Blazemeter by Perforce
Get the load testing best practices you need to drive success. In this blog, we break down everything you need to know. Table...
Read more >
Six Minute Walk Test / 6 Minute Walk Test - Physiopedia
You only have 1 minute to go. With 15 seconds to go: “In a moment I'm going to tell you to stop. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found