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

Test label filter for bytes. #2941

Merged
merged 3 commits into from
Nov 19, 2020

Conversation

jeschkies
Copy link
Contributor

Summary:

  • Adds a new test to ast_test for filtering by bytes.|
  • Test another case than B.

Summary:
- Adds a new test to `ast_test` for filtering by bytes.|
- Test another case than `B`.
@codecov-io
Copy link

codecov-io commented Nov 18, 2020

Codecov Report

Merging #2941 (e1ae3c5) into master (1b6465d) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2941      +/-   ##
==========================================
+ Coverage   61.75%   61.84%   +0.09%     
==========================================
  Files         182      182              
  Lines       14863    14863              
==========================================
+ Hits         9178     9192      +14     
+ Misses       4839     4824      -15     
- Partials      846      847       +1     
Impacted Files Coverage Δ
pkg/logql/lex.go 90.90% <100.00%> (ø)
pkg/promtail/targets/file/filetarget.go 64.08% <0.00%> (-2.12%) ⬇️
pkg/promtail/targets/file/tailer.go 75.23% <0.00%> (+5.71%) ⬆️
pkg/promtail/positions/positions.go 58.51% <0.00%> (+11.70%) ⬆️

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 29be929 into grafana:master Nov 19, 2020
@jeschkies jeschkies deleted the karsten/test-logql-bytes branch November 19, 2020 10:47
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
* Initial version.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Move PromQL API error translation to querier registration.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Remove extra use of promql.ErrStorage.

All unknown errors are translated to promql.ErrStorage
already at API level of the querier.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Updated CHANGELOG.md entry.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Treat context.Canceled as user error and return 422.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Added test for context.DeadlineExceeded.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
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.

None yet

3 participants