josh 2 лет назад
Родитель
Сommit
26229b7de5
3 измененных файлов с 10 добавлено и 6 удалено
  1. 6 2
      Makefile
  2. 1 1
      src/sentry/conf/server.py
  3. 3 3
      tests/sentry/eventstream/kafka/test_consumer.py

+ 6 - 2
Makefile

@@ -125,12 +125,16 @@ test-python:
 test-python-ci:
 	make build-platform-assets
 	@echo "--> Running CI Python tests"
-	pytest tests/integration tests/sentry --cov . --cov-report="xml:.artifacts/python.coverage.xml" --junit-xml=".artifacts/python.junit.xml" || exit 1
+	pytest tests/integration tests/sentry \
+		--ignore tests/sentry/eventstream/kafka \
+		--ignore tests/sentry/snuba \
+		--ignore tests/sentry/search/events \
+		--cov . --cov-report="xml:.artifacts/python.coverage.xml" --junit-xml=".artifacts/python.junit.xml" || exit 1
 	@echo ""
 
 test-snuba:
 	@echo "--> Running snuba tests"
-	pytest tests/snuba tests/sentry/eventstream/kafka tests/sentry/snuba/test_discover.py tests/sentry/search/events -vv --cov . --cov-report="xml:.artifacts/snuba.coverage.xml" --junit-xml=".artifacts/snuba.junit.xml"
+	pytest tests/snuba tests/sentry/eventstream/kafka tests/sentry/snuba tests/sentry/search/events -vv --cov . --cov-report="xml:.artifacts/snuba.coverage.xml" --junit-xml=".artifacts/snuba.junit.xml"
 	@echo ""
 
 test-tools:

+ 1 - 1
src/sentry/conf/server.py

@@ -1941,7 +1941,7 @@ SENTRY_DEVSERVICES = {
     ),
     "snuba": lambda settings, options: (
         {
-            "image": "getsentry/snuba:nightly" if not APPLE_ARM64
+            "image": "getsentry/snuba:f063336085e7be0ccbdb52791aaf97882ba7a26f" if not APPLE_ARM64
             # We cross-build arm64 images on GH's Apple Intel runners
             else "ghcr.io/getsentry/snuba-arm64-dev:latest",
             "pull": True,

+ 3 - 3
tests/sentry/eventstream/kafka/test_consumer.py

@@ -38,7 +38,7 @@ def create_topic(partitions=1, replication_factor=1):
     topic = f"test-{uuid.uuid1().hex}"
     subprocess.check_call(
         command
-        + (
+        + [
             "--create",
             "--topic",
             topic,
@@ -46,12 +46,12 @@ def create_topic(partitions=1, replication_factor=1):
             f"{partitions}",
             "--replication-factor",
             f"{replication_factor}",
-        )
+        ]
     )
     try:
         yield topic
     finally:
-        subprocess.check_call(command + ("--delete", "--topic", topic))
+        subprocess.check_call(command + ["--delete", "--topic", topic])
 
 
 def test_consumer_start_from_partition_start(requires_kafka):