aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-10-11 15:22:22 +0200
committerTaras Madan <tarasmadan@google.com>2024-10-18 12:17:42 +0000
commitfc67a398cf0de263a3973cb63e557719e0fbcb8b (patch)
treeb3877ee5d77eebe70b1a10f3a64561ca3b006766 /dashboard/app
parentc26289ac1d996d415680d9816e9e58c063e01d80 (diff)
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.
Diffstat (limited to 'dashboard/app')
-rw-r--r--dashboard/app/batch_reproexport.go7
1 files 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 +
"\""