From ce4328689c74d18618247f0554ac73011f21b3bc Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 30 Mar 2021 16:05:07 +0100 Subject: [PATCH] disable tests on main (#1790) Motivation: The Swift compiler can still not compile NIO's tests on main, so I'm proposing this sad workaround for https://bugs.swift.org/browse/SR-14268 . Modifications: Don't compile (or run) tests on `main` :( Result: May get a green tick. --- docker/docker-compose.2004.main.yaml | 1 + docker/docker-compose.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.2004.main.yaml b/docker/docker-compose.2004.main.yaml index af587631..b91911db 100644 --- a/docker/docker-compose.2004.main.yaml +++ b/docker/docker-compose.2004.main.yaml @@ -51,6 +51,7 @@ services: - MAX_ALLOCS_ALLOWED_udp_1000_reqs_1_conn=14200 - MAX_ALLOCS_ALLOWED_udp_1_reqs_1000_conn=200050 # - SANITIZER_ARG=--sanitize=thread # TSan broken still + - SWIFT_TEST_VERB=build # WARNING: THIS DISABLES ALL TESTS. Please remove (workaround https://bugs.swift.org/browse/SR-14268) performance-test: image: swift-nio:20.04-main diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index e7ef0999..270f445e 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -28,7 +28,7 @@ services: unit-tests: <<: *common - command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors" + command: /bin/bash -xcl "swift $${SWIFT_TEST_VERB-test} -Xswiftc -warnings-as-errors" integration-tests: <<: *common @@ -36,7 +36,7 @@ services: test: <<: *common - command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} && ./scripts/integration_tests.sh $${INTEGRATION_TESTS_ARG-}" + command: /bin/bash -xcl "swift $${SWIFT_TEST_VERB-test} -Xswiftc -warnings-as-errors $${SANITIZER_ARG-} && ./scripts/integration_tests.sh $${INTEGRATION_TESTS_ARG-}" performance-test: <<: *common