[infra] Loose the limits for dataflow traces collection (#1632). (#3411)

* [infra] Loose the limits for dataflow traces collection (#1632).

* format
This commit is contained in:
Max Moroz 2020-02-19 16:40:23 -08:00 committed by GitHub
parent 39fe0d725b
commit dd5ad3b20e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -23,7 +23,9 @@ else
fi
# Timeout for running a single fuzz target.
TIMEOUT=1h
if [ -z "$COLLECT_DFT_TIMEOUT"]; then
COLLECT_DFT_TIMEOUT=1h
fi
# Number of CPUs available, this is needed for running targets in parallel.
NPROC=$(nproc)
@ -38,7 +40,7 @@ function run_one_target {
rm -rf $traces && mkdir -p $traces
timeout $TIMEOUT dataflow_tracer.py $OUT/$target $corpus $traces &> $log
timeout $COLLECT_DFT_TIMEOUT dataflow_tracer.py $OUT/$target $corpus $traces &> $log
if (( $? != 0 )); then
echo "Error occured while collecting data flow traces for $target:"
cat $log

View File

@ -356,8 +356,15 @@ def dataflow_post_build_steps(project_name, env):
return None
steps.append({
'name': 'gcr.io/oss-fuzz-base/base-runner',
'env': env,
'name':
'gcr.io/oss-fuzz-base/base-runner',
'env':
env + [
'COLLECT_DFT_TIMEOUT=2h',
'DFT_FILE_SIZE_LIMIT=65535',
'DFT_MIN_TIMEOUT=2.0',
'DFT_TIMEOUT_RANGE=6.0',
],
'args': [
'bash', '-c',
('for f in /corpus/*.zip; do unzip -q $f -d ${f%%.*}; done && '