Skip to content

Commit

Permalink
Merge pull request kubernetes#496 from krzysied/perfdash_run_id_fix
Browse files Browse the repository at this point in the history
Perfdash - Run id fix
  • Loading branch information
k8s-ci-robot committed Apr 12, 2019
2 parents 97bed22 + 80b22fd commit ad93099
Show file tree
Hide file tree
Showing 33 changed files with 152 additions and 5,531 deletions.
25 changes: 8 additions & 17 deletions perfdash/Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion perfdash/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: push

# See pod.yaml for the version currently running-- bump this ahead before rebuilding!
TAG = 1.20
TAG = 1.21

REPO = gcr.io/k8s-testimages

Expand Down
4 changes: 2 additions & 2 deletions perfdash/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
labels:
app: perfdash
version: "1.20"
version: "1.21"
spec:
selector:
matchLabels:
Expand All @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: perfdash
image: gcr.io/k8s-testimages/perfdash:1.20
image: gcr.io/k8s-testimages/perfdash:1.21
command:
- /perfdash
- --www=true
Expand Down
9 changes: 6 additions & 3 deletions perfdash/google-gcs-downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"io/ioutil"
"os"
"sort"
"strings"
"sync"

Expand Down Expand Up @@ -82,18 +83,20 @@ func (g *GoogleGCSDownloader) getData() (JobToCategoryData, error) {

func (g *GoogleGCSDownloader) getJobData(wg *sync.WaitGroup, result JobToCategoryData, resultLock *sync.Mutex, job string, tests Tests) {
defer wg.Done()
lastBuildNo, err := g.GoogleGCSBucketUtils.GetLastestBuildNumberFromJenkinsGoogleBucket(job)
buildNumbers, err := g.GoogleGCSBucketUtils.GetBuildNumbersFromJenkinsGoogleBucket(job)
if err != nil {
panic(err)
}
fmt.Printf("Last build no for %v: %v\n", job, lastBuildNo)

buildsToFetch := tests.BuildsCount
if buildsToFetch < 1 {
buildsToFetch = g.DefaultBuildsCount
}
fmt.Printf("Builds to fetch for %v: %v\n", job, buildsToFetch)

for buildNumber := lastBuildNo; buildNumber > lastBuildNo-buildsToFetch && buildNumber > 0; buildNumber-- {
sort.Sort(sort.Reverse(sort.IntSlice(buildNumbers)))
for index := 0; index < buildsToFetch && index < len(buildNumbers); index++ {
buildNumber := buildNumbers[index]
fmt.Printf("Fetching %s build %v...\n", job, buildNumber)
for categoryLabel, categoryMap := range tests.Descriptions {
for testLabel, testDescriptions := range categoryMap {
Expand Down
20 changes: 20 additions & 0 deletions perfdash/vendor/github.com/ghodss/yaml/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions perfdash/vendor/github.com/ghodss/yaml/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad93099

Please sign in to comment.