-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Query: Fixing extended functions in distributed querier #7331
Query: Fixing extended functions in distributed querier #7331
Conversation
6650008
to
93ca72c
Compare
LGTM, can you separate the prometheus import from stdlib imports though please? |
a5d89de
to
6e87441
Compare
@MichaHoffmann can you recheck? |
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.
Nice work
e849e05
to
76178a6
Compare
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.
Should we forbid using parser.ParseExpr
directly through faillint? What about other places where parser.ParseExpr
is used? 🤔
I have a follow up PR where I will clean up all other places where we use |
pkg/tenancy/tenancy_test.go
Outdated
@@ -196,3 +195,54 @@ func TestTenantProxyPassing(t *testing.T) { | |||
_ = q.Series(&storepb.SeriesRequest{Matchers: seriesMatchers}, &storeSeriesServer{ctx: ctx}) | |||
}) | |||
} | |||
|
|||
func TestGetTenantFromHTTP(t *testing.T) { |
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.
This test seems unrelated?
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.
removed.
f25e1bc
to
510499d
Compare
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
510499d
to
7865d59
Compare
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.
Ah, this has been flaky for a while I think!
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.
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.
That one is on me, thanks for fixing
* Adding repro case for broken query with distributed engine Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * Fixing problem with distributed queries and xfunctios Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * Adding support for extended functions in tenancy enforcement Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * Moving custom parser to new package Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * fixing go-lint Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * Using same opts and reorganize imports Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * fixing problem with query format Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * fixing flaky tests Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * removing extra test Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> * yet another flaky test Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> --------- Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com> Signed-off-by: mluffman <nashluffman@gmail.com>
Changes
Verification
Added new acceptance tests and tested locally with two queriers.