Currents Documentation
Currents.devGitHubChangelog
  • Getting Started
    • What is Currents?
    • Playwright
      • Playwright: Quick Start
      • Troubleshooting Playwright
    • Cypress
      • Your First Cypress Run
      • Integrating with Cypress
        • Compatibility
        • Alternative Cypress Binaries
      • Troubleshooting Cypress
    • Jest
      • Your First Jest Run
      • Detox + Jest
      • Troubleshooting Jest
    • Others
    • CI Setup
      • GitHub Actions
        • Cypress - GitHub Actions
        • Playwright - GitHub Actions
        • Jest - GitHub Actions
        • Node.js - GitHub Actions
        • Commit data for GitHub Actions
        • Custom Docker runners
        • Named Runners
      • GitLab
        • Cypress - GitLab CI/CD
        • Playwright - GitLab CI/CD
        • Custom Docker runners
      • Jenkins
        • Cypress - Jenkins
        • Playwright - Jenkins
      • CircleCI
        • Cypress - CircleCI
        • Playwright - CircleCI
      • Bitbucket
        • Cypress - Bitbucket Pipelines
      • Azure DevOps
        • Cypress - Azure DevOps
        • Playwright - Azure DevOps
      • AWS Code Build
        • Cypress - AWS Code Build
        • Playwright - AWS Code Build
      • NX
        • Playwright - NX
        • Cypress - NX
  • Guides
    • Record Key
    • CI Build ID
    • Reporting
      • Reporting Strategy
      • Reporting in CI
      • Step-Level Reporting
    • CI Optimization
      • Playwright Parallelization
      • Orchestration Setup
      • Fully Parallel Mode
      • Re-run Only Failed Tests
      • Cloud Spot Instances
      • Failing Fast
      • Load Balancing
    • Code Coverage
      • Code Coverage for Playwright
      • Code Coverage for Cypress
    • Currents Actions
      • Setup Currents Actions
      • Using Currents Actions
      • Reference
        • Conditions
        • Actions
    • Playwright Component Testing
    • Playwright Visual Testing
    • Playwright Annotations
    • Playwright Tags
    • MCP Server
  • Dashboard
    • Projects
      • Projects Summary view
      • Project Settings
      • Archive and Unarchive Projects
    • Runs
      • Run Status
      • Run Details
      • Commit Information
      • Tags
      • Run Timeouts
      • Cancelling Runs
      • Deleting Runs
      • Run Progress
    • Tests
      • Spec File Status
      • Test Status
      • Flaky Tests
      • Test History
    • Test Suite Explorer
      • Test Explorer
        • Tests Performance
      • Spec Files Explorer
        • Spec Files Performance
      • Errors Explorer
  • Automated Reports
  • Insights and Analytics
  • Administration
    • Email Domain Based Access
    • SSO SAML2.0
      • SAML2.0 Configuration
      • SCIM User Provisioning
      • IdP-initiated Sessions
      • JumpCloud
        • JumpCloud User provisioning
      • Okta
        • Okta User provisioning
      • Troubleshooting SSO
    • Billing & Usage
  • Billing and Pricing
  • Resources
    • Reporters
      • cypress-cloud
        • Batched Orchestration
        • Migration to Cypress@13
      • @currents/cli
      • @currents/playwright
        • Configuration
        • pwc
        • pwc-p (orchestration)
        • Playwright Fixtures
      • @currents/jest
      • @currents/node-test-reporter
      • @currents/cmd
        • currents api
        • currents upload
        • currents cache
        • currents convert
      • Data Format Reference
    • Integrations
      • GitHub
        • GitHub App
        • GitHub OAuth
      • GitLab
      • Slack
      • Microsoft Teams
      • HTTP Webhooks
      • Bitbucket
    • API
      • Introduction
      • Authentication
      • API Keys
      • Errors
      • Pagination
      • API Resources
        • Instances
        • Runs
        • Projects
        • Spec Files
        • Test Signature
        • Test Results
    • Data Privacy
      • Access to Customer Data
      • Data Retention
      • Cloud Endpoints
    • Support
