summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-10-06 23:48:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-10-07 00:16:53 -0400
commit42b761aefb656636471da90c13aa1b9affcacea6 (patch)
treea169b15927924d7006628f11cb818ebd6186b43a /.github/workflows
parentdfb94052675d39dba7ab443c49a2e7a3153bd89f (diff)
downloadsqlalchemy-42b761aefb656636471da90c13aa1b9affcacea6.tar.gz
add --notimingintensive; block from github jobs
this provides a front-end option to disable tests marked as timing_intensive, all of which are in test_pool, which are more fragile and aren't consistent on the github runners. also remove /reduce unnecessary time.sleep() from two other pool tests that are not timing intensive. note that this removes test_hanging_connect_within_overflow from the github runs via the timing_intensive requirement. I've also removed MockReconnectTest from exclusions as those are really important tests and they use mocks so should not have platform dependent issues. Need to see what the windows failures are. Closes: #5633 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5633 Pull-request-sha: 166833e16ec342dfa10edb287d7aa495ddd1b59d Change-Id: Icb3d284a2a952e2495d80fa91e22e0b32a54340f
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/create-wheels.yaml6
-rw-r--r--.github/workflows/run-on-pr.yaml4
-rw-r--r--.github/workflows/run-test.yaml14
3 files changed, 7 insertions, 17 deletions
diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml
index e94f97d3b..8c2d7ee60 100644
--- a/.github/workflows/create-wheels.yaml
+++ b/.github/workflows/create-wheels.yaml
@@ -94,7 +94,7 @@ jobs:
# the mock reconnect test seems to fail on the ci in windows
run: |
pip install pytest pytest-xdist ${{ matrix.extra-requires }}
- pytest -n2 -q test -k 'not MockReconnectTest' --nomemory
+ pytest -n2 -q test --nomemory --notimingintensive
- name: Get wheel name
id: wheel-name
@@ -223,7 +223,7 @@ jobs:
pip install -f dist --no-index sqlalchemy
python -c 'from sqlalchemy import cprocessors, cresultproxy, cutils'
pip install pytest pytest-xdist ${{ matrix.extra-requires }}
- pytest -n2 -q test -k 'not MockReconnectTest' --nomemory
+ pytest -n2 -q test --nomemory --notimingintensive
else
echo Not compatible. Skipping install.
fi
@@ -361,7 +361,7 @@ jobs:
pip install -f dist --no-index sqlalchemy &&
python -c 'from sqlalchemy import cprocessors, cresultproxy, cutils' &&
pip install pytest pytest-xdist ${{ matrix.extra-requires }} &&
- pytest -n2 -q test -k 'not MockReconnectTest' --nomemory"
+ pytest -n2 -q test --nomemory --notimingintensive"
- name: Get wheel names
id: wheel-name
diff --git a/.github/workflows/run-on-pr.yaml b/.github/workflows/run-on-pr.yaml
index 52b238dab..ad9c196e5 100644
--- a/.github/workflows/run-on-pr.yaml
+++ b/.github/workflows/run-on-pr.yaml
@@ -50,7 +50,7 @@ jobs:
pip list
- name: Run tests
- run: tox -e github-${{ matrix.build-type }} -- -q --nomemory ${{ matrix.pytest-args }}
+ run: tox -e github-${{ matrix.build-type }} -- -q --nomemory --notimingintensive ${{ matrix.pytest-args }}
# Arm emulation is quite slow (~20min) so for now just run it when merging to master
# run-test-arm64:
@@ -81,4 +81,4 @@ jobs:
# python -m pip install --upgrade pip &&
# pip install --upgrade tox setuptools &&
# pip list &&
- # tox -e github-${{ matrix.build-type }} -- -q --nomemory ${{ matrix.pytest-args }}"
+ # tox -e github-${{ matrix.build-type }} -- -q --nomemory --notimingintensive ${{ matrix.pytest-args }}"
diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml
index 61a878fdf..79f2a6086 100644
--- a/.github/workflows/run-test.yaml
+++ b/.github/workflows/run-test.yaml
@@ -42,16 +42,6 @@ jobs:
- x86
include:
- # the mock reconnect test seems to fail on the ci in windows
- - os: "windows-latest"
- pytest-args: "-k 'not MockReconnectTest'"
- # python 2.7 or 3.5 on windows seem to fail also test_hanging_connect_within_overflow
- - os: "windows-latest"
- python-version: "3.5"
- pytest-args: "-k 'not MockReconnectTest and not test_hanging_connect_within_overflow'"
- - os: "windows-latest"
- python-version: "2.7"
- pytest-args: "-k 'not MockReconnectTest and not test_hanging_connect_within_overflow'"
# autocommit tests fail on the ci for some reason
- python-version: "pypy3"
pytest-args: "-k 'not test_autocommit_on and not test_turn_autocommit_off_via_default_iso_level and not test_autocommit_isolation_level'"
@@ -96,7 +86,7 @@ jobs:
pip list
- name: Run tests
- run: tox -e github-${{ matrix.build-type }} -- -q --nomemory ${{ matrix.pytest-args }}
+ run: tox -e github-${{ matrix.build-type }} -- -q --nomemory --notimingintensive ${{ matrix.pytest-args }}
run-test-arm64:
name: ${{ matrix.python-version }}-${{ matrix.build-type }}-arm64-ubuntu-latest
@@ -132,5 +122,5 @@ jobs:
python -m pip install --upgrade pip &&
pip install --upgrade tox setuptools &&
pip list &&
- tox -e github-${{ matrix.build-type }} -- -q --nomemory ${{ matrix.pytest-args }}
+ tox -e github-${{ matrix.build-type }} -- -q --nomemory --notimingintensive ${{ matrix.pytest-args }}
"