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

Update upstream prometheus to: fix parser.VectorSelector.String() with empty name matcher (#14015) #626

Merged
merged 1 commit into from
May 7, 2024

Conversation

colega
Copy link
Contributor

@colega colega commented May 7, 2024

This brings the only new commit there's in upstream Prometheus:

Fix parser.VectorSelector.String() with empty name matcher (#14015)

The check fell into "this matcher equals vector selector's name" case when vector selector doesn't have a name and the matcher is an explicit matcher for an empty __name__ label.

To provide some context about why this is important: some downstream projects use the promql.Parse(expr.String()) to clone an expression's AST, and with this bug that matcher disappears in the cloning.

Signed-off-by: Oleg Zaytsev <[email protected]>
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Remember to merge with merge commit, thanks.

@colega colega merged commit d5f2bb7 into main May 7, 2024
24 checks passed
@colega colega deleted the prometheus-main-4b7a44c7a branch May 7, 2024 09:55
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.

2 participants