From b7be8be15bb182d1e3884870ce7507dbda06bf18 Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Sat, 3 Jul 2021 13:59:39 -0700 Subject: [PATCH 1/2] Parallelize integration tests Signed-off-by: Tsotne Tabidze --- .github/workflows/integration_tests.yml | 2 +- .github/workflows/pr_integration_tests.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- Makefile | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index d82d882ff26..13d46238e18 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -52,7 +52,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test python - run: FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration + run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/pr_integration_tests.yml b/.github/workflows/pr_integration_tests.yml index 240d87069ec..b6871004dcf 100644 --- a/.github/workflows/pr_integration_tests.yml +++ b/.github/workflows/pr_integration_tests.yml @@ -63,7 +63,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test python - run: FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration + run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 58d2a7c0a7a..d387b13b3ef 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test Python - run: make test-python + run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/Makefile b/Makefile index 475d729e9e9..72096b0deb7 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,10 @@ install-python: python -m pip install -e sdk/python -U --use-deprecated=legacy-resolver test-python: - FEAST_TELEMETRY=False pytest -n 4 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests + FEAST_TELEMETRY=False pytest -n 8 sdk/python/tests + +test-python-integration: + FEAST_TELEMETRY=False pytest -n 8 --integration sdk/python/tests format-python: # Sort From d4dac9af03be706e59a6924257968326b3f8e19e Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Sat, 3 Jul 2021 14:03:19 -0700 Subject: [PATCH 2/2] Update the usage flag Signed-off-by: Tsotne Tabidze --- .github/workflows/integration_tests.yml | 2 +- .github/workflows/pr_integration_tests.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- Makefile | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 13d46238e18..322ee0b6e51 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -52,7 +52,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test python - run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration + run: FEAST_USAGE=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/pr_integration_tests.yml b/.github/workflows/pr_integration_tests.yml index b6871004dcf..26ac821ac2b 100644 --- a/.github/workflows/pr_integration_tests.yml +++ b/.github/workflows/pr_integration_tests.yml @@ -63,7 +63,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test python - run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration + run: FEAST_USAGE=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests --integration - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index d387b13b3ef..7b480a86094 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -22,7 +22,7 @@ jobs: - name: Install dependencies run: make install-python-ci-dependencies - name: Test Python - run: FEAST_TELEMETRY=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests + run: FEAST_USAGE=False pytest -n 8 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/Makefile b/Makefile index 72096b0deb7..b18c5bca2ef 100644 --- a/Makefile +++ b/Makefile @@ -53,10 +53,10 @@ install-python: python -m pip install -e sdk/python -U --use-deprecated=legacy-resolver test-python: - FEAST_TELEMETRY=False pytest -n 8 sdk/python/tests + FEAST_USAGE=False pytest -n 8 sdk/python/tests test-python-integration: - FEAST_TELEMETRY=False pytest -n 8 --integration sdk/python/tests + FEAST_USAGE=False pytest -n 8 --integration sdk/python/tests format-python: # Sort