ray/dashboard/modules/job/tests
Archit Kulkarni 6d2806f951
[Jobs] [Test] Add integration tests to cover runtime_env inheritance with working_dir and with Tune (#25562)
The current inheritance behavior for runtime_envs enables the following workflow for Jobs:  A working_dir can be set in the Jobs API, and then inside the driver script, if a new per-task runtime_env is defined, it will automatically inherit the driver's working_dir.

There is an ongoing discussion about the best approach for runtime_env inheritance going forward: https://github.com/ray-project/ray/issues/25484, in which we noted that there were no tests covering this behavior.

This PR adds integration tests for the above behavior. If we ultimately decide to abandon the current inheritance behavior and instead have child runtime envs completely overwrite the parent runtime env, this test will fail, reminding us to do the following:

- Update the internal runtime_env usage in Ray Tune to use the `ray.get_runtime_context().runtime_env.update` API
- Update the documentation for Ray Jobs telling users to use `ray.get_runtime_context().runtime_env.update` and update this test
2022-06-08 13:54:06 -07:00
..
backwards_compatibility_scripts [Jobs] Reenable test_backwards_compatibility using Ray 1.12 (#24124) 2022-04-26 13:53:51 -05:00
subprocess_driver_scripts [Jobs] [Test] Add integration tests to cover runtime_env inheritance with working_dir and with Tune (#25562) 2022-06-08 13:54:06 -07:00
pip_install_test-0.5-py3-none-any.whl [runtime env] Support .whl files in py_modules (#22368) 2022-03-16 16:37:10 -05:00
test_backwards_compatibility.py [Jobs] Reenable test_backwards_compatibility using Ray 1.12 (#24124) 2022-04-26 13:53:51 -05:00
test_cli.py [job submission] Fix address defaulting behavior (#24970) 2022-05-20 14:10:36 -05:00
test_cli_integration.py [minor] Add a job submission hook by env var (#25343) 2022-06-01 11:15:43 -07:00
test_common.py [runtime env] Support .whl files in py_modules (#22368) 2022-03-16 16:37:10 -05:00
test_http_job_server.py [Jobs] [Test] Add integration tests to cover runtime_env inheritance with working_dir and with Tune (#25562) 2022-06-08 13:54:06 -07:00
test_job_manager.py Support file:// for runtime_env working directories in jobs (#25062) 2022-05-24 16:17:18 -07:00
test_sdk.py [runtime_env] Add temporary URI reference to prevent URI deletion before job starts (#24719) 2022-05-23 10:25:04 -05:00
test_utils.py [CI] Format Python code with Black (#21975) 2022-01-29 18:41:57 -08:00