forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Jobs] [CI] Deflake
test_sdk.py
by setting test env vars for head n…
…ode, not just workers (ray-project#29806) Why are these changes needed? The environment variables for a test were supposed to be set for all workers in a cluster. However, the head node of the cluster was started by a pytest fixture before the call to monkeypatch.setenv that sets the environment variables. Thus, the environment variables were only being set in the worker nodes, since they were started after monkeypatch.setenv. This PR adds a fixture to set environment variables before starting the cluster head and uses that fixture in the tests. It's likely that this will fix the flakiness, but this should be fixed regardless. Related issue number May address ray-project#29006 Signed-off-by: Weichen Xu <[email protected]>
- Loading branch information
1 parent
5fdbd9d
commit cc10a0d
Showing
2 changed files
with
40 additions
and
19 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