-
Notifications
You must be signed in to change notification settings - Fork 135
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
phased: Enable run_before_merge for phase 2 jobs #3184
Conversation
Seems tide has a bug, it doesnt run the phase 2 for batches. A simple wa until it is fixed is to use run_before_merge, which force a batch to run it. Signed-off-by: Or Shoval <oshoval@redhat.com>
Nice find @brianmcarey |
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.
This looks like what we were looking for.
// RunBeforeMerge indicates that a job should always run by Tide as long as
// Brancher matches.
// This is used when a prowjob is so expensive that it's not ideal to run on
// every single push from all PRs.
RunBeforeMerge bool `json:"run_before_merge,omitempty"`
The phased plugin will still be useful I think though as it will not have to wait for "phase 1" jobs to complete before triggering the "phase 2" jobs.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brianmcarey The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@oshoval: Updated the
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Trying here to fix tide, WIP once it is merged (hopefully), we can remove the WA |
Seems tide has a bug, it doesnt run the phase 2 for batches.
A simple wa until it is fixed is to use
run_before_merge
, which force a batch to run it.Real fix is to consider manually triggered jobs as well on this line at
presubmitsForBatch
shouldRun, err := ps.ShouldRun(baseBranch, c.changedFiles.batchChanges(prs), ps.RunBeforeMerge, false)
The required logic exists on kubernetes/test-infra#30191
presubmitsByPull
should be fixed as well iiuc.