-
Notifications
You must be signed in to change notification settings - Fork 84
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
cmd: fixing builder registration timestamp #2810
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2810 +/- ##
==========================================
- Coverage 53.28% 53.24% -0.05%
==========================================
Files 199 199
Lines 27691 27696 +5
==========================================
- Hits 14756 14747 -9
- Misses 11108 11122 +14
Partials 1827 1827 ☔ View full report in Codecov by Sentry. |
time.Now()
when splitting keys
time.Now()
when splitting keys// For SplitKeys mode, builder registration timestamp must be close to Now(). | ||
// This assumes the test does not execute longer than five minutes. | ||
// We just need to make sure the message timestamp is not a genesis time. | ||
require.Less(t, nowUTC.Sub(val.BuilderRegistration.Message.Timestamp), 5*time.Minute, "likely a genesis timestamp") |
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.
Hmmm, considering our CI isn't the fastest, I wonder if we'll ever reach a state in which this statement fails?
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.
This test is fast, it does not deploy and run a cluster. On a dev box it is executing in ~0.2 sec. Hence, the assumption about 5 minutes to be extremely sufficient..
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, just a small suggestion.
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Use the current timestamp for builder registration messages when using
--split-existing-keys
mode.See the issue for the full context.
category: bug
ticket: #2770