ray/dashboard/modules/job
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
..
tests [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
__init__.py Job module without submission (#13081) 2020-12-31 11:12:17 +08:00
cli.py [minor] Add a job submission hook by env var (#25343) 2022-06-01 11:15:43 -07:00
common.py [Jobs] Change jobs start_time end_time from seconds to ms for consistency (#24123) 2022-04-26 08:37:41 -07:00
job_head.py [runtime_env] Add temporary URI reference to prevent URI deletion before job starts (#24719) 2022-05-23 10:25:04 -05:00
job_manager.py [job submission] Handle env_vars: None case properly in supervisor runtime_env logic (#25087) 2022-05-24 11:01:19 -05:00
sdk.py [job submission] Fix address defaulting behavior (#24970) 2022-05-20 14:10:36 -05:00
utils.py [Jobs] Add log streaming for jobs (#20976) 2021-12-14 17:01:53 -08:00