Skip to content

test: add TestTargetsFromGroupWithLabelKeepDrop to reinforce a relabelling behaviour#15529

Merged
beorn7 merged 1 commit intoprometheus:mainfrom
machine424:sunsgne
Dec 5, 2024
Merged

test: add TestTargetsFromGroupWithLabelKeepDrop to reinforce a relabelling behaviour#15529
beorn7 merged 1 commit intoprometheus:mainfrom
machine424:sunsgne

Conversation

@machine424
Copy link
Member

fixes #12355

name: "no relabeling",
cfgText: `
global:
metric_name_validation_scheme: legacy
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to add those to get around:

2024/12/03 17:19:06 http: TLS handshake error from 127.0.0.1:52972: remote error: tls: bad certificate
--- FAIL: TestTargetsFromGroupWithLabelKeepDrop (0.00s)
    --- FAIL: TestTargetsFromGroupWithLabelKeepDrop/no_relabeling (0.00s)
panic: utf8 name validation requested but model.NameValidationScheme is not set to UTF8 [recovered]
	panic: utf8 name validation requested but model.NameValidationScheme is not set to UTF8 [recovered]
	panic: utf8 name validation requested but model.NameValidationScheme is not set to UTF8

(will look into that later, maybe we need to override a global var in this test file or sth...)

Copy link
Member Author

Choose a reason for hiding this comment

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

opened #15530 as this is not caused/related to the change in the PR.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for opening #15530 .

beorn7
beorn7 previously approved these changes Dec 4, 2024
Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

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

With tiny spelling nit. Feel free to merge after fixing it.

…lling behaviour.

fixes prometheus#12355

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
@machine424
Copy link
Member Author

opened #15538 for the unrelated data race in tests.

@beorn7
Copy link
Member

beorn7 commented Dec 4, 2024

And thanks for filing #15538

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.

labelkeep dropping internal labels

2 participants