Skip to content

Commit b59814d

Browse files
Disable unit test parallel execution for Jenkins (#661)
* Add tox.ini changes * Remove parallel options from Jenkins script * Apply suggestions from code review Co-authored-by: Mark Keller <[email protected]> * Update tox.ini Co-authored-by: Mark Keller <[email protected]>
1 parent f9217fc commit b59814d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ jobs:
254254
- name: Install tox
255255
run: python -m pip install tox tox-external-wheels
256256
- name: Run tests
257-
run: python -m tox -e "py${PYTHON_VERSION/\./}-{extras,unit,integ,pandas,sso}-ci"
257+
run: python -m tox -e "py${PYTHON_VERSION/\./}-{extras,unit-parallel,integ,pandas,sso}-ci"
258258
env:
259259
PYTHON_VERSION: ${{ matrix.python-version }}
260260
cloud_provider: ${{ matrix.cloud-provider }}

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ source = src/snowflake/connector
1818
[tox]
1919
minversion = 3.7
2020
envlist = fix_lint,
21-
py{36,37,38,39}-{extras,unit,integ,pandas,sso},
21+
py{36,37,38,39}-{extras,unit-parallel,integ,pandas,sso},
2222
coverage
2323
skip_missing_interpreters = true
2424
requires =
@@ -46,8 +46,8 @@ setenv =
4646
unit-integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
4747
!unit-!integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
4848
unit: SNOWFLAKE_TEST_TYPE = unit
49-
unit: SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
5049
integ: SNOWFLAKE_TEST_TYPE = integ
50+
parallel: SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
5151
# Add common parts into pytest command
5252
SNOWFLAKE_PYTEST_COV_LOCATION = {env:JUNIT_REPORT_DIR:{toxworkdir}}/junit.{envname}-{env:cloud_provider:dev}.xml
5353
SNOWFLAKE_PYTEST_COV_CMD = --cov snowflake.connector --junitxml {env:SNOWFLAKE_PYTEST_COV_LOCATION} --cov-report=

0 commit comments

Comments
 (0)