-
Notifications
You must be signed in to change notification settings - Fork 691
[Test] [history server] [collector] Ensure event type coverage #4343
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
Changes from 21 commits
b0172bc
eeb7a7f
0ff5bcf
5aea305
5f547a2
0177160
420ce9a
0621ba4
07403f7
de153d1
d1c2b18
14a9b52
598dbfd
9611a42
9f70a21
84519bc
c796bfc
c3f73b1
302d903
5c8fc59
10237ec
0e28fa2
48681ab
5c5c878
6f47105
926aee4
d94d02a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,7 @@ package e2e | |||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| import ( | ||||||||||||||||||||||||||||||||||||
| "context" | ||||||||||||||||||||||||||||||||||||
| "encoding/json" | ||||||||||||||||||||||||||||||||||||
| "fmt" | ||||||||||||||||||||||||||||||||||||
| "os/exec" | ||||||||||||||||||||||||||||||||||||
| "path/filepath" | ||||||||||||||||||||||||||||||||||||
|
|
@@ -18,8 +19,6 @@ import ( | |||||||||||||||||||||||||||||||||||
| "github.com/aws/aws-sdk-go/aws/session" | ||||||||||||||||||||||||||||||||||||
| "github.com/aws/aws-sdk-go/service/s3" | ||||||||||||||||||||||||||||||||||||
| rayv1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1" | ||||||||||||||||||||||||||||||||||||
| "github.com/ray-project/kuberay/ray-operator/controllers/ray/utils" | ||||||||||||||||||||||||||||||||||||
| rayv1ac "github.com/ray-project/kuberay/ray-operator/pkg/client/applyconfiguration/ray/v1" | ||||||||||||||||||||||||||||||||||||
| . "github.com/ray-project/kuberay/ray-operator/test/support" | ||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
|
|
@@ -35,8 +34,33 @@ const ( | |||||||||||||||||||||||||||||||||||
| // Ray cluster | ||||||||||||||||||||||||||||||||||||
| rayClusterManifestPath = "../../config/raycluster.yaml" | ||||||||||||||||||||||||||||||||||||
| rayClusterID = "default" | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| // Ray job | ||||||||||||||||||||||||||||||||||||
| rayJobManifestPath = "../../config/rayjob.yaml" | ||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| // rayEventTypes includes all potential event types defined in Ray: | ||||||||||||||||||||||||||||||||||||
| // https://github.com/ray-project/ray/blob/3b41c97fa90c58b0b72c0026f57005b92310160d/src/ray/protobuf/public/events_base_event.proto#L49-L61 | ||||||||||||||||||||||||||||||||||||
| var rayEventTypes = []string{ | ||||||||||||||||||||||||||||||||||||
| "ACTOR_DEFINITION_EVENT", | ||||||||||||||||||||||||||||||||||||
| "ACTOR_LIFECYCLE_EVENT", | ||||||||||||||||||||||||||||||||||||
| "ACTOR_TASK_DEFINITION_EVENT", | ||||||||||||||||||||||||||||||||||||
| "DRIVER_JOB_DEFINITION_EVENT", | ||||||||||||||||||||||||||||||||||||
| "DRIVER_JOB_LIFECYCLE_EVENT", | ||||||||||||||||||||||||||||||||||||
| "TASK_DEFINITION_EVENT", | ||||||||||||||||||||||||||||||||||||
| "TASK_LIFECYCLE_EVENT", | ||||||||||||||||||||||||||||||||||||
| "TASK_PROFILE_EVENT", | ||||||||||||||||||||||||||||||||||||
| "NODE_DEFINITION_EVENT", | ||||||||||||||||||||||||||||||||||||
| "NODE_LIFECYCLE_EVENT", | ||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| const ( | |
| JobStatusNew JobStatus = "" | |
| JobStatusPending JobStatus = "PENDING" | |
| JobStatusRunning JobStatus = "RUNNING" | |
| JobStatusStopped JobStatus = "STOPPED" | |
| JobStatusSucceeded JobStatus = "SUCCEEDED" | |
| JobStatusFailed JobStatus = "FAILED" | |
| ) | |
| var AllJobStatuses = []JobStatus{ | |
| JobStatusNew, | |
| JobStatusPending, | |
| JobStatusRunning, | |
| JobStatusStopped, | |
| JobStatusSucceeded, | |
| JobStatusFailed, | |
| } |
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.
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.
We define this custom type (with specific fields) to represent the decoded Ray event for future extensibility. For example, we might want to do more fine-grained verification after the history server becomes stable.
JiangJiaWei1103 marked this conversation as resolved.
Show resolved
Hide resolved
JiangJiaWei1103 marked this conversation as resolved.
Show resolved
Hide resolved
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.
Is it possible to parse the --ray-root-dir argument? If not, it would be helpful to add a comment explain.
kuberay/historyserver/config/raycluster.yaml
Line 101 in 79b5c30
| - --ray-root-dir=log |
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.
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.
can you help me try
ray.shutdown(), maybe it will workThere 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.
Unfortunately, it doesn't work either:
Maybe the error is on the Ray side, let's keep tracking this issue!
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.
Created an issue here
ray-project/ray#60218