Skip to content

Commit

Permalink
Merge branch 'main' into memray-scheduler-profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Oct 24, 2024
2 parents 525cfe6 + 5758097 commit 92febfb
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
15 changes: 12 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,10 @@ def s3_url(s3, s3_scratch, test_name_uuid):
try:
yield url
finally:
s3.rm(url, recursive=True)
try:
s3.rm(url, recursive=True)
except FileNotFoundError:
pass


@pytest.fixture(scope="function")
Expand Down Expand Up @@ -725,7 +728,10 @@ def gcs_url(gcs, gcs_scratch, test_name_uuid):
try:
yield url
finally:
gcs.rm(url, recursive=True)
try:
gcs.rm(url, recursive=True)
except FileNotFoundError:
pass


@pytest.fixture(scope="session")
Expand All @@ -751,7 +757,10 @@ def az_url(az, az_scratch, test_name_uuid):
try:
yield url
finally:
az.rm(url, recursive=True)
try:
az.rm(url, recursive=True)
except FileNotFoundError:
pass


# this code was taken from pytest docs
Expand Down
2 changes: 2 additions & 0 deletions tests/geospatial/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def _(n_workers, env=None, **cluster_kwargs):
if env:
cluster.send_private_envs(env=env)
with cluster.get_client() as client:
# FIXME https://github.com/coiled/platform/issues/103
client.wait_for_workers(n_workers)
with memray_profile(client), benchmark_all(client):
yield client

Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_atmospheric_circulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_atmospheric_circulation(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
2 changes: 0 additions & 2 deletions tests/geospatial/test_climatology.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def test_rechunk_map_blocks(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down Expand Up @@ -143,7 +142,6 @@ def test_highlevel_api(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
"idle_timeout": "1h",
},
scale_kwargs={
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_cloud_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_cloud_optimize(
cluster_kwargs={
"workspace": "dask-benchmarks",
"region": "us-west-2",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_rechunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def test_era5_rechunking(
cluster_kwargs={
"workspace": "dask-benchmarks-gcp",
"region": "us-central1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_satellite_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def test_satellite_filtering(
cluster_kwargs={
"workspace": "dask-benchmarks-azure",
"region": "westeurope",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down
1 change: 0 additions & 1 deletion tests/geospatial/test_zonal_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def test_nwm(
cluster_kwargs={
"workspace": "dask-benchmarks",
"region": "us-east-1",
"wait_for_workers": True,
},
scale_kwargs={
"small": {"n_workers": 10},
Expand Down

0 comments on commit 92febfb

Please sign in to comment.