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

[buildkite] Fix "Prometheus compatibility (:docker:)" test in buildkite pipeline #4295

Merged
merged 93 commits into from
Dec 20, 2024

Conversation

kentzeng12
Copy link
Collaborator

What this PR does / why we need it:
This PR fixes "Prometheus compatibility (:docker:)" test in buildkite pipeline.

Note about scripts/comparator/compare.go:
I changed pPromAddress to have the same url as pQueryAddress. This is because from scripts/comparator/README.md, the prometheus node connects to M3Query instance as a remote_read endpoint.

Fixes #4274

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:
No

Does this PR require updating code package or user-facing documentation?:
No

@kentzeng12 kentzeng12 force-pushed the zengk/prometheus branch 2 times, most recently from efbcff3 to a7f198a Compare October 3, 2024 22:24
@andrewmains12
Copy link
Contributor

This lgtm, though I'm not sure it will run on local developer machines after this (tried it a bit, ran into some issues). Since it's better to have regression test than not though, and since I don't think this is a very actively developed code path, I'm okay with sacrificing that here.

cc @arnikola since it's your test originally :)

@kentzeng12 can you add a followup issue and link it in the README.md just to track the fact that this won't run locally?

@@ -371,7 +371,7 @@ func newEvalCmd(expr string, start time.Time, line int) *evalCmd {

metrics: map[uint64]labels.Labels{},
expected: map[uint64]entry{},
m3query: newM3QueryClient("localhost", 7201),
m3query: newM3QueryClient("host.docker.internal", 7201),
Copy link
Contributor

Choose a reason for hiding this comment

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

@kentzeng12 is this only called from a docker context? (afaict answer is yes, so this is okay).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since it's being run in the buildkite, which runs the test in a docker container, yes it's called in a docker context, but like you mentioned if you run this locally we run into issues.

Copy link
Contributor

@andrewmains12 andrewmains12 left a comment

Choose a reason for hiding this comment

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

Stamping on following idea:

This lgtm, though I'm not sure it will run on local developer machines after this (tried it a bit, ran into some issues). Since it's better to have regression test than not though, and since I don't think this is a very actively developed code path, I'm okay with sacrificing that here.

@kentzeng12 kentzeng12 merged commit d6543ea into master Dec 20, 2024
5 checks passed
@kentzeng12 kentzeng12 deleted the zengk/prometheus branch December 20, 2024 01:08
@kentzeng12
Copy link
Collaborator Author

@kentzeng12 can you add a followup issue and link it in the README.md just to track the fact that this won't run locally?

Created followup issue: #4316 and updating README.md: #4317

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.

Buildkite pipeline is broken
2 participants