Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4e942d4ab7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
dkirov-dd
left a comment
There was a problem hiding this comment.
Looks good overall! One small question
eric-weaver
left a comment
There was a problem hiding this comment.
I've been trying to track down systemic timing issues we see across the DBM integrations in general. Some of it stems from our DbmAsyncJob threads and their life cycle which partially comes into play here. If these changes you made stabilize the current flakiness I'm good with merging it through.
I will be following up on these and others in general in order to ensure the tests we have are more predictable and stable to timing specific races
Review from eric-weaver is dismissed. Related teams and files:
- database-monitoring-agent
- mysql/tests/test_query_activity.py
@eric-weaver, have you tried using the time-machine library? It allows you to run through time so you can, in a controll manner, make time move forward. I normally prefer freezegun, seems a bit easier to use, but I understand that time-machine is better for threaded applications. Maybe that is what you guys need to ensure that timing is not an issue anymore and you can define very specific test to validate timing as well. You could build a helper in |
* Fix flaky test * Add warmup period * Reduce the marging on max expected to 20% Signed-off-by: lukepatrick <lukephilips@gmail.com>
What does this PR do?
Fixes a flaky test I have been getting recently in several PRs. I was goingto mark it as flaky but realized it is actually easy to understand what it is doing so I decided to fix it.
Motivation
Les flakes, more trust.
Review checklist (to be filled by reviewers)
qa/skip-qalabel if the PR doesn't need to be tested during QA.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged