Skip to content

textparse: Refactored main testing utils for reusability; fixed proto Units.#15095

Merged
bwplotka merged 1 commit intomainfrom
textparsetest
Oct 7, 2024
Merged

textparse: Refactored main testing utils for reusability; fixed proto Units.#15095
bwplotka merged 1 commit intomainfrom
textparsetest

Conversation

@bwplotka
Copy link
Member

@bwplotka bwplotka commented Oct 4, 2024

This centralizes the parsing testing in one, composable space. Already found bug in proto parser thanks to that (Next never sets entry to Unit) cc @beorn7 @krajorama - hope fixing this in this refactor is ok (minor fix).

This is to make sure we can reuse same parsing test e.g. as we iterate on #14965 cc @Maniktherana @ArthurSens

… Units.

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

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

Approved with nit, this will be very useful for #14978

@bwplotka bwplotka merged commit f6e110d into main Oct 7, 2024
@bwplotka bwplotka deleted the textparsetest branch October 7, 2024 11:17
@bboreham
Copy link
Member

bboreham commented Oct 8, 2024

So this is a bugfix - we were never receiving units from protobuf scrapes?

@beorn7 beorn7 mentioned this pull request Oct 8, 2024
squat pushed a commit to squat/prometheus that referenced this pull request Nov 8, 2024
squat pushed a commit to squat/prometheus that referenced this pull request Nov 8, 2024
squat pushed a commit to squat/prometheus that referenced this pull request Nov 8, 2024
squat pushed a commit to squat/prometheus that referenced this pull request Nov 25, 2024
julienduchesne pushed a commit to julienduchesne/prometheus that referenced this pull request Dec 13, 2024
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.

4 participants