Commit 5c7f09c
Ray Train test_jax_trainer::test_minimal_multihost Flaky Test Fix (ray-project#56548)
A fix that addresses the failing flaky test
`test_jax_trainer.py::test_minimal_multihost`.
https://buildkite.com/ray-project/postmerge/builds/12941#01993f89-cc62-4e31-8de2-8b18f81ac177
Issue:
The `test_minimal_multihost` introduces a race condition by attempting
to initialize a virtualenv directory twice at the same directory path
during worker runtime environment setup. This test would not fail in a
true multi-host environment, but the tests simulate a multi-host
environment on a singular device. This might be a ray core issue
resulting in errors on runtime _env, but this PR will at least unblock
the test so it is no longer flaky.
Fix:
Move `worker_runtime_env` to the job level so that the `pip install jax`
only happens once
---------
Signed-off-by: JasonLi1909 <jasli1909@gmail.com>
Signed-off-by: Marco Stephan <marco@magic.dev>1 parent b6560fa commit 5c7f09c
1 file changed
+20
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
9 | 24 | | |
10 | 25 | | |
11 | | - | |
| 26 | + | |
12 | 27 | | |
13 | 28 | | |
14 | 29 | | |
| |||
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
22 | | - | |
| 37 | + | |
23 | 38 | | |
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
29 | | - | |
| 44 | + | |
30 | 45 | | |
31 | 46 | | |
32 | 47 | | |
| |||
44 | 59 | | |
45 | 60 | | |
46 | 61 | | |
47 | | - | |
| 62 | + | |
48 | 63 | | |
49 | 64 | | |
50 | 65 | | |
| |||
78 | 93 | | |
79 | 94 | | |
80 | 95 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
| |||
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
0 commit comments