* disable coverage

This reduces runtime of the server test suite from ~30m to ~10m, and as far as I can see: we discarded the coverage output anyway.

* allow morph 60s to migrate when running tests

* scripts/test.sh: drop COVERMODE

Stop generating coverage data when running unit tests. It's likely we'll want this data back at some point, but for now it's unused and removing simplifies invoking tests for developers.

* scripts/test.sh: remove cleanup steps

* scripts/test.sh: drop TESTS parameter

* scripts/test.sh: drop TESTFLAGS parameter

* switch to gotestsum
Этот коммит содержится в:
Jesse Hallam
2023-06-15 15:27:52 -03:00
коммит произвёл GitHub
родитель 6fae1736eb
Коммит 2765d92991
7 изменённых файлов: 146 добавлений и 100 удалений

8
.github/workflows/server-ci-template.yml поставляемый
Просмотреть файл

@@ -230,29 +230,37 @@ jobs:
needs: check-mattermost-vet
uses: ./.github/workflows/server-test-template.yml
with:
name: Postgres with binary parameters
datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10&binary_parameters=yes
drivername: postgres
logsartifact: postgres-binary-server-test-logs
test-postgres-normal:
name: Postgres
needs: check-mattermost-vet
uses: ./.github/workflows/server-test-template.yml
with:
name: Postgres
datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10
drivername: postgres
logsartifact: postgres-server-test-logs
test-mysql:
name: MySQL
needs: check-mattermost-vet
uses: ./.github/workflows/server-test-template.yml
with:
name: MySQL
datasource: mmuser:mostest@tcp(mysql:3306)/mattermost_test?charset=utf8mb4,utf8&multiStatements=true&maxAllowedPacket=4194304
drivername: mysql
logsartifact: mysql-server-test-logs
test-mmctl:
name: Run mmctl tests
needs: check-mattermost-vet
uses: ./.github/workflows/mmctl-test-template.yml
with:
name: mmctl
datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10
drivername: postgres
logsartifact: mmctl-test-logs
build-mattermost-server:
name: Build mattermost server app
runs-on: ubuntu-latest-8-cores