-
Notifications
You must be signed in to change notification settings - Fork 223
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
config: Validate duplicate job names #3986
config: Validate duplicate job names #3986
Conversation
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 find!
Can you try running the benchmarks? They seem to fail consistently on CI. |
This commit fixes the problem when jobs with the same names are compacted to a single target, leading to an unexpected behavior: a user will only see the last target with this job name. It is a breaking change for users who have duplicates in their configs, but for new users it will be more transparent.
This test is needed to validate that the case from the doc is working (desired parca + parca-agent installation).
c731278
to
845c442
Compare
@brancz sorry, it was my mistake. I accidentally made the scrape config required. |
Thank you so much for the contribution! |
@all-contributors Please add @nabokihms for code. |
I've put up a pull request to add @nabokihms! 🎉 |
This commit fixes the problem when jobs with the same names are compacted to a single target, leading to unexpected behavior: a user will only see the last target with this job name.
It is a breaking change for users who have duplicates in their configs, but for new users, it will be more transparent.