Skip to content

Commit 484de8b

Browse files
Improve batch (#3615)
1. Don't retry tasks. 2. Set longer timeout so variant can complete.
1 parent 80bdfa8 commit 484de8b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/clusterfuzz/_internal/bot/tasks/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ def preprocess_setup_testcase(testcase, fuzzer_override=None, with_deps=True):
207207
"""Preprocessing for setup_testcase function."""
208208
fuzzer_name = fuzzer_override or testcase.fuzzer_name
209209
testcase_id = testcase.key.id()
210+
if fuzzer_name and not with_deps:
211+
logs.log(f'Skipping fuzzer preprocess: {fuzzer_name}.')
210212
if fuzzer_name and with_deps:
211213
# This branch is taken when we assume fuzzer needs to be set up for a
212214
# testcase to be executed (i.e. when a testcase was found by a fuzzer).

src/clusterfuzz/_internal/google_cloud_utils/batch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131

3232
_local = threading.local()
3333

34-
MAX_DURATION = '3600s'
35-
RETRY_COUNT = 1
36-
TASK_COUNT = 1
34+
MAX_DURATION = f'{int(60 * 60 * 2.5)}s'
35+
RETRY_COUNT = 0
3736

3837
# Controls how many containers (ClusterFuzz tasks) can run on a single VM.
3938
# THIS SHOULD BE 1 OR THERE WILL BE SECURITY PROBLEMS.

0 commit comments

Comments
 (0)