-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(code_review): Use GitHub org names whitelisting for testing #105844
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
Conversation
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.
suejung-sentry
left a comment
There was a problem hiding this 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") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
| GH_ORGS_TO_ONLY_SEND_TO_SEER = { | ||
| "sentry-ecosystem", # on s4s2 & us | ||
| "coding-workflows-s4s", # on us | ||
| "sentry-coding-workflows", # on us |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're testing in these two orgs:
https://github.com/sentry-coding-workflows/testing-repo/pull/1
https://github.com/sentry-ecosystem/coding-workflows-s4s-testing/pull/1
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.
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.
We have tried using
s4sands4s2for testing but there are all sorts of problems.We will be using the GitHub org to determine if to send to Seer.