-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add debugging dashboard url to workload creation output #48
Conversation
xpk.py
Outdated
|
||
Args: | ||
args: user provided arguments for running the command. | ||
|
||
Returns: | ||
str: | ||
identifier of outlier dashbord if deployed in project, | ||
identifier of dashbord if deployed in project, |
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.
nit dashbord -> dashboard
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.
might be misspelled in the other function descriptions as well
xpk.py
Outdated
None otherwise. | ||
""" | ||
outlier_dashboard_filter = "displayName:'GKE - TPU Monitoring Dashboard'" | ||
dashboard_id = get_gke_dashboard(args, outlier_dashboard_filter) |
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.
Overall looks great!
I see that we check the dashboard_id in two ways before erroring:
- if it is None which behind the scenes means an error in the command
- If not dashboard_id which means the dashboard id is empty and there are no dashboards available.
I think we can make this easier to read by having get_gke_dashboard return a tuple with (return_error, return_val) syntax? Otherwise if dashboard_id is None
and if not dashboard_id
are hard to tell what they are checking. Like for example if not dashboard_id
would be True if dashboard_id is None. What do you think about this?
xpk.py
Outdated
args: user provided arguments for running the command. | ||
|
||
Returns: | ||
bool: |
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 get_gke_outlier_dashboard
only returns a str
Fixes / Features
cloud-tpu-diagnostics
package.Testing / Documentation
Testing details.