Skip to content
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

Merged
merged 2 commits into from
Sep 21, 2017
Merged

Respect conditional runs for children pjs #4586

merged 2 commits into from
Sep 21, 2017

Conversation

0xmichalis
Copy link
Contributor

Fixes #4504

/assign @spxtr

@0xmichalis 0xmichalis requested a review from spxtr as a code owner September 15, 2017 12:46
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 15, 2017
@0xmichalis
Copy link
Contributor Author

/area prow

@k8s-ci-robot k8s-ci-robot added the area/prow Issues or PRs related to prow label Sep 15, 2017
},
}
if err := config.SetRegexes(presubmits); err != nil {
panic(err)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -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 {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -227,7 +227,7 @@ func parseConfig(c *Config) error {
return nil
}

func setRegexes(js []Presubmit) error {
func SetRegexes(js []Presubmit) error {
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@spxtr
Copy link
Contributor

spxtr commented Sep 21, 2017

/lgtm
One nit.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 21, 2017
@0xmichalis 0xmichalis merged commit 3739972 into kubernetes:master Sep 21, 2017
@0xmichalis 0xmichalis deleted the respect-conditional-runs-for-children-pjs branch September 21, 2017 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prow Issues or PRs related to prow cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants