Skip to content

nixosTests.prometheus-exporters.smokeping: fix test after 0.10.0#435285

Merged
lukegb merged 1 commit intoNixOS:masterfrom
jemand771:smokeping-exporter-test
Aug 21, 2025
Merged

nixosTests.prometheus-exporters.smokeping: fix test after 0.10.0#435285
lukegb merged 1 commit intoNixOS:masterfrom
jemand771:smokeping-exporter-test

Conversation

@jemand771
Copy link
Copy Markdown
Member

@jemand771 jemand771 commented Aug 20, 2025

prometheus-smokeping-prober was updated to 0.10.0 in #396980 which introduced a new label tos in its metrics. add it to the failing tests to make them match the expected metric (and pass) again

you could argue that the tests are a bit too greedy with the way they match metrics, but I actually like it that way

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

prometheus-smokeping-prober was updated to 0.10.0 in NixOS#396980
which introduced a new label `tos` in its metrics.
add it to the failing tests to make them match
the expected metric (and pass) again

you could argue that the tests are a bit too greedy with the way
they match metrics, but I actually like it that way
@jemand771 jemand771 requested a review from lukegb August 20, 2025 14:46
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Aug 20, 2025
Copy link
Copy Markdown
Contributor

@Erethon Erethon left a comment

Choose a reason for hiding this comment

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

Makes sense to me, tested on NixOS and can confirm that tests were broken but now pass.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 20, 2025
@lukegb lukegb merged commit f90bda0 into NixOS:master Aug 21, 2025
32 of 35 checks passed
@nixpkgs-ci
Copy link
Copy Markdown
Contributor

nixpkgs-ci bot commented Aug 21, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants