-
Notifications
You must be signed in to change notification settings - Fork 898
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
Additional tests for queueing of collection of historical metrics #14723
Additional tests for queueing of collection of historical metrics #14723
Conversation
Checked commit gtanzillo@e95be2e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 spec/models/metric/ci_mixin/capture_spec.rb
|
@@ -86,6 +86,8 @@ def verify_perf_capture_queue(last_perf_capture_on, total_queue_items) | |||
Timecop.freeze do | |||
Timecop.travel(Time.now.end_of_day - 6.hours) | |||
verify_perf_capture_queue(nil, 1) | |||
Timecop.travel(Time.now + 20.minutes) | |||
verify_perf_capture_queue(nil, 1) |
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.
I added this so that it tests that no additional messages are added to the queue calling realtime a second time when last_perf_capture_on
ids nil.
Additional tests for queueing of collection of historical metrics (cherry picked from commit 6db53a9)
Fine backport details:
|
Additional tests for queueing of collection of historical metrics (cherry picked from commit 6db53a9)
Euwe backport details:
|
This is a followup to #14695.
This adds verification that calling
perf_capture_queue("historical")
will create the correct number of queue messages and will not queue additional messages when called multiple times.