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.
This commit is contained in:
Johannes Weiss 2021-03-30 16:05:07 +01:00 committed by GitHub
parent 2d27890eb8
commit ce4328689c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ services:
- MAX_ALLOCS_ALLOWED_udp_1000_reqs_1_conn=14200 - MAX_ALLOCS_ALLOWED_udp_1000_reqs_1_conn=14200
- MAX_ALLOCS_ALLOWED_udp_1_reqs_1000_conn=200050 - MAX_ALLOCS_ALLOWED_udp_1_reqs_1000_conn=200050
# - SANITIZER_ARG=--sanitize=thread # TSan broken still # - 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: performance-test:
image: swift-nio:20.04-main image: swift-nio:20.04-main

View File

@ -28,7 +28,7 @@ services:
unit-tests: unit-tests:
<<: *common <<: *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: integration-tests:
<<: *common <<: *common
@ -36,7 +36,7 @@ services:
test: test:
<<: *common <<: *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: performance-test:
<<: *common <<: *common