Skip to content

tests: move OTLP handler tests to teststorage.Appendable; increase test coverage.#17992

Merged
bwplotka merged 1 commit intomainfrom
bwplotka/a2-otlp-2
Feb 2, 2026
Merged

tests: move OTLP handler tests to teststorage.Appendable; increase test coverage.#17992
bwplotka merged 1 commit intomainfrom
bwplotka/a2-otlp-2

Conversation

@bwplotka
Copy link
Member

@bwplotka bwplotka commented Feb 2, 2026

Progresses #17632

Depends on bwplotka/a2-otlp-1

Switching tests to a new mock framework so switch to AppenderV2 PR will be clean.

On the way I increased test coverage:

  • We now test all samples, by detailed expectations, including histogram translation, exemplar detail etc

And removed unnecessary cases e.g.:

  • Test type and unit only once, those do not depend on translation.

Does this PR introduce a user-facing change?

NONE

Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

Please see comment about every test case modifying a shared slice.

Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

Just fixing a typo, to clarify a TODO.

Base automatically changed from bwplotka/a2-otlp-1 to main February 2, 2026 14:36
Signed-off-by: bwplotka <bwplotka@gmail.com>
@bwplotka bwplotka requested a review from aknuds1 February 2, 2026 15:11
@bwplotka
Copy link
Member Author

bwplotka commented Feb 2, 2026

Done, thanks!

Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bwplotka bwplotka merged commit 44d772b into main Feb 2, 2026
50 checks passed
@bwplotka bwplotka deleted the bwplotka/a2-otlp-2 branch February 2, 2026 15:56
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: Will Bollock <wbollock@linode.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
Signed-off-by: bwplotka <bwplotka@gmail.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
Signed-off-by: bwplotka <bwplotka@gmail.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
Signed-off-by: bwplotka <bwplotka@gmail.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
Signed-off-by: bwplotka <bwplotka@gmail.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
Signed-off-by: bwplotka <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.

2 participants