Skip to content

Commit

Permalink
Disable unit test parallel execution for Jenkins (#661)
Browse files Browse the repository at this point in the history
* Add tox.ini changes

* Remove parallel options from Jenkins script

* Apply suggestions from code review

Co-authored-by: Mark Keller <63477823+sfc-gh-mkeller@users.noreply.github.com>

* Update tox.ini

Co-authored-by: Mark Keller <63477823+sfc-gh-mkeller@users.noreply.github.com>
  • Loading branch information
sfc-gh-stan and sfc-gh-mkeller authored Mar 19, 2021
1 parent f9217fc commit b59814d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ jobs:
- name: Install tox
run: python -m pip install tox tox-external-wheels
- name: Run tests
run: python -m tox -e "py${PYTHON_VERSION/\./}-{extras,unit,integ,pandas,sso}-ci"
run: python -m tox -e "py${PYTHON_VERSION/\./}-{extras,unit-parallel,integ,pandas,sso}-ci"
env:
PYTHON_VERSION: ${{ matrix.python-version }}
cloud_provider: ${{ matrix.cloud-provider }}
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source = src/snowflake/connector
[tox]
minversion = 3.7
envlist = fix_lint,
py{36,37,38,39}-{extras,unit,integ,pandas,sso},
py{36,37,38,39}-{extras,unit-parallel,integ,pandas,sso},
coverage
skip_missing_interpreters = true
requires =
Expand Down Expand Up @@ -46,8 +46,8 @@ setenv =
unit-integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
!unit-!integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
unit: SNOWFLAKE_TEST_TYPE = unit
unit: SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
integ: SNOWFLAKE_TEST_TYPE = integ
parallel: SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
# Add common parts into pytest command
SNOWFLAKE_PYTEST_COV_LOCATION = {env:JUNIT_REPORT_DIR:{toxworkdir}}/junit.{envname}-{env:cloud_provider:dev}.xml
SNOWFLAKE_PYTEST_COV_CMD = --cov snowflake.connector --junitxml {env:SNOWFLAKE_PYTEST_COV_LOCATION} --cov-report=
Expand Down

0 comments on commit b59814d

Please sign in to comment.