Skip to content

Fix sticky overrides being clobbered by retriggered ProwJobs - #818

Open
smg247 wants to merge 1 commit into
kubernetes-sigs:mainfrom
smg247:fix/sticky-override-abort-and-skip-passing
Open

Fix sticky overrides being clobbered by retriggered ProwJobs#818
smg247 wants to merge 1 commit into
kubernetes-sigs:mainfrom
smg247:fix/sticky-override-abort-and-skip-passing

Conversation

@smg247

@smg247 smg247 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Two issues prevent /override-sticky statuses from persisting. This takes care of the issues with trigger.

Trigger plugin: skip presubmits whose context already has a SUCCESS status in buildAll(). Previously, when LGTM was applied to an untrusted PR, buildAll would create new ProwJobs for all presubmits regardless of current status, clobbering sticky overrides when the new jobs completed.

@kubernetes-prow

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kubernetes-prow kubernetes-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 29, 2026
@netlify

netlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploy Preview for k8s-prow ready!

Name Link
🔨 Latest commit 82e1f16
🔍 Latest deploy log https://app.netlify.com/projects/k8s-prow/deploys/6a6bab9c159e3e000835de1e
😎 Deploy Preview https://deploy-preview-818--k8s-prow.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smg247

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the area/plugins Issues or PRs related to prow's plugins for the hook component label Jul 29, 2026
@smg247
smg247 marked this pull request as ready for review July 29, 2026 17:41
@kubernetes-prow kubernetes-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jul 29, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from jmguzik July 29, 2026 17:41
@kubernetes-prow kubernetes-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 29, 2026
@smg247

smg247 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@petr-muller petr-muller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like two separate changes and should be done in two commits (and I'd actually prefer two PRs myself). I think the override doing an abort is trickier than it seems, there needs to be some handover to Plank to terminate the actual workload.

Comment thread pkg/plugins/override/override.go Outdated
Comment thread pkg/plugins/trigger/pull-request.go Outdated
@kubernetes-prow kubernetes-prow Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 30, 2026
@smg247 smg247 changed the title Fix sticky overrides being clobbered by completing/retriggered ProwJobs Fix sticky overrides being clobbered by retriggered ProwJobs Jul 30, 2026
buildAll triggers all auto-run presubmits unconditionally, even when
their context already has a successful GitHub status or check run. This
wastes resources re-running jobs that have already passed.

Fetch combined status and check runs before filtering presubmits, and
skip any whose context is already successful. Falls back to running
everything if the status fetch fails.
@smg247
smg247 force-pushed the fix/sticky-override-abort-and-skip-passing branch from e9b2c61 to 82e1f16 Compare July 30, 2026 19:52
@smg247

smg247 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

/hold cancel

@kubernetes-prow kubernetes-prow Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 3, 2026
@petr-muller

Copy link
Copy Markdown
Contributor

/cc

@kubernetes-prow
kubernetes-prow Bot requested a review from petr-muller August 8, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/plugins Issues or PRs related to prow's plugins for the hook component cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

2 participants