diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-06 23:23:07 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-06 23:31:36 -0400 |
| commit | 166833e16ec342dfa10edb287d7aa495ddd1b59d (patch) | |
| tree | 7ea458116462ae4dc18b4cdcda4daabdb1315722 /.github | |
| parent | 402cca8f2ac42a08fba7a200c4e1e086e2081aad (diff) | |
| download | sqlalchemy-timing_intensive.tar.gz | |
add --notimingintensive; block from github jobstiming_intensive
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.
Change-Id: Icb3d284a2a952e2495d80fa91e22e0b32a54340f
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/create-wheels.yaml | 6 | ||||
| -rw-r--r-- | .github/workflows/run-on-pr.yaml | 4 | ||||
| -rw-r--r-- | .github/workflows/run-test.yaml | 14 |
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 }} " |
