Don't fail job when non zero terminated exit code - #1411
Conversation
…sure last line is read if not empty
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## devel #1411 +/- ##
==========================================
- Coverage 55.95% 55.70% -0.26%
==========================================
Files 60 63 +3
Lines 9956 10529 +573
==========================================
+ Hits 5571 5865 +294
- Misses 4095 4371 +276
- Partials 290 293 +3
... and 6 files with indirect coverage changes
🚀 New features to boost your workflow:
|
davemulford
left a comment
There was a problem hiding this comment.
Great tests and I really like the comment explaining what's happening there. Minor misspelling. Looks good otherwise!
dleehr
left a comment
There was a problem hiding this comment.
Great work, love the new tests. Had a couple of suggestions about comments that don't match the logic anymore and a question around eofReadCloser behavior.
I'm currently testing my suggested change to eofReadCloser, will sync on that.
|
lranjbar
left a comment
There was a problem hiding this comment.
With these PRs for the escalation's we have now recreated the logic of PodContainerHealthy(). I think it is time to look at calling this function instead of leaving the logic in RunWorkWithLogger()
Thank you for your review @lranjbar. I agree that it is a better practice to use a specific helper like I've been engaged in this review and #1400, so I took a look at Our priority with this PR is to get our updated logic in a build out for testing and feedback (and be ready to incorporate that feedback). I'm totally onboard with refactoring after we confirm a fix, but before is premature in my opinion. So I don't think we should refactor this to use The good news is that once we deliver a build that addresses issues, we can confidently abstract them into Edit: Since you're more familiar with |
It was brought up several times before any pull request was made by two team members. The fact that you chose to dismiss that multiple times means that you made a third team member recreate the identical logic in the hero function. Instead of using the functions that were made a month ago, for this purpose. That discussion was before #1399, #1400 and #1411 even existed. Now is the time. |
|
The temperature is rather high on this one, I am not seeing the advantage of delaying merging this. We will revisit how we can refactor interacting with Pods and Containers into a more generalised solution, taking into account the work already done in that space. Once we have the customers back to green we will revisit 😄 |



Don't fail job when non zero terminated exit code, update tests to ensure last line is read if not empty