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

Handle status notifications with multiple branches #174

Merged
merged 6 commits into from
Jan 13, 2025

Conversation

thatportugueseguy
Copy link
Collaborator

Description of the task

Status notifications for builds of commits that exist in multiple branches have multiple branches in the branches property of the notification, even though the build belongs to that commit on a specific branch. These branches come listed in no specific order, so there's no way to know which to which branch that build notification belongs.

We extract the build number from the notification to query the buildkite API so we can handle that notification correctly and not mix states across builds and branches.

I've added a cache for the builds so that we don't have to query the buildkite API every time we get a status notification (we get around 200+ per build..)

@thatportugueseguy thatportugueseguy merged commit e953585 into master Jan 13, 2025
0 of 3 checks passed
@thatportugueseguy thatportugueseguy deleted the add-buildkite-api branch January 13, 2025 15:24
thatportugueseguy added a commit that referenced this pull request Jan 13, 2025
…ne-commits

* origin/master:
  Handle status notifications with multiple branches (#174)
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.

1 participant