Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit b5db943

Browse files
committed
rename JobNames -> BlockingJobNames
1 parent 6422b9e commit b5db943

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

mungegithub/mungers/e2e/e2e.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type BuildInfo struct {
4949
// RealE2ETester is the object which will get status from a google bucket
5050
// information about recent jobs
5151
type RealE2ETester struct {
52-
JobNames []string
52+
BlockingJobNames []string
5353
WeakStableJobNames []string
5454

5555
sync.Mutex
@@ -159,7 +159,7 @@ func (e *RealE2ETester) getGCSResult(j cache.Job, n cache.Number) (*cache.Result
159159
func (e *RealE2ETester) GCSBasedStable() (allStable, ignorableFlakes bool) {
160160
allStable = true
161161

162-
for _, job := range e.JobNames {
162+
for _, job := range e.BlockingJobNames {
163163
lastBuildNumber, err := e.GoogleGCSBucketUtils.GetLastestBuildNumberFromJenkinsGoogleBucket(job)
164164
glog.V(4).Infof("Checking status of %v, %v", job, lastBuildNumber)
165165
if err != nil {

mungegithub/mungers/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func TestCheckGCSBuilds(t *testing.T) {
292292
},
293293
})
294294
e2e := &RealE2ETester{
295-
JobNames: []string{
295+
BlockingJobNames: []string{
296296
"foo",
297297
"bar",
298298
},

mungegithub/mungers/submit-queue.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ type submitQueueInterruptedObject struct {
133133
// SubmitQueue will merge PR which meet a set of requirements.
134134
// PR must have LGTM after the last commit
135135
// PR must have passed all github CI checks
136-
// The google internal jenkins instance must be passing the JobNames e2e tests
136+
// The google internal jenkins instance must be passing the BlockingJobNames e2e tests
137137
type SubmitQueue struct {
138138
githubConfig *github.Config
139-
JobNames []string
139+
BlockingJobNames []string
140140
WeakStableJobNames []string
141141

142142
// If FakeE2E is true, don't try to connect to JenkinsHost, all jobs are passing.
@@ -302,7 +302,7 @@ func (sq *SubmitQueue) internalInitialize(config *github.Config, features *featu
302302
defer sq.Unlock()
303303

304304
// Clean up all of our flags which we wish --flag="" to mean []string{}
305-
sq.JobNames = cleanStringSlice(sq.JobNames)
305+
sq.BlockingJobNames = cleanStringSlice(sq.BlockingJobNames)
306306
sq.WeakStableJobNames = cleanStringSlice(sq.WeakStableJobNames)
307307
sq.RequiredStatusContexts = cleanStringSlice(sq.RequiredStatusContexts)
308308
sq.RequiredRetestContexts = cleanStringSlice(sq.RequiredRetestContexts)
@@ -313,7 +313,7 @@ func (sq *SubmitQueue) internalInitialize(config *github.Config, features *featu
313313
// TODO: This is not how injection for tests should work.
314314
if sq.FakeE2E {
315315
sq.e2e = &fake_e2e.FakeE2ETester{
316-
JobNames: sq.JobNames,
316+
JobNames: sq.BlockingJobNames,
317317
WeakStableJobNames: sq.WeakStableJobNames,
318318
}
319319
} else {
@@ -325,7 +325,7 @@ func (sq *SubmitQueue) internalInitialize(config *github.Config, features *featu
325325
}
326326

327327
sq.e2e = (&e2e.RealE2ETester{
328-
JobNames: sq.JobNames,
328+
BlockingJobNames: sq.BlockingJobNames,
329329
WeakStableJobNames: sq.WeakStableJobNames,
330330
BuildStatus: map[string]e2e.BuildInfo{},
331331
GoogleGCSBucketUtils: gcs,
@@ -387,7 +387,7 @@ func (sq *SubmitQueue) EachLoop() error {
387387

388388
// AddFlags will add any request flags to the cobra `cmd`
389389
func (sq *SubmitQueue) AddFlags(cmd *cobra.Command, config *github.Config) {
390-
cmd.Flags().StringSliceVar(&sq.JobNames, "jenkins-jobs", []string{
390+
cmd.Flags().StringSliceVar(&sq.BlockingJobNames, "jenkins-jobs", []string{
391391
"kubelet-gce-e2e-ci",
392392
"kubernetes-build",
393393
"kubernetes-test-go",

mungegithub/mungers/submit-queue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func getTestSQ(startThreads bool, config *github_util.Config, server *httptest.S
182182
sq := new(SubmitQueue)
183183
sq.RequiredStatusContexts = []string{notRequiredReTestContext1, notRequiredReTestContext2}
184184
sq.RequiredRetestContexts = []string{requiredReTestContext1, requiredReTestContext2}
185-
sq.JobNames = []string{"foo"}
185+
sq.BlockingJobNames = []string{"foo"}
186186
sq.WeakStableJobNames = []string{"bar"}
187187
sq.githubE2EQueue = map[int]*github_util.MungeObject{}
188188
sq.githubE2EPollTime = 50 * time.Millisecond
@@ -199,7 +199,7 @@ func getTestSQ(startThreads bool, config *github_util.Config, server *httptest.S
199199
sq.doNotMergeMilestones = []string{doNotMergeMilestone}
200200

201201
sq.e2e = &fake_e2e.FakeE2ETester{
202-
JobNames: sq.JobNames,
202+
JobNames: sq.BlockingJobNames,
203203
WeakStableJobNames: sq.WeakStableJobNames,
204204
}
205205

0 commit comments

Comments
 (0)