Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extend timeout for tests in circleci?

Im running some tests in circleci and some of the tests are taking longer then 10 min cause its ui tests that run on a headless browser that Im installing in my circle.yml

How can I extend the time of the timeout?

thanks

like image 605
JohnBigs Avatar asked Mar 23 '16 08:03

JohnBigs


3 Answers

You can add the timeout modifier to your command to increase the timeout beyond the default 600 seconds (10min).

For example, if you ran a test called my-test.sh, you could do the following:

test:
  override:
    - ./my-test.sh:
        timeout: 900

Note that the command ends with a colon (:), with the modifier on the next line, double-indented (4 spaces instead of 2).

Reference: https://circleci.com/docs/configuration#modifiers

like image 136
FelicianoTech Avatar answered Sep 20 '22 15:09

FelicianoTech


If you're using Circle CI 2.0, the syntax is no_output_timeout:

- run:
    name: Running Tests
    command: ./my-test.sh
    no_output_timeout: 20m

More details: https://circleci.com/docs/2.0/configuration-reference/#run

like image 23
Aaron Gray Avatar answered Sep 19 '22 15:09

Aaron Gray


You need to use the timeout modifier in your config as explained in this doc: https://circleci.com/docs/configuration#modifiers

Here is an example doubling the default 600s to 1200s:

commands:
    - /bin/bash build_scripts/deploy_to_eb.sh:
        timeout: 1200

Cheers

like image 26
Joan Avatar answered Sep 17 '22 15:09

Joan