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

Respond to 'cancel run' from Dashboard and cancel remaining specs #1691

Closed
jennifer-shehane opened this issue May 8, 2018 · 20 comments · Fixed by #14925
Closed

Respond to 'cancel run' from Dashboard and cancel remaining specs #1691

jennifer-shehane opened this issue May 8, 2018 · 20 comments · Fixed by #14925
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App pkg/server This is due to an issue in the packages/server directory
Milestone

Comments

@jennifer-shehane
Copy link
Member

jennifer-shehane commented May 8, 2018

New button to 'Cancel' run will be added to Dashboard, want to cancel the run and any remaining specs left to run.

Cancel button (only displayed when running):
screen shot 2018-04-17 at 4 19 04 pm

API Issue: https://github.com/cypress-io/cypress-api/issues/455
Dashboard Issue: https://github.com/cypress-io/cypress-dashboard/issues/502

@joelclimbsthings
Copy link

+1
I actually have a run now that's been "running" for 19 hours waiting for results. Not sure how I can remove it?

@jennifer-shehane
Copy link
Member Author

Yes, this unfortunately didn't make it in 3.0, will be aiming for 3.1 release of this now.

Deleting a run is also a feature. Opened an issue here for that: #1839

@irensoltan
Copy link

+1
This is totally needed! My test failed in Circle CI, but is still running in Cypress - almost an hour now.

@jennifer-shehane
Copy link
Member Author

@brian-mann TODO for run cancellation on test runner

  • Test runner should expect 422 RUN_CANCELLED and 422 INSTANCE_CANCELLED (or whatever the API ends up sending and write specific error message:

    This run was cancelled by ...... at ...... To see the results of the run visit ....url

  • When user cancels run in CI or when kills process locally -via SIGKILL, SIGINT, SIGTERM (or something) - could we send a request from the Test Runner to the API to do a POST runs/id/cancel to cancel the run - (may not have cancelledBy in this situation - so may be null)?

@puneetiet
Copy link

puneetiet commented Jan 4, 2019

its still not there in 3.1.4. my test are running in dashboard for more than 1.5 hours now

@jennifer-shehane jennifer-shehane modified the milestones: Sprint 15, Sprint 18 Jan 7, 2019
@jennifer-shehane
Copy link
Member Author

@puneetiet Yes, this run cancellation not been released yet. If the run runs longer than 90 minutes, you should open a new issue because this should not happen.

@dafiber
Copy link

dafiber commented Apr 22, 2019

my tests are running in dashboard more than 22 hours now.. (version 3.2) how I can stop them?

@jennifer-shehane
Copy link
Member Author

@dafiber This should never happen. If you can, please email extra details to support@cypress.io about your run.

@testingtrail
Copy link

Any news regarding the Cancel button? Thanks!

@DennisLoska
Copy link

My question is not 100% related, but is there a way to cancel a run/spec when using the Cypress module API? I have not found anything in the docs which would suggest that. I would like to be able to cancel a run with e.g. cy.cancel(), or do I need to run cypress in a Node child process and end the child process in order to end a running test?

@SUSANO-O
Copy link

holle How to remove test from the dashboard vesion 3.3.1?thanks

@jennifer-shehane
Copy link
Member Author

@DennisLoska You may want to look at some of the workarounds in this issue: #518

@SUSANO-O This is not currently supported. See this issue: #1839

@jhays-nhaschools
Copy link

I don't know whether this is technically feasible, but if possible, it would be nice if cancelled runs still had video output.

@SUSANO-O
Copy link

hello good day there are examples of how to use window other than cypress documents, muchas gracias.

@rikumo
Copy link

rikumo commented Sep 24, 2019

Hi. Just I'm having same issue as @dafiber. How do I stop my spec file that has been running for a while now. The job has already failed in circleci. Or even a workaround for this would be appreciated. Thanks.

@ChaseBig
Copy link

Hello, any updates on this? @jennifer-shehane

Or any feasible workarounds? 90% of my builds sit there still thinking tests are running even though they're not.

@jennifer-shehane
Copy link
Member Author

JSON schemas changes to be tested against: https://github.com/cypress-io/json-schemas/pull/507

@namhuynhkien
Copy link

namhuynhkien commented Feb 27, 2020

Hello,
Please ignore the issue below. We found the issue come from our end.
We are facing problem that the tests keep running more than 90 minutes and still goes on. I already emailed for support but haven't received any response.
In addition, we cannot run the tests as well.
Hope to hear from you soon.

@cypress-bot cypress-bot bot added stage: proposal 💡 No work has been done of this issue and removed stage: work in progress labels Jul 13, 2020
@cypress-bot cypress-bot bot added stage: pending release and removed stage: proposal 💡 No work has been done of this issue labels Mar 15, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 15, 2021

The code for this is done in cypress-io/cypress#14925, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 15, 2021

Released in 6.7.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Mar 15, 2021
@jennifer-shehane jennifer-shehane added Cypress Cloud Feature request or issue in Cypress Cloud, not App and removed external: cloud labels Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Cypress Cloud Feature request or issue in Cypress Cloud, not App pkg/server This is due to an issue in the packages/server directory
Projects
None yet
Development

Successfully merging a pull request may close this issue.