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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PromQL compatibility automatic e2e test suite. #4781

Merged
merged 2 commits into from
Oct 21, 2021
Merged

Added PromQL compatibility automatic e2e test suite. #4781

merged 2 commits into from
Oct 21, 2021

Conversation

bwplotka
Copy link
Member

@bwplotka bwplotka commented Oct 14, 2021

馃憢馃徑 Adding e2e test so it's easier to run PromQL compliance tests.

It's skipped by default because:

If we/https://github.com/prometheus/compliance project will automate above (provide static dataset as we do in

func createData() (perr error) {
) and push image on CI then we might consider running it on every commit.

Signed-off-by: Bartlomiej Plotka bwplotka@gmail.com

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
bwplotka added a commit to prometheus/compliance that referenced this pull request Oct 14, 2021
Additionally updated docs.

Motivation for this is that we can now set automated tests where in future we might want to provide
docker images with exact set of test cases in versioned image.

See automated use of it in Thanos: thanos-io/thanos#4781

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
@bwplotka
Copy link
Member Author

cc @juliusv

GiedriusS
GiedriusS previously approved these changes Oct 15, 2021
})
}

func promLablsPromQLConfig(reference *e2edb.Prometheus, target e2e.Runnable, dropLabels []string) string {
Copy link
Member

Choose a reason for hiding this comment

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

Very minor nit: why not promLabelsPromQLConfig?

Copy link
Member Author

Choose a reason for hiding this comment

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

because typo (:

@GiedriusS
Copy link
Member

GiedriusS commented Oct 15, 2021

We should also probably document these optional tests 馃槃 Finally, did you know that you can just ask for a review from thanos-io/thanos-maintainers and then everyone will get added automatically?

- targets:
- 'demo.promlabs.com:10000'
- 'demo.promlabs.com:10001'
- 'demo.promlabs.com:10002'
Copy link
Contributor

Choose a reason for hiding this comment

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

I can see these addresses are from https://github.com/prometheus/compliance/blob/main/promql/promql-compliance-tester.yml#L88-L90.
But are they stable? Will they change in the future?

Copy link
Contributor

Choose a reason for hiding this comment

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

They're stable for now, at least I don't have any plans of turning the demo service down. But it would still be better if we could either host something official from the Prometheus project at some point or somehow make people run their own.

Copy link
Member Author

Choose a reason for hiding this comment

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

For now, let's keep it I guess - we don't plan to do this on CI yet (:

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants