Skip to content

Comments

set up dask client test fix#502

Merged
hussain-jafari merged 2 commits intoepic/full_scale_testingfrom
hjafari/hotfix/test_dask_client_setup
Mar 31, 2025
Merged

set up dask client test fix#502
hussain-jafari merged 2 commits intoepic/full_scale_testingfrom
hjafari/hotfix/test_dask_client_setup

Conversation

@hussain-jafari
Copy link
Contributor

set up dask client test fix

Description

  • Category: bugfix
  • JIRA issue: hotfix

When we run pytest --runslow, there are tests that run dask and set up a client which persists in the next tests. We were making an assumption that there is no dask client in test_set_up_dask_client_default. This PR shuts down a client if one already exists.

Testing

Ran pytest --runslow.

Copy link
Collaborator

@zmbc zmbc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! If it turns out to be annoying in more places to have this Dask client "leaking" between tests, you could more aggressively shut it down after every test, but for now it seems like this is the only place it causes problems.

@hussain-jafari hussain-jafari merged commit e12237c into epic/full_scale_testing Mar 31, 2025
8 checks passed
@hussain-jafari hussain-jafari deleted the hjafari/hotfix/test_dask_client_setup branch March 31, 2025 19:21
hussain-jafari added a commit that referenced this pull request May 7, 2025
Category: bugfix
JIRA issue: hotfix

When we run pytest --runslow, there are tests that run dask and set up a client which persists in the next tests. We were making an assumption that there is no dask client in test_set_up_dask_client_default. This PR shuts down a client if one already exists.
Add full scale testing epic to nightly builds.

Testing
Ran pytest --runslow.
hussain-jafari added a commit that referenced this pull request May 7, 2025
Category: bugfix
JIRA issue: hotfix

When we run pytest --runslow, there are tests that run dask and set up a client which persists in the next tests. We were making an assumption that there is no dask client in test_set_up_dask_client_default. This PR shuts down a client if one already exists.
Add full scale testing epic to nightly builds.

Testing
Ran pytest --runslow.
hussain-jafari added a commit that referenced this pull request Jul 24, 2025
Category: bugfix
JIRA issue: hotfix

When we run pytest --runslow, there are tests that run dask and set up a client which persists in the next tests. We were making an assumption that there is no dask client in test_set_up_dask_client_default. This PR shuts down a client if one already exists.
Add full scale testing epic to nightly builds.

Testing
Ran pytest --runslow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants