Skip to content

Commit

Permalink
handling unknown job types
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysied committed Dec 6, 2018
1 parent a6fc2cf commit 77138a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion perfdash/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ func getProwConfig() (Jobs, error) {
if strings.HasPrefix(tag, "perfDashJobType:") {
split := strings.SplitN(tag, ":", 2)
jobType := strings.TrimSpace(split[1])
thisPeriodicConfig.Descriptions = jobTypeToDescriptions[jobType]
var exists bool
if thisPeriodicConfig.Descriptions, exists = jobTypeToDescriptions[jobType]; !exists {
fmt.Fprintf(os.Stderr, "warning: unknown job type - %s\n", jobType)
}
continue
}
if strings.HasPrefix(tag, "perfDashBuildsCount:") {
Expand Down

0 comments on commit 77138a4

Please sign in to comment.