-
Notifications
You must be signed in to change notification settings - Fork 545
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
(e2e) Reduce Consistently time for catalogsource_ready metrics check #2739
(e2e) Reduce Consistently time for catalogsource_ready metrics check #2739
Conversation
78f682c
to
25c91e5
Compare
/lgtm |
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.
Thanks - holding as this PR still needs to be rebased. Feel free to remove the hold once this PR has been updated, and the required checks are passing.
/hold
This test was checking for the catalogsource_ready metrics being emitted with a particular value, consistently for a period of time. `Consistently` blocks for the duration of time mentioned (previously 3m). Unfortunately, there is no way to write an `Eventually` that starts polling after an interval, which could have been the non-blocking alternatve to using Consistently to perform the same check. This PR reduces the period of time the test is blocked Consistently to 1m, to reduce the test package's overall runtime. Ref: https://onsi.github.io/gomega/#eventually https://onsi.github.io/gomega/#consistently Signed-off-by: Anik Bhattacharjee <anikbhattacharya93@gmail.com>
25c91e5
to
e7e7864
Compare
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anik120, timflannagan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
oh weird: it looks like approval-acts-as-lgtm isn't enabled for this repository sadly. /lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
This test was checking for the catalogsource_ready metrics being emitted
with a particular value, consistently for a period of time.
Consistently
blocks for the duration of time mentioned (previously 3m). Unfortunately,
there is no way to write an
Eventually
that starts polling after aninterval, which could have been the non-blocking alternatve to using
Consistently to perform the same check.
This PR reduces the period of time the test is blocked Consistently to
1m, to reduce the test package's overall runtime.
Ref:
https://onsi.github.io/gomega/#eventually
https://onsi.github.io/gomega/#consistently
Description of the change:
Motivation for the change:
Reviewer Checklist
/doc
[FLAKE]
are truly flaky[FLAKE]
tag are no longer flaky