-
Notifications
You must be signed in to change notification settings - Fork 4.7k
NO-JIRA: Improve unexpected reboot test output #29668
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
base: main
Are you sure you want to change the base?
Conversation
The test output today is pretty confusing, times are not formatted as they were intended due to the use of slices. This change formats the timestamps to be human readable in output, improves a couple variable names, and logs the boots for each node in chronological order instead of reverse.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgoodwin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Risk analysis has seen new tests most likely introduced by this PR. New Test Risks for sha: dab9f95
New tests seen in this PR at sha: dab9f95
|
/test e2e-metal-ipi-ovn e2e-metal-ipi-virtualmedia e2e-metal-ipi-ovn-dualstack-local-gateway |
@dgoodwin It looks good. Did you have a chance to test and see if the output is really what you expect? |
@@ -137,37 +145,40 @@ var _ = g.Describe("[sig-node] Managed cluster", func() { | |||
allTimelineEvents := []bootTimelineEntry{} | |||
allTimelineEvents = append(allTimelineEvents, nodeBoots...) | |||
allTimelineEvents = append(allTimelineEvents, nodeReboots...) | |||
|
|||
e2e.Logf("timeline events for %q\n%v", node.Name, formatTimeline(allTimelineEvents)) | |||
|
|||
sort.Sort(sort.Reverse(byTime(allTimelineEvents))) |
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.
will this still make the output to be reversed? Like newer first in the list?
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.
Only in the stdout log, not the actual test output. Maybe I should leave this be so it's the same for both but its nice to see the list in chronological order in the stdout
Unfortunately this test is too rare a failure to reproduce in the PR, so we'd have to push it into the wild and wait. |
Actually I can add a bogus failure and make it fail, I'll try that |
@dgoodwin: This pull request explicitly references no jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@dgoodwin: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Job Failure Risk Analysis for sha: 5beff6c
|
The test output today is pretty confusing, times are not formatted as
they were intended due to the use of slices. This change formats the
timestamps to be human readable in output, improves a couple variable
names, and logs the boots for each node in chronological order instead
of reverse.
Old output: