Skip to content

deck: drop stale Prow-managed contexts with no matching ProwJob - #847

Open
Champbreed wants to merge 1 commit into
kubernetes-sigs:mainfrom
Champbreed:fix/stale-pr-contexts
Open

deck: drop stale Prow-managed contexts with no matching ProwJob#847
Champbreed wants to merge 1 commit into
kubernetes-sigs:mainfrom
Champbreed:fix/stale-pr-contexts

Conversation

@Champbreed

Copy link
Copy Markdown

This PR drops such stale contexts when the name matches Prow's job naming convention (pull-, branch-ci-, ci- prefixes), so non-Prow checks are never touched.

getFullPRContext merges GitHub's reported contexts with Prow's live ProwJob list, but never drops a context GitHub still reports if no matching ProwJob exists for it. This happens when a Prow job is renamed or removed. GitHub keeps the old context indefinitely since nothing tells it to retract it.

Known limitation: this matches by naming convention, not by comparing against Prow's actual job config, so it won't catch a renamed job with a non-standard name. Happy to follow up with a config-based check if that's preferred.

Fixes #824

cc @BenTheElder @petr-muller

@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploy Preview for k8s-prow failed. Why did it fail? →

Name Link
🔨 Latest commit 41980fb
🔍 Latest deploy log https://app.netlify.com/projects/k8s-prow/deploys/6a7cffcf4e91940008c5406d

@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 12, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Champbreed
Once this PR has been reviewed and has the lgtm label, please assign michelle192837 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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/deck Issues or PRs related to prow's deck component label Aug 12, 2026
@petr-muller

Copy link
Copy Markdown
Contributor

/hold

I am not convinced we should do this, posted a #824 (comment) to the issue.

@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 Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/deck Issues or PRs related to prow's deck component cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deck PR status page shows stale contexts for renamed or removed presubmit jobs.

2 participants