-
Notifications
You must be signed in to change notification settings - Fork 586
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
Do not panic prober if report fetched too early (#5264) #5265
Do not panic prober if report fetched too early (#5264) #5265
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5265 +/- ##
=======================================
Coverage 83.34% 83.34%
=======================================
Files 243 243
Lines 6879 6879
=======================================
Hits 5733 5733
Misses 797 797
Partials 349 349 Continue to review full report at Codecov.
|
07b76d0
to
b6c3d70
Compare
The previous run shows the output when the error is actually thrown: build |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vaikas 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 |
t.Logf("All %d events propagated well", events) | ||
eventErrs, eventCount, err := prober.Verify(ctx) | ||
if err != nil { | ||
t.Fatal("fetch error:", err) |
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.
One nit. The error is already formulated. It would be better to just:
t.Fatal(err)
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.
Possibly. On the other hand, the error
is more visible in the log. :
prober.go:69: fetch error: report fetched too early, receiver is in active state
vs.
prober.go:69: report fetched too early, receiver is in active state
Fixes #5264
Proposed Changes
Release Note
Docs