Skip to content

Commit

Permalink
Added timeouts to benchmark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Feb 4, 2025
1 parent bf33697 commit d7d377b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions conda/environments/all_cuda-118_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- pre-commit
- pytest
- pytest-cov
- pytest-timeout
- python>=3.10,<3.13
- rangehttpserver
- rapids-build-backend>=0.3.0,<0.4.0.dev0
Expand Down
1 change: 1 addition & 0 deletions conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies:
- pre-commit
- pytest
- pytest-cov
- pytest-timeout
- python>=3.10,<3.13
- rangehttpserver
- rapids-build-backend>=0.3.0,<0.4.0.dev0
Expand Down
1 change: 1 addition & 0 deletions conda/environments/all_cuda-128_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- pre-commit
- pytest
- pytest-cov
- pytest-timeout
- python>=3.10,<3.13
- rangehttpserver
- rapids-build-backend>=0.3.0,<0.4.0.dev0
Expand Down
1 change: 1 addition & 0 deletions conda/environments/all_cuda-128_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- pre-commit
- pytest
- pytest-cov
- pytest-timeout
- python>=3.10,<3.13
- rangehttpserver
- rapids-build-backend>=0.3.0,<0.4.0.dev0
Expand Down
1 change: 1 addition & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ dependencies:
- rapids-dask-dependency==25.2.*,>=0.0.0a0
- pytest
- pytest-cov
- pytest-timeout
- rangehttpserver
- boto3>=1.21.21
- output_types: [requirements, pyproject]
Expand Down
1 change: 1 addition & 0 deletions python/kvikio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ test = [
"moto[server]>=4.0.8",
"pytest",
"pytest-cov",
"pytest-timeout",
"rangehttpserver",
"rapids-dask-dependency==25.2.*,>=0.0.0a0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
Expand Down
6 changes: 5 additions & 1 deletion python/kvikio/tests/test_benchmarks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2024, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2022-2025, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.

import os
Expand Down Expand Up @@ -28,6 +28,7 @@
"zarr",
],
)
@pytest.mark.timeout(30)
def test_single_node_io(run_cmd, tmp_path, api):
"""Test benchmarks/single_node_io.py"""

Expand Down Expand Up @@ -59,6 +60,7 @@ def test_single_node_io(run_cmd, tmp_path, api):
"posix",
],
)
@pytest.mark.timeout(30)
def test_zarr_io(run_cmd, tmp_path, api):
"""Test benchmarks/zarr_io.py"""

Expand Down Expand Up @@ -89,6 +91,7 @@ def test_zarr_io(run_cmd, tmp_path, api):
"numpy",
],
)
@pytest.mark.timeout(30)
def test_http_io(run_cmd, api):
"""Test benchmarks/http_io.py"""

Expand Down Expand Up @@ -118,6 +121,7 @@ def test_http_io(run_cmd, api):
"numpy",
],
)
@pytest.mark.timeout(30)
def test_s3_io(run_cmd, api):
"""Test benchmarks/s3_io.py"""

Expand Down

0 comments on commit d7d377b

Please sign in to comment.