Repository navigation
test(e2e): add the rayjob flow and its recorded fixtures - #288
Conversation
39807b7 to
4fae67a
Compare
4fae67a to
6846bbc
Compare
de2aedd to
5c98956
Compare
5c98956 to
3862c25
Compare
3862c25 to
c0d7809
Compare
c0d7809 to
04732c6
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (14)
Included review availability: Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughRayJob initialization detection now uses either ChangesRayJob lifecycle
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Unblocks: 7 PRs Sequence Diagram(s)sequenceDiagram
participant RayJobSuite
participant KubeRayOperator
participant RayCluster
participant Recorder
RayJobSuite->>KubeRayOperator: Apply RayJob fixture
KubeRayOperator->>RayCluster: Provision or suspend cluster
RayCluster-->>KubeRayOperator: Report readiness or terminal status
KubeRayOperator-->>Recorder: Record RayJob lifecycle state
RayJobSuite->>KubeRayOperator: Resume suspended RayJob
KubeRayOperator-->>Recorder: Record resumed Running state
Merge Risk: ⚪ Minimal · up to No concrete correctness or operational risk remains; the change is ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
04732c6 to
9abb5c6
Compare
9abb5c6 to
484d869
Compare
484d869 to
3b669a4
Compare
3b669a4 to
d602e1e
Compare
d602e1e to
b1634ab
Compare
b1634ab to
b500c40
Compare
The cluster bring-up before job submission is reported through jobDeploymentStatus Initializing, matched the same way the Suspended mapping already reads that field. Verified frame by frame on the recorded RayJob fixtures. Signed-off-by: aviadh <aviad.hayumi@gmail.com>
Signed-off-by: aviadh <aviad.hayumi@gmail.com>
b500c40 to
216a30a
Compare
Records the RayJob flows (running, completed, failed, suspended, resumed) and replays every frame through the catalog definition. The recordings are what caught this gap.
Why the definition changes: before job submission the operator reports the cluster bring-up only through jobDeploymentStatus Initializing - jobStatus is still empty. The definition read jobStatus alone, so the whole bring-up read Undefined. The new matcher reads that field the same way the suspended mapping already does.
statusMappings: initializing: - byPhase: PENDING + - byExpression: + expression: .status.jobDeploymentStatus == "Initializing" + expectedResult: "true"The recorder side also tightens: Suspended is labelled only from the settled Suspended, and transients like Suspending or a reset status stay recorded as Undefined, which the replay verifies too.
The recorded fixtures in this PR show the exact bring-up frames: the replay is red without this change and green with it.
Part of the e2e flow stack (#284 to #295). Recorded live on kind (Kubernetes v1.34.0); replay and make check are green at every layer.
Summary by CodeRabbit
Bug Fixes
Initializing, in addition to thePENDINGjob status.Tests