-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Standardize e2e testing #1756
Comments
Historical context: The reason for using Cloudbuild is two fold:
Also, while we are at that, considering switching to GitHub packages instead of Docker Hub may be beneficial both in terms of performance and budget. Now that I'm thinking, if you switch to using GHA for e2e tests, you can make it a custom action that can be shared across repos where each of them provides the "image override" env variable and you are golden. |
Thanks for the background @BYK! I agree a custom action seems like the best way to standardize here. |
Plan for switching over to the new action: Now in the first comment! |
Repo is live at https://github.com/getsentry/action-self-hosted-e2e-tests. Planning on adding it to self-hosted today, the rest of the repos next week. |
This is work as part of getsentry/self-hosted#1756 Essentially, we want to move from Google Cloudbuild to a centralized Github Action that can be used across Sentry/Snuba/Relay/self-hosted. This adds a job which should use that action. #skip-changelog
All of the actions are now deployed! Need to figure out the docker image deployment situation but once that is done we can start the clock on replacing GCB. |
FTR we decided to keep Docker build and push in GCB rather than moving to GHA, mostly for security concerns. Now we're trying to kick off the e2e tests in GHA from GCB via a webhook. When we moved GitHub behind Okta I lost access to our bot accounts, so I'm trying to recover that so I can set up a PAT. |
Bot accounts recovered! I created a (new-style) PAT and am looking at setting it up in GCB. |
New-style PATs must expire, going with classic. |
GCB secrets process is complicated ... |
Hit a wall, escalated to Ops. |
Decided to go with publishing from GHA to Docker after all.
I created a token in Docker Hub and set it as a repo secret in |
This enables the e2e test action to push Docker images to DockerHub on successful test runs. This is part of getsentry/self-hosted#1756
This is the final step of getsentry/self-hosted#1756
…42641) This is the final step of [standardizing self-hosted e2e tests](getsentry/self-hosted#1756). We remove tests from Google Cloud Build and replace it with the latest Github Action.
…1721) This is the final step of [standardizing self-hosted e2e tests](getsentry/self-hosted#1756). We remove tests from Google Cloud Build and replace it with the latest Github Action.
…3557) This is the final step of [standardizing self-hosted e2e tests](getsentry/self-hosted#1756). We remove tests from Google Cloud Build and replace it with the latest Github Action.
This is now done! |
Had to do some cleanup in getsentry/action-self-hosted-e2e-tests#3 ftr. |
We have a messy mess of integration testing:
test.sh
integration-test.sh
self-hosted
cloudbuildsentry
cloudbuildsnuba
cloudbuildrelay
cloudbuildWe should standardize this in a way that ensures that e2e is kept in sync across all consumer repos (
sentry
,snuba
,relay
) in addition to local environments andself-hosted
cloudbuild.Task list:
The text was updated successfully, but these errors were encountered: