Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/conda-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ env:
rerun-tests-timeout: 45
rerun-tensor-tests-timeout: 15
rerun-tensor-tests-max-attempts: 3
# Healthy Windows tensor runs take up to ~19 min
rerun-tensor-tests-timeout-win: 20
# Per-test limit to kill a test stuck at 99%: https://github.com/IntelPython/dpctl/issues/1954
tensor-test-timeout: 120

jobs:
build:
Expand Down Expand Up @@ -232,14 +232,14 @@ jobs:
id: install_dpnp
continue-on-error: true
run: |
conda install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
conda install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-timeout pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
env:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ inputs.channels-list }}'

- name: ReInstall dpnp
if: steps.install_dpnp.outcome == 'failure'
run: |
conda install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
conda install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-timeout pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
env:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ inputs.channels-list }}'

Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
id: run_tests_tensor
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
timeout_minutes: ${{ runner.os == 'Windows' && env.rerun-tensor-tests-timeout-win || env.rerun-tensor-tests-timeout }}
timeout_minutes: ${{ env.rerun-tensor-tests-timeout }}
max_attempts: ${{ env.rerun-tensor-tests-max-attempts }}
retry_on: any
shell: bash
Expand All @@ -300,4 +300,4 @@ jobs:
. "$CONDA_UNIX/etc/profile.d/conda.sh"
conda activate ${{ env.test-env-name }}

python -m pytest -n auto -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor
20 changes: 10 additions & 10 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ env:
rerun-tests-timeout: 45
rerun-tensor-tests-timeout: 15
rerun-tensor-tests-max-attempts: 3
# Healthy Windows tensor runs take up to ~19 min
rerun-tensor-tests-timeout-win: 20
# Per-test limit to kill a test stuck at 99%: https://github.com/IntelPython/dpctl/issues/1954
tensor-test-timeout: 120

jobs:
build:
Expand Down Expand Up @@ -253,14 +253,14 @@ jobs:
id: install_dpnp
continue-on-error: true
run: |
mamba install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
mamba install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-timeout pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
env:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.channels-list }}'

- name: ReInstall dpnp
if: steps.install_dpnp.outcome == 'failure'
run: |
mamba install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
mamba install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-timeout pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
env:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.channels-list }}'

Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
- name: Run tensor tests
if: env.rerun-tests-on-failure != 'true'
run: |
python -m pytest -n auto -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor

- name: Run tensor tests
if: env.rerun-tests-on-failure == 'true'
Expand All @@ -322,7 +322,7 @@ jobs:
. $CONDA/etc/profile.d/mamba.sh
mamba activate ${{ env.test-env-name }}

python -m pytest -n auto -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor

test_examples_linux:
name: Test examples
Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:
- name: Install dpnp
run: |
@echo on
mamba install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
mamba install ${{ env.package-name }}=${{ env.PACKAGE_VERSION }} pytest pytest-timeout pytest-xdist "${{ env.python-install-spec }}" ${{ env.TEST_CHANNELS }}
env:
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.channels-list }}'
MAMBA_NO_LOW_SPEED_LIMIT: 1
Expand Down Expand Up @@ -616,19 +616,19 @@ jobs:
if: env.rerun-tests-on-failure != 'true'
shell: pwsh
run: |
python -m pytest -n auto -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor

- name: Run tensor tests
if: env.rerun-tests-on-failure == 'true'
id: run_tests_tensor_win
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
timeout_minutes: ${{ env.rerun-tensor-tests-timeout-win }}
timeout_minutes: ${{ env.rerun-tensor-tests-timeout }}
max_attempts: ${{ env.rerun-tensor-tests-max-attempts }}
retry_on: any
shell: pwsh
command: |
python -m pytest -n auto -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor

upload:
name: Upload
Expand Down
Loading