This repository was archived by the owner on Apr 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111)
1212
1313const FuzzitEndpoint = "https://app.fuzzit.dev"
14- const Version = "v2.4.73 "
14+ const Version = "v2.4.74 "
1515
1616type Target struct {
1717 Name string `firestore:"target_name"`
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
1919 "log"
2020 "strconv"
2121 "strings"
22+ "time"
2223
2324 "github.com/fuzzitdev/fuzzit/v2/client"
2425 "github.com/spf13/cobra"
@@ -110,19 +111,23 @@ var jobCmd = &cobra.Command{
110111 newJob .TargetId = target
111112
112113 if newJob .Type == "local-regression" {
114+ start := time .Now ()
113115 err = gFuzzitClient .CreateLocalJob (newJob , args [1 :])
114116 if err != nil && skipIfNotExist && (err .Error () == "401 Unauthorized" || err .Error () == "fuzzer exited with 22" ) {
115117 log .Println ("Target doesn't exist yet. skipping..." )
116118 return
117119 }
120+ diff := time .Now ().Sub (start )
121+ log .Printf ("Regression for %s took %s seconds" , target , diff )
118122 } else {
119123 _ , err = gFuzzitClient .CreateJob (newJob , additionalCorpus , args [1 :])
124+ log .Printf ("Job created successfully" )
120125 }
121126
122127 if err != nil {
123128 log .Fatal (err )
124129 }
125- log . Printf ( "Job created successfully" )
130+
126131 },
127132}
128133
You can’t perform that action at this time.
0 commit comments