From 7cd89b489bee453d86615d47ca6a71a06e5113db Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Mon, 4 Nov 2024 16:16:38 +0100 Subject: dashboard/app: generate fewer logs exporting reproducers 1. Don't pring per-file log by tool. 2. Disable tar verbosity. 3. Make gsutil quiet. --- dashboard/app/batch_reproexport.go | 4 ++-- tools/syz-reprolist/reprolist.go | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dashboard/app/batch_reproexport.go b/dashboard/app/batch_reproexport.go index a9f10e32c..1fa8ec224 100644 --- a/dashboard/app/batch_reproexport.go +++ b/dashboard/app/batch_reproexport.go @@ -36,7 +36,7 @@ func exportReproScript(srcNamespace, archivePath string) string { "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 + + "tar -czf reproducers.tar.gz ./repros/ && " + + "gsutil -q -m cp reproducers.tar.gz " + archivePath + "\"" } diff --git a/tools/syz-reprolist/reprolist.go b/tools/syz-reprolist/reprolist.go index 914e8cd01..1dddc7c6e 100644 --- a/tools/syz-reprolist/reprolist.go +++ b/tools/syz-reprolist/reprolist.go @@ -23,6 +23,7 @@ var ( flagToken = flag.String("token", "", "gcp bearer token to disable throttling (contact syzbot first)\n"+ "usage example: ./tools/syz-reprolist -namespace upstream -token $(gcloud auth print-access-token)") flagParallel = flag.Int("j", 2, "number of parallel threads") + flagVerbose = flag.Bool("v", false, "verbose output") ) func main() { @@ -61,8 +62,10 @@ func exportNamespace() error { continue } reproID := reproIDFromURL(cReproURL) - fmt.Printf("[%v](%v/%v)saving c-repro %v for bug %v\n", - i, iBug, len(bugs), reproID, bug.ID) + if *flagVerbose { + fmt.Printf("[%v](%v/%v)saving c-repro %v for bug %v\n", + i, iBug, len(bugs), reproID, bug.ID) + } cReproBody, err := cli.Text(cReproURL) if err != nil { return err -- cgit mrf-deployment