getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.92k stars 4.18k forks source link

Be able to run relay integration tests with the test docker setup #26668

Open dashed opened 3 years ago

dashed commented 3 years ago

The test docker setup for Sentry development is documented in https://develop.sentry.dev/testing/#getting-setup

Posted here for posterity:

# Turn off services for local testing.
sentry devservices down

# Turn on services with a test prefix to use separate containers and volumes
sentry devservices up --project test

# Verify that test containers came up correctly
docker ps --format '{{.Names}}'

# Later when you're done running tests and want to run local servers again
sentry devservices down --project test && sentry devservices up

This docker setup is incompatible with relay integration tests when running this locally:

pytest -vv tests/relay_integration/tests.py

The relay setup assumes there is a sentry network, and will attempt to connect to docker containers brought up with sentry devservices up (e.g. sentry_kafka).

We should expect to be able to run relay integration tests that is agnostic to how docker containers are setup.

github-actions[bot] commented 3 years ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