Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Maintenance: renamed travis tests to heavy load #3099

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
run: ./ci/deploy/dockerhub-test-images.bash

unit-test-webserver-01:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] webserver 01"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-webserver-02:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] webserver 02"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-webserver-03:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] webserver 03"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-api:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] api"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -260,7 +260,7 @@ jobs:
run: ./ci/github/unit-testing/api.bash test

unit-test-api-server:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] api-server"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-catalog:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] catalog"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -364,7 +364,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-datcore-adapter:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] datcore-adapter"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-director:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] director"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -469,7 +469,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-director-v2:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] director-v2"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-dask-task-models-library:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] dask-task-models-library"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -575,7 +575,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-dask-sidecar:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] dask-sidecar"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -624,7 +624,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-dynamic-sidecar:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] dynamic-sidecar"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -675,7 +675,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-frontend:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] frontend"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -713,7 +713,7 @@ jobs:
# flags: unittests #optional

unit-test-python-linting:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] python-linting"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -749,7 +749,7 @@ jobs:
run: ./ci/github/unit-testing/python-linting.bash test

unit-test-postgres-database:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] postgres-database"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -799,7 +799,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-service-integration:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] service-integration"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -848,7 +848,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-service-library:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] service-library"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -897,7 +897,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-settings-library:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] settings-library"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -946,7 +946,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-models-library:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] models-library"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -995,7 +995,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-simcore-sdk:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] simcore-sdk"
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -1046,7 +1046,7 @@ jobs:
path: codeclimate.${{ github.job }}_coverage.json

unit-test-storage:
timeout-minutes: 15 # if this timeout gets too small, then split the tests
timeout-minutes: 18 # if this timeout gets too small, then split the tests
name: "[unit] storage"
runs-on: ${{ matrix.os }}
strategy:
Expand Down
19 changes: 14 additions & 5 deletions ci/github/integration-testing/director-v2.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,21 @@ install() {

test() {
echo "testing in services/director-v2/tests/integration/$1"
pytest --log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--cov=simcore_service_director_v2 --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v -m "not travis" "services/director-v2/tests/integration/$1" --log-level=DEBUG
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_director_v2 \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--log-level=DEBUG \
--verbose \
-m "not heavy_load" \
"services/director-v2/tests/integration/$1"
}

clean_up() {
Expand Down
19 changes: 14 additions & 5 deletions ci/github/integration-testing/simcore-sdk.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,21 @@ install() {
}

test() {
pytest --log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--cov=simcore_sdk --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v -m "not travis" packages/simcore-sdk/tests/integration --log-level=DEBUG
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_sdk \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--log-level=DEBUG \
--verbose \
-m "not heavy_load" \
packages/simcore-sdk/tests/integration
}

clean_up() {
Expand Down
18 changes: 13 additions & 5 deletions ci/github/integration-testing/webserver.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@ install() {
}

test() {
pytest --log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--cov=simcore_service_webserver --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v -m "not travis" "services/web/server/tests/integration/$1"
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_webserver \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
-m "not heavy_load" \
"services/web/server/tests/integration/$1"
}

clean_up() {
Expand Down
18 changes: 13 additions & 5 deletions ci/github/unit-testing/api-server.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ install() {
}

test() {
pytest --log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--cov=simcore_service_api_server --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v -m "not travis" services/api-server/tests/unit
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_api_server \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
-m "not heavy_load" \
services/api-server/tests/unit
}

# Check if the function exists (bash specific)
Expand Down
10 changes: 8 additions & 2 deletions ci/github/unit-testing/api.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ install() {
}

test() {
pytest --durations=10 \
-v -m "not travis" api/tests
pytest \
--color=yes \
--durations=10 \
sanderegg marked this conversation as resolved.
Show resolved Hide resolved
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
-m "not heavy_load" \
api/tests
}

# Check if the function exists (bash specific)
Expand Down
18 changes: 13 additions & 5 deletions ci/github/unit-testing/catalog.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ install() {
}

test() {
pytest --log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--cov=simcore_service_catalog --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v -m "not travis" services/catalog/tests/unit
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_catalog \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
-m "not heavy_load" \
services/catalog/tests/unit
}

# Check if the function exists (bash specific)
Expand Down
18 changes: 13 additions & 5 deletions ci/github/unit-testing/dask-sidecar.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ install() {
}

test() {
pytest --log-format="%(asctime)s %(levelname)s %(message)s" \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--cov=simcore_service_dask_sidecar --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v services/dask-sidecar/tests/unit
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_dask_sidecar \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
-m "not heavy_load" \
services/dask-sidecar/tests/unit
}

# Check if the function exists (bash specific)
Expand Down
3 changes: 3 additions & 0 deletions ci/github/unit-testing/dask-task-models-library.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ test() {
--cov-report=xml \
--cov=dask_task_models_library \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
-m "not heavy_load" \
packages/dask-task-models-library/tests
}

Expand Down
17 changes: 14 additions & 3 deletions ci/github/unit-testing/datcore-adapter.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,21 @@ install() {
}

test() {
pytest --numprocesses=auto --cov=simcore_service_datcore_adapter --durations=10 --cov-append \
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
pytest \
--asyncio-mode=auto \
-v -m "not travis" services/datcore-adapter/tests/unit
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_datcore_adapter \
--durations=10 \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--numprocesses=auto \
--verbose \
-m "not heavy_load" \
services/datcore-adapter/tests/unit
}

# Check if the function exists (bash specific)
Expand Down
Loading