From fc67a398cf0de263a3973cb63e557719e0fbcb8b Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 11 Oct 2024 15:22:22 +0200 Subject: dashboard/app: tune repro export 1. Silent git clone to not write "Cloning syzkaller..." into stderr. 2. Download in 10 threads to speed up testing. 3. Use gcloud token to bypass throttling. 4. CI=1 to stop writing warnings into stderr. --- dashboard/app/batch_reproexport.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dashboard/app/batch_reproexport.go b/dashboard/app/batch_reproexport.go index 845d901fe..dddb96797 100644 --- a/dashboard/app/batch_reproexport.go +++ b/dashboard/app/batch_reproexport.go @@ -27,10 +27,11 @@ func handleBatchReproExport(w http.ResponseWriter, r *http.Request) { func exportReproScript(srcNamespace, archivePath string) string { return "\n" + - "git clone --depth 1 --branch master --single-branch https://github.com/google/syzkaller\n" + + "git clone -q --depth 1 --branch master --single-branch https://github.com/google/syzkaller\n" + "cd syzkaller\n" + - "./tools/syz-env \"" + - "go run ./tools/syz-reprolist/... -namespace " + srcNamespace + " && " + + "token=$(gcloud auth print-access-token)\n" + + "CI=1 ./tools/syz-env \"" + // CI=1 to suppress "The input device is not a TTY". + "go run ./tools/syz-reprolist/... -namespace " + srcNamespace + " -token $token -j 10 && " + "tar -czvf reproducers.tar.gz ./repros/ && " + "gsutil -m cp reproducers.tar.gz " + archivePath + "\"" -- cgit mrf-deployment