fix: return detailed vertex status message when unhealthy#3502
fix: return detailed vertex status message when unhealthy#3502AyushSrivastava1818 wants to merge 1 commit into
Conversation
|
can you fix DCO check? (signed commit) |
8701bf1 to
7ff0df6
Compare
| } | ||
| if !vertex.Status.IsHealthy() { | ||
| if vertex.Status.Message != "" { | ||
| return false, "Unavailable", vertex.Status.Message |
There was a problem hiding this comment.
| return false, "Unavailable", vertex.Status.Message | |
| return false, "Unavailable", `Vertex "` + vertex.Spec.Name + `" error: ` + vertex.Status.Message |
|
Can you please also provide example of how this message appears in status from a running pipeline that is failing. |
7ff0df6 to
e4f2215
Compare
Signed-off-by: AyushSrivastava1818 <ayush.sri0705@gmail.com>
e4f2215 to
55f7712
Compare
|
Thanks for the review! I've updated the returned message to include the vertex name and pushed the changes. Regarding the example, I don't currently have a failing pipeline available to capture an actual If needed, I can try to reproduce a failing pipeline and share an actual status output. |
Yes pls |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3502 +/- ##
==========================================
- Coverage 83.08% 83.07% -0.01%
==========================================
Files 310 310
Lines 81395 81397 +2
==========================================
Hits 67624 67624
- Misses 13174 13176 +2
Partials 597 597 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks! I'm setting up a local Numaflow environment to reproduce a failing pipeline and capture an actual I'll update this PR with a real status output as soon as I have it. Thanks for your patience! |
What this PR does / why we need it
When a vertex is unhealthy,
CheckVertexStatuscurrently returns a generic message:This hides the more detailed diagnostic information already available in
vertex.Status.Message.This PR updates
CheckVertexStatusto returnvertex.Status.Messagewhen it is available, while preserving the existing generic fallback message when no detailed status message exists.Additionally, a unit test has been added to verify the new behavior without changing the existing fallback behavior.
Related issues
Fixes #3496
Testing
gofmt -w pkg/reconciler/util.go pkg/reconciler/util_test.go go test ./pkg/reconciler/...