refactor(gma): split monolithic module into webhook and backend modules#509
Open
jessikad-google wants to merge 16 commits into
Open
refactor(gma): split monolithic module into webhook and backend modules#509jessikad-google wants to merge 16 commits into
jessikad-google wants to merge 16 commits into
Conversation
aedd90b to
b62ca84
Compare
Bug: 505443276 #gma
…relay cli Bug: 505443276 #gma
Bug: 505443276 #gma
Bug: 505443276 #gma
Bug: 505443276 #gma
…k_test.go Bug: 505443276 #gma
Bug: 505443276 #gma
Bug: 505443276 #gma
This reverts commit 2db308c.
crwilcox
approved these changes
Apr 23, 2026
| @@ -1,4 +1,4 @@ | |||
| # Copyright 2023 The Authors (see AUTHORS file) | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR completes the simplification of the GitHub Metrics Aggregator (GMA) infrastructure by decommissioning the intermediate
eventsPub/Sub topic and the Relay service. The event enrichment logic has been moved directly into the Webhook service.This aligns with the goal of reducing complexity and infrastructure overhead by consolidating processing logic where appropriate.
Changes
pkg/webhook/webhook.go: Moved event enrichment logic (parsing payload and extracting enterprise/org/repo IDs) from the deleted Relay service into the Webhook handler. It now constructs and publishes anEnrichedEventdirectly.pkg/relay: Deleted the entire directory as the Relay service is no longer needed.pkg/cli/relay.go: Deleted the relay CLI command and removed it fromroot.goandroot_test.go.terraform/backend/service_relay.tf: Deleted to remove the Relay Cloud Run service.terraform/webhook: Updated to userelay_topic_idinstead ofevents_topic_idand set up environment variables accordingly.terraform/gma: Updatedmodules.tfto passrelay_topic_idto the webhook module and removed unused variables fromvariables.tfandmodules.tf.terraform/gma/variables.tf.Rationale
#gma
TAG=agy