Skip to content
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

Tests: fix issue 2356: distributor_test.go fails when the system has no interface name in [eth0, en0, lo0] #2645

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

arl
Copy link
Contributor

@arl arl commented Sep 19, 2020

What this PR does / why we need it:

TestDistributor_PushIngestionRateLimiter failed if the system had no interface name in "eth0", "en0" or "lo0".

Fix that by looking at the name of the loopback interface in the list of the system's network interfaces, then using that name in the test.

Which issue(s) this PR fixes:
Fixes #2356

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

TestDistributor_PushIngestionRateLimiter failed if the system had no
interface name in "eth0", "en0" or "lo0".

Fix that by looking at the name of the loopback interface in the list
of the system's network interfaces, then using that name in the test.

Fixes grafana#2356
@CLAassistant
Copy link

CLAassistant commented Sep 19, 2020

CLA assistant check
All committers have signed the CLA.

@codecov-commenter
Copy link

Codecov Report

Merging #2645 into master will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2645      +/-   ##
==========================================
+ Coverage   61.16%   61.21%   +0.04%     
==========================================
  Files         172      172              
  Lines       13358    13358              
==========================================
+ Hits         8171     8177       +6     
+ Misses       4437     4431       -6     
  Partials      750      750              
Impacted Files Coverage Δ
pkg/logql/evaluator.go 92.81% <0.00%> (+0.42%) ⬆️
pkg/canary/comparator/comparator.go 78.18% <0.00%> (+1.81%) ⬆️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

Great addition.

@owen-d owen-d merged commit 21addf7 into grafana:master Sep 21, 2020
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
* improve query speed when does not enable caching

Signed-off-by: storyicon <[email protected]>

* Update pkg/chunk/cache/tiered.go

Co-authored-by: Ganesh Vernekar <[email protected]>
Signed-off-by: storyicon <[email protected]>

* simplify optimization

Signed-off-by: storyicon <[email protected]>

Co-authored-by: Ganesh Vernekar <[email protected]>
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.

Tests: distributor_test.go fails when the system has no interface name in [eth0, en0, lo0]
4 participants