-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect conditional runs for children pjs #4586
Respect conditional runs for children pjs #4586
Conversation
/area prow |
prow/jenkins/controller_test.go
Outdated
}, | ||
} | ||
if err := config.SetRegexes(presubmits); err != nil { | ||
panic(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t.Fatal
, here and elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
prow/jenkins/controller.go
Outdated
@@ -306,3 +311,36 @@ func (c *Controller) syncNonPendingJob(pj kube.ProwJob, reports chan<- kube.Prow | |||
} | |||
return nil | |||
} | |||
|
|||
// TODO: Collapse with plank, impossible to reuse as is due to the interfaces. | |||
func RunAfterSuccessCanRun(parent, child *kube.ProwJob, c configAgent, ghc githubClient) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document what this does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
prow/config/config.go
Outdated
@@ -227,7 +227,7 @@ func parseConfig(c *Config) error { | |||
return nil | |||
} | |||
|
|||
func setRegexes(js []Presubmit) error { | |||
func SetRegexes(js []Presubmit) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a quick doc string for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
/lgtm |
Fixes #4504
/assign @spxtr