Skip to content

Add integration test on query-scheduler #3429

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

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Oct 30, 2020

What this PR does:
In this PR I've added integration tests for the query-scheduler. The diff will be easier to review if you enable "hide whitespace changes".

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@pracucci pracucci requested a review from pstibrany October 30, 2020 12:28
@pracucci pracucci force-pushed the add-integration-test-on-query-scheduler branch from c570aac to c5696fb Compare October 30, 2020 15:22
@@ -83,8 +83,8 @@ func NewQuerierSchedulerWorkers(cfg QuerierWorkersConfig, handler RequestHandler
}

frontendClientsGauge := promauto.With(reg).NewGauge(prometheus.GaugeOpts{
Name: "cortex_query_scheduler_worker_frontend_clients",
Help: "The current number of frontend clients.",
Name: "cortex_querier_query_frontend_clients",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would prefer it cortex_query_scheduler metrics prefix are reserved for the scheduler. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 Good idea, thanks for spotting.

@pracucci pracucci marked this pull request as ready for review October 30, 2020 15:23
@pracucci
Copy link
Contributor Author

Flaky test should be fixed by this PR: #3434

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Great job, thank you very much!

@pracucci pracucci force-pushed the add-integration-test-on-query-scheduler branch from c5696fb to 2109545 Compare November 2, 2020 08:16
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci force-pushed the add-integration-test-on-query-scheduler branch from 3b77630 to fdbde79 Compare November 2, 2020 09:53
@pracucci pracucci merged commit 88f9ed6 into cortexproject:master Nov 2, 2020
@pracucci pracucci deleted the add-integration-test-on-query-scheduler branch November 2, 2020 10:15
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.

2 participants