From 3f58cc62f2b9c4d06c06321462bc4155887bba43 Mon Sep 17 00:00:00 2001 From: boolafish Date: Mon, 20 Jan 2020 14:35:31 +0900 Subject: [PATCH] fix: accustom the test run time to circle ci limit of 5 hr ref: https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/3 --- .circleci/config.yml | 2 +- .../python_tests/tests/contracts/root_chain/test_long_run.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c24b6089f..47e95c0ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -144,7 +144,7 @@ jobs: - run: name: Run slow tests working_directory: ~/repo/plasma_framework/python_tests - no_output_timeout: 10h + no_output_timeout: 5h # Circl CI limits to 5hr max: https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/3 command: | . ~/venv/bin/activate make runslow diff --git a/plasma_framework/python_tests/tests/contracts/root_chain/test_long_run.py b/plasma_framework/python_tests/tests/contracts/root_chain/test_long_run.py index 4832d710b..0e647cbd2 100644 --- a/plasma_framework/python_tests/tests/contracts/root_chain/test_long_run.py +++ b/plasma_framework/python_tests/tests/contracts/root_chain/test_long_run.py @@ -29,7 +29,9 @@ def test_slow(testlang, w3): # 4. exit something # 5. attempt to finalize - for i in range(1000): + # Circle CI has a limit of the test can only be run at most 5 hours. After experiment, it can run for close to 800 runs. + # Choose 700 as a safer number to run the test. + for i in range(700): print(f'[{datetime.datetime.now()}]: iteration {i}') # 1. deposit few for _ in range(5):