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

Check if key is in roots map of Processor #718

Merged
merged 2 commits into from
Jul 26, 2023
Merged

Conversation

samrabelachew
Copy link
Contributor

@samrabelachew samrabelachew commented Jul 25, 2023

Before notifying, we should ensure the key is in the roots map to prevent attempts to notify check run on invalid, empty repo metadata. There is a chance the root map can miss a key if multiple revisions come in quickly and a new Processor for the latest revision is receiving a signal on an old revision. We shouldn't care about this signal since we already perform a clean defer to cancel those check runs on shutdown of the old revision Processor.

asubrocky
asubrocky previously approved these changes Jul 26, 2023
@samrabelachew samrabelachew merged commit f17c2eb into main Jul 26, 2023
2 checks passed
@samrabelachew samrabelachew deleted the check-root-map branch July 26, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants