Skip to content

Enable conda runtime creation in workers on windows - #23613

Merged
simon-mo merged 4 commits into
ray-project:masterfrom
mattip:conda-runtime-windows
Jun 14, 2022
Merged

simon-mo merged 4 commits into
ray-project:masterfrom
mattip:conda-runtime-windows

Conversation

@mattip

@mattip mattip commented Mar 30, 2022 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Continuation of #22449

Fix the way a conda environment is created for a local worker to reuse the ray installation. The base problem was that site.getsitepackages()[0] did not return the site-packages library on windows. So I changed the call to use the more accepted sysconfig.get_paths()['purelib'].

Along the way, I also made the test pass when using a pip install -e . which does not actually install ray into the site-packages directory, but uses a shim.

Related issue number

Checks

@mattip

mattip commented Mar 30, 2022

Copy link
Copy Markdown
Contributor Author

@architkulkarni

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moving the logging to before the command so that the message will be emitted even if the command fails.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for catching this! I think the command wasn't being printed at all before, right? Because it was after the exec?

As I saw when manually running the test, it's kind of spammy now unfortunately since it's printed once for each worker. On the other hand, this info is really useful for debugging. @rkooo567 do you know how to make this log appear in the log files, but not be streamed to the driver? We could change it to log.debug, but then the user has to set RAY_BACKEND_LOG_LEVEL=debug before starting the cluster for the logs to appear in the file, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe this should be in a separate PR if it is causing unsolvable problems.

@architkulkarni

Copy link
Copy Markdown
Contributor

This looks reasonable, I'm not super familiar how the site mechanism works in Python so I think it would be helpful to have a review from @simon-mo. @simon-mo would you mind taking a look?

Also @mattip, do you know if the Windows tests are currently being run with the RAY_RUNTIME_ENV_LOCAL_DEV_MODE flag, or if they're using the wheel built in CI like in the Mac/Linux tests (this part

if os.environ.get("RAY_CI_POST_WHEEL_TESTS"):
# Running in Buildkite CI after the wheel has been built.
# Wheels are at in the ray/.whl directory, but use relative path to
# allow for testing locally if needed.
return os.path.join(
Path(ray.__file__).resolve().parents[2], ".whl", get_wheel_filename()
)
)? Using the wheel is a bit more faithful to the codepath used by the released versions of Ray, but either way is fine.

@simon-mo

Copy link
Copy Markdown
Contributor

@architkulkarni or @mattip would you mind testing manually on linux/macos for this flag? If it works then this change LGTM

@mattip

mattip commented Mar 31, 2022

Copy link
Copy Markdown
Contributor Author

I will check that RAY_CI_POST_WHEEL_TESTS. I think we get a hint since this passed locally but failed on CI around the use of a whl:

The windows run of the enabled test is getting an error

RuntimeError: Failed to install conda environment \
   C:\Users\ContainerAdministrator\AppData\Local\Temp\ray\session_2022-03-30_22-34-48_602017_6148\runtime_resources\conda\aa958e4ea4f7080354413b6d2cb9214637aa7044:
Installing pip dependencies: ...working... Ran pip subprocess with arguments:
['C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\ray\\session_2022-03-30_22-34-48_602017_6148\\runtime_resources\\conda\\aa958e4ea4f7080354413b6d2cb9214637aa7044\\python.exe', \
    '-m', 'pip', 'install', '-U', '-r', \
    'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\ray\\session_2022-03-30_22-34-48_602017_6148\\runtime_resources\\conda\\condaenv.bixiqmor.requirements.txt'\
]
Processing c:\install\ray\.whl\ray-2.0.0.dev0-cp38-cp38-win_amd64.whl
...
ERROR: Could not install packages due to an OSError: [Errno 2] \
No such file or directory: 'C:\\Install\\ray\\.whl\\ray-2.0.0.dev0-cp38-cp38-win_amd64.whl'

@architkulkarni

Copy link
Copy Markdown
Contributor

@architkulkarni or @mattip would you mind testing manually on linux/macos for this flag? If it works then this change LGTM

Sounds good, I'll check locally that the flag works on Mac and reply here if it works or not.

@mattip mattip changed the title Enalbe conda runtime creation in workers on windows Enable conda runtime creation in workers on windows Mar 31, 2022
@mattip

mattip commented Mar 31, 2022

Copy link
Copy Markdown
Contributor Author

On windows, the WINDOWS_WHEELS environment variable is not set during the windows: Build and Test CI step, so no wheel is built. This makes the conda test fail since RAY_CI_POST_WHEEL_TESTS is set. I am afraid setting the WINDOWS_WHEELS environment variable would break CI, I unset the RAY_CI_POST_WHEEL_TESTS option for windows. Let me know if this is unacceptable and we can try enabling WINDOWS_WHEELS for the whole test suite instead.

@mattip

mattip commented Apr 1, 2022 •

Copy link
Copy Markdown
Contributor Author

Hmm. Stuck between a rock and a hard place. Enabling BUILD_WHEELS (commit e998727) breaks the build: CI tries to build ray again after already building it ray once and fails. But without BUILD_WHEELS, with either RAY_CI_POST_WHEEL_TESTS disabled (commit 5c0469d59) or enabled like the original commit fail since they expect a wheel where there is none.

@architkulkarni

Copy link
Copy Markdown
Contributor

Hmm. Stuck between a rock and a hard place. Enabling BUILD_WHEELS (commit e998727) breaks the build: CI tries to build ray again after already building it ray once and fails. But without BUILD_WHEELS, with either RAY_CI_POST_WHEEL_TESTS disabled (commit 5c0469d) or enabled like the original commit fail since they expect a wheel where there is none.

I see... so the options are

  1. Somehow build the wheel in the Windows pipeline and make it appear in the right location, and enable RAY_CI_POST_WHEEL_TESTS.
  2. Don't build a wheel, and instead ensure RAY_RUNTIME_ENV_LOCAL_DEV_MODE is used in CI so that runtime_env doesn't look for a wheel.

You said 1 isn't working because the second build fails.

I think 2 should work though. I think the reason it isn't working is because we have CI=1 set here 5c0469d#diff-806d108e290c50e29ba31957e91323241f074d4f9a6c7f899ff74384655db9eeL183, but we also have https://github.com/ray-project/ray/blob/e998727f28c7b21820739c3b611bb7997ab92ab4/python/ray/tests/test_runtime_env_complicated.py#L34-L37.

I think we just need to edit one of the parts linked above so that RAY_RUNTIME_ENV_LOCAL_DEV_MODE is set in Windows CI, @mattip does that make sense?

@architkulkarni

architkulkarni commented Apr 4, 2022 •

Copy link
Copy Markdown
Contributor

@architkulkarni or @mattip would you mind testing manually on linux/macos for this flag? If it works then this change LGTM

Sounds good, I'll check locally that the flag works on Mac and reply here if it works or not.

On master, test_runtime_env_complicated passes on my Mac laptop (it uses the RAY_RUNTIME_ENV_LOCAL_DEV_MODE flag.).

But on this PR, I get the following traceback:

traceback

――――――――――― ERROR at setup of test_client_tasks_and_actors_inherit_from_driver[ray start --head --ray-client-server-port 24001 --port 0] ――――――――――――

request = <FixtureRequest for <Function test_client_tasks_and_actors_inherit_from_driver[ray start --head --ray-client-server-port 24001 --port 0]>>

    def fill(request):
        item = request._pyfuncitem
        fixturenames = getattr(item, "fixturenames", None)
        if fixturenames is None:
            fixturenames = request.fixturenames
    
        if hasattr(item, 'callspec'):
            for param, val in sorted_by_dependency(item.callspec.params, fixturenames):
                if val is not None and is_lazy_fixture(val):
                    item.callspec.params[param] = request.getfixturevalue(val.name)
                elif param not in item.funcargs:
>                   item.funcargs[param] = request.getfixturevalue(param)

../../../../anaconda3/envs/ray-py38/lib/python3.8/site-packages/pytest_lazyfixture.py:37: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
conftest.py:275: in call_ray_start
    subprocess.check_output(command_args, stderr=subprocess.STDOUT)
../../../../anaconda3/envs/ray-py38/lib/python3.8/subprocess.py:415: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

input = None, capture_output = False, timeout = None, check = True
popenargs = (['ray', 'start', '--head', '--ray-client-server-port', '24001', '--port', ...],), kwargs = {'stderr': -2, 'stdout': -1}
process = <subprocess.Popen object at 0x7fd0312faf40>
stdout = b'Traceback (most recent call last):\n  File "/Users/archit/anaconda3/envs/ray-py38/bin/ray", line 33, in <module>\n  ...te/usage/usage_lib.py", line 57, in <module>\n    import requests\nModuleNotFoundError: No module named \'requests\'\n'
stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['ray', 'start', '--head', '--ray-client-server-port', '24001', '--port', '0']' returned non-zero exit status 1.

