-
-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5fc324
commit 28852b4
Showing
4 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: test_memory_stress_test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.7", "3.8", "3.9"] | ||
|
||
# Uncomment to stress-test the test suite for random failures | ||
# This will take a LONG time and delay all PRs across the whole github.com/dask! | ||
run: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Conda Environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
use-mamba: true | ||
channels: conda-forge,defaults | ||
channel-priority: true | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: continuous_integration/environment-${{ matrix.python-version }}.yaml | ||
activate-environment: dask-distributed | ||
auto-activate-base: false | ||
|
||
- name: Install stacktrace | ||
shell: bash -l {0} | ||
# stacktrace for Python 3.8 has not been released at the moment of writing | ||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version < '3.8' }} | ||
run: mamba install -c conda-forge -c defaults -c numba libunwind stacktrace | ||
|
||
- name: Hack around https://github.com/ipython/ipython/issues/12197 | ||
# This upstream issue causes an interpreter crash when running | ||
# distributed/protocol/tests/test_serialize.py::test_profile_nested_sizeof | ||
shell: bash -l {0} | ||
if: ${{ matrix.os == 'windows-latest' && matrix.python-version == '3.9' }} | ||
run: mamba uninstall ipython | ||
|
||
- name: Cythonize | ||
shell: bash -l {0} | ||
if: ${{ matrix.python-version == '3.7' }} | ||
run: python setup.py build_ext --with-cython | ||
|
||
- name: Install | ||
shell: bash -l {0} | ||
run: python -m pip install --no-deps -e . | ||
|
||
- name: mamba list | ||
shell: bash -l {0} | ||
run: mamba list | ||
|
||
- name: mamba env export | ||
shell: bash -l {0} | ||
run: | | ||
echo -e "--\n--Conda Environment (re-create this with \`mamba env create --name <name> -f <output_file>\`)\n--" | ||
mamba env export | grep -E -v '^prefix:.*$' | ||
- name: Setup SSH | ||
shell: bash -l {0} | ||
# FIXME no SSH available on Windows | ||
# https://github.com/dask/distributed/issues/4509 | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
run: bash continuous_integration/scripts/setup_ssh.sh | ||
|
||
- name: Test | ||
shell: bash -l {0} | ||
env: | ||
PYTHONFAULTHANDLER: 1 | ||
run: | | ||
if [[ "${{ matrix.os }}" = "ubuntu-latest" ]]; then | ||
# FIXME ipv6-related failures on Ubuntu github actions CI | ||
# https://github.com/dask/distributed/issues/4514 | ||
export DISABLE_IPV6=1 | ||
fi | ||
source continuous_integration/scripts/set_ulimit.sh | ||
pytest --runslow distributed/tests/test_scheduler.py::test_memory | ||
# - name: Debug with tmate on failure | ||
# if: ${{ failure() }} | ||
# uses: mxschmitt/action-tmate@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters