Skip to content

feat(code_review): Use GitHub org names whitelisting for testing#105844

Merged
suejung-sentry merged 3 commits intomasterfrom
1_7/gh_orgs/code_review/armenzg
Jan 7, 2026
Merged

feat(code_review): Use GitHub org names whitelisting for testing#105844
suejung-sentry merged 3 commits intomasterfrom
1_7/gh_orgs/code_review/armenzg

Conversation

@armenzg
Copy link
Copy Markdown
Member

@armenzg armenzg commented Jan 7, 2026

We have tried using s4s and s4s2 for testing but there are all sorts of problems.

We will be using the GitHub org to determine if to send to Seer.

We have tried using `s4s` and `s4s2` for testing but there are all sorts of problems.

We will be using the GitHub org to determine if to send to Seer.
@armenzg armenzg self-assigned this Jan 7, 2026
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 7, 2026
@suejung-sentry suejung-sentry marked this pull request as ready for review January 7, 2026 22:42
@suejung-sentry suejung-sentry requested a review from a team as a code owner January 7, 2026 22:42
@suejung-sentry suejung-sentry removed the request for review from a team January 7, 2026 22:42
Copy link
Copy Markdown
Contributor

@suejung-sentry suejung-sentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll follow up with a PR seeing if I can get this wired into options-automator so we don't have to wait the up to 12 hours for re-deploys to add to the list

repository = event.get("repository", {})
github_org = None
if isinstance(repository, dict):
github_org = repository.get("owner", {}).get("login")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I double checked this would be the payload shape. I think this is not populated as such for Installation events but we're not forwarding those after all so we're okay

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reminder to any readers. This is a temporary hack.

@suejung-sentry suejung-sentry merged commit 066ed15 into master Jan 7, 2026
66 checks passed
@suejung-sentry suejung-sentry deleted the 1_7/gh_orgs/code_review/armenzg branch January 7, 2026 22:47
GH_ORGS_TO_ONLY_SEND_TO_SEER = {
"sentry-ecosystem", # on s4s2 & us
"coding-workflows-s4s", # on us
"sentry-coding-workflows", # on us
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

armenzg added a commit that referenced this pull request Jan 12, 2026
In #105844, we started using GitHub whitelisting to help us debug issues in `s4s` and `s4s2`.

We're at the point we don't need this.
armenzg added a commit that referenced this pull request Jan 14, 2026
In #105844 (while we were debugging `s4s2`) we switched to using
whitelisted GitHub orgs rather than options.

Now that we've made progress in s4s2 we can add using options back
again. We will drop whitelisted orgs in the future.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants