Skip to content

agreement: fix receivedAt proposal performance timing#5041

Merged
algorandskiy merged 3 commits intoalgorand:masterfrom
cce:fix-receivedAt
Jan 23, 2023
Merged

agreement: fix receivedAt proposal performance timing#5041
algorandskiy merged 3 commits intoalgorand:masterfrom
cce:fix-receivedAt

Conversation

@cce
Copy link
Copy Markdown
Contributor

@cce cce commented Jan 23, 2023

Summary

In #4583 I tried to add a receivedAt proposal timing, following the pattern in #3703 for adding the validatedAt timing, but didn't correctly account for the receivedAt time needing to be attached to the unauthenticatedProposal while the validatedAt time is attached to the validated proposal type. So the receivedAt timing when reported at ensureAction time was 0.

The receivedAt and validatedAt timings are only used for telemetry reporting of performance information in the BlockAcceptedEventDetails message.

Test Plan

Added a test TestPlayerRetainsReceivedValidatedAt to reproduce this behavior, then fixed it.

@cce cce added the Bug-Fix label Jan 23, 2023
Copy link
Copy Markdown
Contributor

@brianolson brianolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks pretty simple
LGTM

Copy link
Copy Markdown
Contributor

@algorandskiy algorandskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea why adding unexported field triggered so many changes in msgp_gen?

@algorandskiy algorandskiy merged commit 1652e7d into algorand:master Jan 23, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2023

Codecov Report

Merging #5041 (be20d39) into master (4631571) will decrease coverage by 1.25%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5041      +/-   ##
==========================================
- Coverage   53.68%   52.44%   -1.25%     
==========================================
  Files         432      432              
  Lines       54068    54069       +1     
==========================================
- Hits        29029    28356     -673     
- Misses      22793    23430     +637     
- Partials     2246     2283      +37     
Impacted Files Coverage Δ
agreement/proposal.go 66.35% <ø> (-5.61%) ⬇️
agreement/events.go 61.62% <100.00%> (ø)
agreement/proposalStore.go 100.00% <100.00%> (ø)
tools/debug/logfilter/main.go 0.00% <0.00%> (-83.34%) ⬇️
cmd/goal/inspect.go 0.00% <0.00%> (-70.18%) ⬇️
cmd/tealdbg/remote.go 15.38% <0.00%> (-61.54%) ⬇️
network/msgOfInterest.go 75.00% <0.00%> (-25.00%) ⬇️
agreement/sort.go 76.19% <0.00%> (-23.81%) ⬇️
netdeploy/remote/deployedNetwork.go 0.00% <0.00%> (-19.56%) ⬇️
util/db/initialize.go 68.75% <0.00%> (-18.75%) ⬇️
... and 56 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants