-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime env metadata to jobs detail page. (#34984)
Also makes the job detail page work when accessed via the submission id in the path. This will enable future work to link to submission-only jobs. Also fixes bug where the grafana dashboard dropdowns for Deployments and Replicas don't work until after the first request was received for that replica or deployment.
- Loading branch information
Showing
8 changed files
with
147 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { filterRuntimeEnvSystemVariables } from "./util"; | ||
|
||
describe("filterRuntimeEnvSystemVariables", () => { | ||
it("filters out system variables", () => { | ||
expect( | ||
filterRuntimeEnvSystemVariables({ | ||
pip: { | ||
pip_check: true, | ||
packages: ["chess", "foo", "bar"], | ||
pip_version: "1.2.3", | ||
}, | ||
env_vars: { | ||
FOO: "foo", | ||
BAR: "5", | ||
}, | ||
working_dir: ".", | ||
_ray_release: "2.3.1", | ||
_ray_commit: "12345abc", | ||
_inject_current_ray: false, | ||
}), | ||
).toEqual({ | ||
pip: { | ||
pip_check: true, | ||
packages: ["chess", "foo", "bar"], | ||
pip_version: "1.2.3", | ||
}, | ||
env_vars: { | ||
FOO: "foo", | ||
BAR: "5", | ||
}, | ||
working_dir: ".", | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters