-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC - [computelogmanager] add fields to pass uri, path or shell cmd #26723
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1493,8 +1493,12 @@ def capture_logs( | |
event_specific_data=ComputeLogsCaptureData( | ||
step_keys=step_keys, | ||
file_key=file_key, | ||
stdout_uri_or_path=log_context.stdout_uri_or_path, | ||
stderr_uri_or_path=log_context.stderr_uri_or_path, | ||
external_stdout_url=log_context.external_stdout_url, | ||
external_stderr_url=log_context.external_stderr_url, | ||
stdout_shell_cmd=log_context.stdout_shell_cmd, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is adding fields to a LOGS_CAPTURED event payload problematic? |
||
stderr_shell_cmd=log_context.stderr_shell_cmd, | ||
external_url=log_context.external_url, | ||
), | ||
) | ||
|
@@ -1877,6 +1881,10 @@ class ComputeLogsCaptureData( | |
("external_url", Optional[str]), | ||
("external_stdout_url", Optional[str]), | ||
("external_stderr_url", Optional[str]), | ||
("stdout_uri_or_path", Optional[str]), | ||
("stderr_uri_or_path", Optional[str]), | ||
("stdout_shell_cmd", Optional[str]), | ||
("stderr_shell_cmd", Optional[str]), | ||
], | ||
) | ||
): | ||
|
@@ -1887,6 +1895,10 @@ def __new__( | |
external_url: Optional[str] = None, | ||
external_stdout_url: Optional[str] = None, | ||
external_stderr_url: Optional[str] = None, | ||
stdout_uri_or_path: Optional[str] = None, | ||
stderr_uri_or_path: Optional[str] = None, | ||
stdout_shell_cmd: Optional[str] = None, | ||
stderr_shell_cmd: Optional[str] = None, | ||
): | ||
return super(ComputeLogsCaptureData, cls).__new__( | ||
cls, | ||
|
@@ -1895,6 +1907,10 @@ def __new__( | |
external_url=check.opt_str_param(external_url, "external_url"), | ||
external_stdout_url=check.opt_str_param(external_stdout_url, "external_stdout_url"), | ||
external_stderr_url=check.opt_str_param(external_stderr_url, "external_stderr_url"), | ||
stdout_uri_or_path=check.opt_str_param(stdout_uri_or_path, "stdout_uri_or_path"), | ||
stderr_uri_or_path=check.opt_str_param(stderr_uri_or_path, "stderr_uri_or_path"), | ||
stdout_shell_cmd=check.opt_str_param(stdout_shell_cmd, "stdout_shell_cmd"), | ||
stderr_shell_cmd=check.opt_str_param(stderr_shell_cmd, "stderr_shell_cmd"), | ||
) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will definitely need css+html rework, i was just passing information and making the click to copy work.
when thinking about this ui, should we provide even more information, such as additional text about to use the shell command (ie, requiring a preconfigured azure cli, for example) ? I stopped short of this because I was already concerned about increasing the event size, but maybe I could add a 'log type' field that the UI could use to render that additional information without producing it from the ComputeLogManager
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's reasonable to have a log_type field or something like that, that the UI could use rather than put that information in the event body itself.