diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-11-04 16:16:38 +0100 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-11-05 10:45:32 +0000 |
| commit | 7cd89b489bee453d86615d47ca6a71a06e5113db (patch) | |
| tree | 069ef1bba89d15422add82db2d34304a5d3a4101 | |
| parent | 509da42949c4013fb236ebf6e25d3562d110198c (diff) | |
dashboard/app: generate fewer logs exporting reproducers
1. Don't pring per-file log by tool.
2. Disable tar verbosity.
3. Make gsutil quiet.
| -rw-r--r-- | dashboard/app/batch_reproexport.go | 4 | ||||
| -rw-r--r-- | 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 |
