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

Cypress dashboard does not update status/duration of run when killed from CI / terminal #17098

Closed
jjkavalam opened this issue Jun 24, 2021 · 6 comments
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App type: duplicate This issue or pull request already exists

Comments

@jjkavalam
Copy link

jjkavalam commented Jun 24, 2021

Current behavior

Given, a cypress run that got terminated (killed), the duration reported on the dashboard does not reflect the time the test suite was actually in execution.

Desired behavior

The dashboard should be aware that the test runner got killed and report the duration / status accordingly.

Test code to reproduce

  • Get hold of any cypress test suite
  • Get hold of a cypress dashboard account
  • Setup the test to report to the dashboard
  • Run the test using cypress run ...
  • Kill the test while it's in the middle of executing a test
  • Check the dashboard for the duration / status of the test

The dashboard shows the test as still in progress; and the duration keeps increasing.

Versions

Tested on 7.1.0

@jjkavalam
Copy link
Author

From my own experience, when working with a number of developers, this issue has the potential to create some confusion.


On a different note,

Is there a web API that can be used to notify dashboard that the test terminated ?

Perhaps a separate "monitor" process could be employed ... eager to hear ideas / solutions.

@jennifer-shehane jennifer-shehane added external: dashboard type: unexpected behavior User expected result, but got another stage: ready for work The issue is reproducible and in scope labels Jun 24, 2021
@jennifer-shehane jennifer-shehane changed the title Cypress dashboard reports wrong test duration if the test run gets killed Cypress dashboard does not update status/duration of run when killed from CI / terminal Jun 24, 2021
@jennifer-shehane
Copy link
Member

Currently when a run is cancelled from the CI or the terminal, Cypress does not detect this kill signal and it is not communicated to the Dashboard. So the Dashboard essentially receives no signal as to the progress of the test run. If the Dashboard receives no signal for 1.5 hours, then the run is killed on our side.

I agree that this is not expected behavior and that the Dashboard should reflect any killed runs, so we'll keep this issue open to track this behavior.

@hjortskalbagge
Copy link

Hi @jennifer-shehane , since this issue is ready for work for a while now, heavily related to #18168, and affecting us as well, could you give us an update on the current status on this topic? ;)
Greetings!

@namoscato
Copy link

@jennifer-shehane, any update on the prioritization of this behavior change?

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Sep 25, 2023
@jennifer-shehane jennifer-shehane added Cypress Cloud Feature request or issue in Cypress Cloud, not App and removed external: cloud labels Oct 5, 2023
@cypress-app-bot cypress-app-bot removed the stale no activity on this issue for a long period label Oct 6, 2023
@jennifer-shehane
Copy link
Member

Going to close this issue as a duplicate of #21125

@jennifer-shehane jennifer-shehane added type: duplicate This issue or pull request already exists and removed stage: ready for work The issue is reproducible and in scope type: unexpected behavior User expected result, but got another labels Oct 11, 2023
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: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants