ci(nightly): Always display Operator logs at the end of the E2E tests - #1652
Conversation
This is to help with troubleshooting potential SeaLights issues
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR TypeTests Description
|
| Relevant files | |||
|---|---|---|---|
| Tests |
|
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- Use GinkgoWriter instead of fmt.Println to ensure operator logs are captured in the Ginkgo output.
- Extract the common log-fetching logic in fetchOperatorLogs and fetchOperandLogs into a shared helper to reduce duplication.
- Add a guard in getPodLogs for the case when both podName and label are empty to prevent invalid kubectl/oc invocations.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Use GinkgoWriter instead of fmt.Println to ensure operator logs are captured in the Ginkgo output.
- Extract the common log-fetching logic in fetchOperatorLogs and fetchOperandLogs into a shared helper to reduce duplication.
- Add a guard in getPodLogs for the case when both podName and label are empty to prevent invalid kubectl/oc invocations.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
|
Merging to trigger a nightly build and share the output with the SL team. |
Description
Follow-up to #1650 to help the SL team understand what's going on..
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
Summary by Sourcery
Enhance the E2E test suite to always capture and display operator logs at the end of the run
Enhancements: