Skip to content
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

feat: Show all experiments in monitor #835

Merged
merged 8 commits into from
Sep 30, 2019
Merged

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented Sep 29, 2019

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:



This change is Reviewable

@gaocegege gaocegege changed the title feat: Show all experiments in monitor WIP feat: Show all experiments in monitor Sep 29, 2019
if experiment.Spec.NasConfig != nil {
experimentLastCondition, err := experiment.GetLastConditionType()
if err != nil {
log.Printf("GetLastConditionType for HP failed: %v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/HP/NAS


el, err := k.katibClient.GetExperimentList(namespace)
if err != nil {
log.Printf("GetExperimentList for NAS failed: %v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems the experiment list will include all kinds of experiment, not only NAS

jobs := make([]JobView, 0)

el, err := k.katibClient.GetExperimentList()
jobs, err := k.getExperimentList(consts.DefaultKatibNamespace)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why only consts.DefaultKatibNamespace?

http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
log.Printf("?????: %v", jobs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

????? by mistake?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still WIP, some bugs are not fixed. Thus it is a WIP log.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed WIP tag, please go ahead

log.Printf("?????: %v", jobs)
response, err := json.Marshal(jobs)
if err != nil {
log.Printf("Marshal NAS jobs failed: %v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAS?

@gaocegege
Copy link
Member Author

Peek 2019-09-29 17-49

Copy link
Member Author

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaocegege gaocegege changed the title WIP feat: Show all experiments in monitor feat: Show all experiments in monitor Sep 29, 2019
@johnugeorge
Copy link
Member

/retest

Signed-off-by: Ce Gao <[email protected]>
@gaocegege
Copy link
Member Author

/assign @johnugeorge

@johnugeorge
Copy link
Member

/lgtm

@johnugeorge
Copy link
Member

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants