-
Notifications
You must be signed in to change notification settings - Fork 874
fix: handle new agent stat format correctly #14576
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
Conversation
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.
Looks good so far, would like us to ensure summing and filtering is checked a little deeper, but that shouldn't be too bad since the hard part of getting the mocks accurate is done. Have you tried running it in dev with the experiment on? You can try to repro the screenshot in the issue and see if you can data back.
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.
Looks great, thanks for double checking on a dev instance as well. I can't approve since it's "my" pr, but feel free to approve yourself and merge when ready.
@@ -150,7 +150,7 @@ func TestCache_BuildTime(t *testing.T) { | |||
}, | |||
}, | |||
transition: database.WorkspaceTransitionStop, | |||
}, want{50 * 1000, true}, |
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.
What makes this change needed?
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.
The old dbmem
tryPercentile
function was implemented slightly differently to how postgres implements PERCENTILE_CONT
(although this test never gets run with postgres anyway)
Closes #14348