ray/dashboard/modules/job/tests/subprocess_driver_scripts
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
..
__init__.py [job submission] Move job_manager to dashboard module, common parts to common.py (#20209) 2021-11-10 14:14:55 -08:00
check_cuda_devices.py [job submission] Don't set CUDA_VISIBLE_DEVICES in job driver (#24546) 2022-05-10 11:43:04 -05:00
consume_one_cpu.py [jobs] Add test condition that job runs w/o CPUs available on head node (#22260) 2022-02-10 10:23:02 -06:00
override_env_var.py [Jobs] Test job submit with no specified ray address (#23119) 2022-03-14 13:44:06 -05:00
per_task_runtime_env.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
print_namespace.py [Jobs] Test job submit with no specified ray address (#23119) 2022-03-14 13:44:06 -05:00
print_runtime_env.py [Jobs] Test job submit with no specified ray address (#23119) 2022-03-14 13:44:06 -05:00
ray_tune_basic.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
ray_tune_dependency.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
script_with_exception.py [job submission] Move job_manager to dashboard module, common parts to common.py (#20209) 2021-11-10 14:14:55 -08:00