../../../../anaconda3/envs/ray-py38/lib/python3.8/subprocess.py:516: CalledProcessError
---------------------------------------------------------------- Captured log setup -----------------------------------------------------------------
WARNING  ray._private.runtime_env.conda:conda.py:86 Injecting /Users/archit/anaconda3/envs/ray-py38/lib/python3.8/site-packages to environment site-packages /Users/archit/anaconda3/envs/package-2.2.0/lib/python3.8/site-packages because _inject_current_ray flag is on.
WARNING  ray._private.runtime_env.conda:conda.py:86 Injecting /Users/archit/anaconda3/envs/ray-py38/lib/python3.8/site-packages to environment site-packages /Users/archit/anaconda3/envs/package-2.3.0/lib/python3.8/site-packages because _inject_current_ray flag is on.
                                                                                                                                        4% ▍         2022-04-04 13:12:50,843 ERROR services.py:1478 -- Failed to start the dashboard: Failed to start the dashboard, return code 1
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2022-04-04_13-12-49_020360_60826/logs/dashboard.log'
2022-04-04 13:12:50,843 ERROR services.py:1479 -- Failed to start the dashboard, return code 1
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2022-04-04_13-12-49_020360_60826/logs/dashboard.log'
Traceback (most recent call last):
  File "/Users/archit/ray/python/ray/_private/services.py", line 1441, in start_dashboard
    with open(dashboard_log, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/ray/session_2022-04-04_13-12-49_020360_60826/logs/dashboard.log'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/archit/ray/python/ray/_private/services.py", line 1452, in start_dashboard
    raise Exception(err_msg + f"\nFailed to read dashboard log: {e}")
Exception: Failed to start the dashboard, return code 1
Failed to read dashboard log: [Errno 2] No such file or directory: '/tmp/ray/session_2022-04-04_13-12-49_020360_60826/logs/dashboard.log'
[2022-04-04 13:12:53,091 E 60826 17594198] core_worker.cc:137: Failed to register worker 01000000ffffffffffffffffffffffffffffffffffffffffffffffff to Raylet. IOError: [RayletClient] Unable to register worker with raylet. No such file or directory

After this, if I try to do import ray I get ModuleNotFoundError: No module named 'requests', even though I had requests installed before running the first test. It seems like this could be related to the change in this PR, since the fixture conda_envs uses helper functions that are modified in this PR.

@mattip

mattip commented Apr 4, 2022

Copy link
Copy Markdown
Contributor Author

After this, if I try to do import ray I get ModuleNotFoundError: No module named 'requests'

This is confusing. The PR (and the tests) should only be modifying the runtime environment in /tmp/ray/session_XXX. Perhaps the ray.pth file (that is now ray_conda.pth is somehow showing up in one of the directories in sys.path?

@mattip
mattip force-pushed the conda-runtime-windows branch from e998727 to 757120f Compare April 5, 2022 16:34
@mattip

mattip commented Apr 5, 2022

Copy link
Copy Markdown
Contributor Author

After this, if I try to do import ray I get ModuleNotFoundError: No module named 'requests'

Reverting the ray_path change in 757120f fixed this for me on linux. @architkulkarni could you try again on macOS?

@architkulkarni

Copy link
Copy Markdown
Contributor

After this, if I try to do import ray I get ModuleNotFoundError: No module named 'requests'

Reverting the ray_path change in 757120f fixed this for me on linux. @architkulkarni could you try again on macOS?

Fixed for me as well! runtime_env_complicated.py passes for me locally on Mac

@mattip

mattip commented Apr 5, 2022

Copy link
Copy Markdown
Contributor Author

The linkcheck failure is fixed on HEAD. It seems the CI does not merge with master before running.

@mattip
mattip force-pushed the conda-runtime-windows branch from 03b93ec to 2cbd04c Compare April 6, 2022 11:00
@mattip

mattip commented Apr 6, 2022

Copy link
Copy Markdown
Contributor Author

rebased and unset RAY_RUNTIME_ENV_LOCAL_DEV_MODE where required to pass tests

@mattip

mattip commented Apr 6, 2022

Copy link
Copy Markdown
Contributor Author

Did I break all those non-windows test runs?

@architkulkarni

Copy link
Copy Markdown
Contributor

Did I break all those non-windows test runs?

Looks like it's unrelated: https://flaky-tests.ray.io/

@mattip
mattip force-pushed the conda-runtime-windows branch 2 times, most recently from 6efe0e5 to c111c1e Compare April 9, 2022 20:15
@mattip

mattip commented Apr 10, 2022 •

Copy link
Copy Markdown
Contributor Author

When I run the tests via bazel [0] the test_wait_mixup failure to start up reproduces. When I run the tests via pytest [1] (after setting the environment like in the bazel command) they pass.

0
bazel test --config=ci --build_tests_only --test_env=CI=1 \
    --test_env=RAY_RUNTIME_ENV_LOCAL_DEV_MODE=1 --test_output=streamed \
    -- //python/ray/tests:test_async
...
============================= test session starts =============================
platform win32 -- Python 3.8.10, pytest-5.4.3, py-1.10.0, pluggy-0.13.1 -- C:\temp\ray_dev\Scripts\python.exe
cachedir: .pytest_cache
rootdir: C:\Users\Matti\AppData\Local\Temp\Bazel.runfiles_z3qcxrpm\runfiles\com_github_ray_project_ray
plugins: asyncio-0.15.1, lazy-fixture-0.6.3, rerunfailures-10.2, timeout-1.4.2
collecting ... collected 9 items

::test_simple PASSED                                                     [ 11%]
(17:37:15) [1 / 2] Testing //python/ray/tests:test_async; 27s local
::test_gather PASSED                                                     [ 22%]
::test_wait PASSED                                                       [ 33%]
::test_wait_timeout PASSED                                               [ 44%]
(17:37:50) [1 / 2] Testing //python/ray/tests:test_async; 63s local
::test_gather_mixup PASSED                                               [ 55%]
::test_wait_mixup FAILED                                                 [ 66%]
::test_garbage_collection[ray_start_regular_shared0] PASSED              [ 77%]
::test_concurrent_future PASSED                                          [ 88%]
(17:38:32) [1 / 2] Testing //python/ray/tests:test_async; 104s local
::test_concurrent_future_many PASSED                                     [100%]
1
>python -m pytest python\ray\tests\test_async.py -vv
====================================================== test session starts =======================================================
platform win32 -- Python 3.8.10, pytest-5.4.3, py-1.10.0, pluggy-0.13.1 -- C:\temp\ray_dev\Scripts\python.exe
cachedir: .pytest_cache
rootdir: C:\oss\ray-git\python
plugins: asyncio-0.15.1, lazy-fixture-0.6.3, rerunfailures-10.2, timeout-1.4.2
collected 9 items

python\ray\tests\test_async.py::test_simple PASSED                                                                          [ 11%]
python\ray\tests\test_async.py::test_gather PASSED                                                                          [ 22%]
python\ray\tests\test_async.py::test_wait PASSED                                                                            [ 33%]
python\ray\tests\test_async.py::test_wait_timeout PASSED                                                                    [ 44%]
python\ray\tests\test_async.py::test_gather_mixup PASSED                                                                    [ 55%]
python\ray\tests\test_async.py::test_wait_mixup PASSED                                                                      [ 66%]
python\ray\tests\test_async.py::test_garbage_collection[ray_start_regular_shared0] PASSED                                   [ 77%]
python\ray\tests\test_async.py::test_concurrent_future PASSED                                                               [ 88%]
python\ray\tests\test_async.py::test_concurrent_future_many PASSED                                                          [100%]

Edit: this belongs to PR #23867

@mattip
mattip force-pushed the conda-runtime-windows branch from c111c1e to b201e52 Compare April 12, 2022 19:01
@mattip

mattip commented Apr 13, 2022

Copy link
Copy Markdown
Contributor Author

Apparently the use of RAY_RUNTIME_ENV_LOCAL_DEV_MODE=1 causes many tests to fail on windows.

@mattip

mattip commented Apr 14, 2022

Copy link
Copy Markdown
Contributor Author

@architkulkarni using RAY_RUNTIME_ENV_LOCAL_DEV_MODE=1 is causing problems in many places:

  • I needed to increase a timeout in 84add62
  • many tests are timing out or failing to run properly.

The problem is that mode turns on self["_inject_current_ray"] = True. If I skip this, things start to work again.

elif "RAY_RUNTIME_ENV_LOCAL_DEV_MODE" in os.environ:
self["_inject_current_ray"] = True

@architkulkarni

Copy link
Copy Markdown
Contributor

@architkulkarni using RAY_RUNTIME_ENV_LOCAL_DEV_MODE=1 is causing problems in many places:

  • I needed to increase a timeout in 84add62
  • many tests are timing out or failing to run properly.

The problem is that mode turns on self["_inject_current_ray"] = True. If I skip this, things start to work again.

elif "RAY_RUNTIME_ENV_LOCAL_DEV_MODE" in os.environ:
self["_inject_current_ray"] = True

@mattip Interesting that things work after inject_current_ray is skipped... that's the only functionality of RAY_RUNTIME_ENV_LOCAL_DEV_MODE. I would expect the runtime_env conda tests to fail, since Ray won't have been injected in the installed conda environment (so ray won't be importable by the workers.)

Would it be simpler to try option 1 from #23613 (comment)? As long as the wheel is present in the right place on the CI machine, the tests should work just as they do for Mac/Linux.

@mattip

mattip commented May 22, 2022

Copy link
Copy Markdown
Contributor Author

I'm not sure what happened: it looks like CI ran again and now everything is passing?

@mattip

mattip commented May 26, 2022

Copy link
Copy Markdown
Contributor Author

Note that this has a fix for the agent ID, but the fix in #24968 is deeper and better. It would be nice to get that merged, then rebase this on top of it.

@mattip
mattip force-pushed the conda-runtime-windows branch from 9b5bf49 to 57bf108 Compare May 27, 2022 05:50
Comment thread ci/ci.sh
--test_env=RAY_CI_POST_WHEEL_TESTS="1" \
--test_env=USERPROFILE="${USERPROFILE}" \
--test_env=CI=1 \
--test_env=RAY_CI_POST_WHEEL_TESTS=1 \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This seems to have solved a problem where the quoted USERPROFILE value somehow blocked setting CI=1 and RAY_CI_POST_WHEEL_TESTS=1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting, not sure what's going on there but glad it worked!

@mattip

mattip commented May 27, 2022

Copy link
Copy Markdown
Contributor Author

Rebased on top of #24968, CI on windows is passing and I do not think the other failures are related.

Comment thread ci/ci.sh
# For runtime_env tests, wheels are needed
cd "${WORKSPACE_DIR}"
keep_alive pip wheel -e python -w .whl
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, how does this affect the CI running time? Will it just add some minutes at the beginning of the 6/6 buildkite Windows jobs, or something else?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it adds a minute

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah thanks a lot for the link! That sounds fine to me, since the full job is ~120 minutes.

if time.monotonic() - start > 30:
raise RuntimeError("Failed to terminate Ray")
# Allow windows to close processes before moving on
time.sleep(3)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: Should this be wrapped in an if statement so that it only happens on Windows? Also, I wondered if this would slow things down excessively, but it looks like there are already some sleep statements above this line to account for Ray taking a few seconds to terminate. Since this is just adding a few seconds more I think it's fine.

@architkulkarni architkulkarni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good! Let me check the failures against the flaky test tracker.

@architkulkarni

Copy link
Copy Markdown
Contributor
  • The "C++, Java, Libraries" failure is complaining about a port collision, it might be random? I didn't see it on the flaky test tracker. It looks unrelated to this PR, so I restarted the test.

  • "Apple Medium K-Z" It looks like the pytests all passed, but the job failed with "Error: The local post-command hook exited with status 1" and I couldn't find the root cause. Restarting

  • test_client is known flaky on the flaky test tracker

  • test_modin is known flaky on the flaky test tracker

@architkulkarni

Copy link
Copy Markdown
Contributor

The only outstanding failure is "C++, Java and Libraries", still confirming that this is flaky on master. It seems unrelated

@architkulkarni

Copy link
Copy Markdown
Contributor

Confirmed that "C++, Java and Libraries" failure is unrelated (it was broken on master), @simon-mo could you please merge this when you get a chance?

@architkulkarni

Copy link
Copy Markdown
Contributor

Actually it looks like the cause of the "C++, Java and Libraries" failure was #24968 which was reverted, but this PR was rebased off of that PR. @mattip is this PR still good to merge even with that PR reverted?

@mattip

mattip commented Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

No, this PR should wait until a replacement for #24968 is merged.

@mattip

mattip commented Jun 9, 2022

Copy link
Copy Markdown
Contributor Author

@architkulkarni the revert was reverted, this PR should be OK now.

@architkulkarni

Copy link
Copy Markdown
Contributor

Great! In that case @simon-mo could you please merge this when you get a chance? Sorry for the back and forth

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