Powered by GitBook
On this page
  • Why do runs time out?
  • How to change the default timeout?
  • How to avoid timeouts for tests?
  • FAQ

Was this helpful?

  1. Dashboard
  2. Runs

Run Timeouts

Understand tests timeouts and how to avoid them

PreviousTagsNextCancelling Runs

Last updated 5 days ago

Was this helpful?

New! We implemented auto-cancellation for GitHub Actions - stopping a workflow on GitHub will automatically cancel the associated run on Currents. See

Why do runs time out?

If any of your spec files take too long to report the results back to Currents dashboard, the whole run is marked as timed out. Why is that?

Unfortunately, sometimes containers crash or become unresponsive due to various reasons, for example:

  • hardware failure

  • software bugs

  • preemptive termination (by user or OS)

Agents do not send their status to Dashboard when they are shut down or terminated.

Therefore, the dashboard service cannot determine whether the lack of response is due to a crash, termination or long-running test.

If no response is received from a container within a certain period of time, the whole run is marked as timed out.

The default timeout value is 30 minutes.

How to change the default timeout?

You can change the default timeout for each individual project in Project Settings. The minimum value is 3 minutes, the maximum value is 12 hours.

The default timeout value is 30 minutes.

How to avoid timeouts for tests?

Try changing the default timeout settings for your projects, that's usually sufficient. If you are still experiencing timeouts there are a few additional options.

Reorganizing your Playwright tests to avoid timeout

Try rearranging your tests so that every spec file has a lower number of tests so that the overall spec runtime is less than the timeout.

Avoid prolonged page.waitForEvent and cy.wait

Having a test that has many page.waitForEvent or cy.wait waiting for a considerable time can accumulate and increase the overall runtime of your tests. Try reducing the number of calls to page.waitForEvent or cy.wait (which is, in general, a good practice) or reduce the values of your wait periods.

Improving runtime performance

Investigate and eliminate crashes

Examine your CI jobs log file and eliminate any crashes or instability that cause the containers to become non-responsive.

Use Machines View to identify the timed out files

Open the Run Details view for a "timed out" run. Make sure that Run Summary tab is selected.

Explore the list of machines and identify agents that are still in a "Running" state (marked in orange).

The spec file name that was will be marked as "Idle", hover the mouse cursor to see the details.

Use Spec List view to see the idle spec files

Open the Run Details view for a "timed out" run. Make sure that Spec Files tab is selected.

Filter the list of spec files, and make sure that only "Running" and "Idle" spec files are selected.

  • Spec files in "Running" state are likely to cause a time out

  • If no spec file was sent for execution but no results were received within 60 minutes, the spec file will be marked as "Idle"

FAQ

Why are my runs still in progress after I stopped tests in a CI?

Playwright runners do not notify the dashboard when they are stopped or halted, that's why the dashboard can't detect their termination. If no results are received for more than 30 minutes (or another timeout), the run will be marked as timed out. You can change the timeout value in project settings.

If your CI provider has such kind of a hook, please contact our support to assist with enabling auto-cancellation.

How can I stop a run in the dashboard?

You can cancel runs from the dashboard. See Cancelling Runs section.

CI shows that a run is successful, but it has timed out in the dashboard, why?

The most common reason is prematurely terminating playwright/ currents process before letting it report all the results back to the dashboard.

If you're using a script / wrapper to run your cypress tests, please make sure that playwright / currents process finishes its execution completely.

I need help troubleshooting timeout runs!

Please use in-app support channel for assistance. Please make sure that all the spec files have successfully finished their execution on CI and reported the results back to the dashboard.

Try using more powerful CI machines that can run your tests faster; tweak cypress to tune the load of generating and compressing video recordings of your tests.

Certain CI providers provide a hook/lifecycle event that can be used to cancel Currents run automatically when a CI job is cancelled. See an example .

video settings
GitHub Actions Workflow Cancellation
GitHub Actions Workflow Cancellation
Cypress tests timing out because of a crash
Changing Project timeout settings
Idle spec file is likely to cause a time out