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

GitHub: Consider only the events we are interested in #2066

Merged
merged 1 commit into from
May 25, 2023
Merged

GitHub: Consider only the events we are interested in #2066

merged 1 commit into from
May 25, 2023

Conversation

csomh
Copy link
Contributor

@csomh csomh commented May 24, 2023

This extends the interested() method in the GitHub webhook, so that checks on the event type and action are done in the API. This will help avoid creating Celery tasks for these events.

This change makes similar checks in Parser() redundant, but I've decided not to remove those, yet, mainly b/c it's hard to tell how that will influence parsing and telling which event is handled.

TODO:

  • Write new tests or update the old ones to cover new functionality.

This extends the interested() method in the GitHub webhook, so that
checks on the event type and action are done in the API. This will help
avoid creating Celery tasks for these events.

This change makes similar checks in Parser() redundant, but I've decided
not to remove those, yet, mainly b/c it's hard to tell how that will
influence parsing and telling which event is handled.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/1143b2b27b5b4d7ab0be764f1a9f03c0

✔️ pre-commit SUCCESS in 2m 11s
✔️ packit-service-tests SUCCESS in 2m 34s
✔️ packit-service-tests-openshift SUCCESS in 13m 56s

@csomh csomh added the mergeit When set, zuul wil gate and merge the PR. label May 25, 2023
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/d4bcdf7e849d450b9f0b1e9266d53597

✔️ pre-commit SUCCESS in 2m 09s

@csomh
Copy link
Contributor Author

csomh commented May 25, 2023

We should find out if this really makes a difference by looking at this diagram on our metrics dashboard, after stable is moved nex week. The expectation is that the percentage of not handled events should go significantly down.

image

Edit: the stage deployment does much less work (repos where it's installed are much less active), so it's hard to tell the exact impact of this change there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants