Skip to content

nixos/tests/munin: port to python#74935

Merged
flokli merged 1 commit intoNixOS:masterfrom
x123:x123-munin-test-python
Dec 7, 2019
Merged

nixos/tests/munin: port to python#74935
flokli merged 1 commit intoNixOS:masterfrom
x123:x123-munin-test-python

Conversation

@x123
Copy link
Copy Markdown
Contributor

@x123 x123 commented Dec 3, 2019

Motivation for this change

Port munin test to python for #72828 to march towards completion for test ports.

Things done

I noticed this test didn't even work to begin with, and it seems to be that the munin-node module doesn't even load a single usable plugin (which makes the munin-cron portion of this test fail). After a bit of trying to get a plugin to work, I finally decided a minimal working test ported to python was better than a broken non-ported test.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) nixos/tests/munin.nix
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @domenkozar

@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 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. labels Dec 3, 2019
@flokli
Copy link
Copy Markdown
Member

flokli commented Dec 4, 2019

cc @ToxicFrog #51980

@domenkozar
Copy link
Copy Markdown
Member

I think we shouldn't remove assertions to fix the test. Port the whole test and let it fail.

@flokli
Copy link
Copy Markdown
Member

flokli commented Dec 4, 2019

I think we shouldn't keep broken tests around in first place, but either fix or drop them ;-)

@bjornfor
Copy link
Copy Markdown
Contributor

bjornfor commented Dec 4, 2019

munin was broken by a perl change: #70930. A new perl has been released (5.30.1), so updating perl should unbreak munin.

@x123
Copy link
Copy Markdown
Contributor Author

x123 commented Dec 5, 2019

This should be fixed now with the original tests ported now that munin has been fixed. Thanks @bjornfor

@flokli
Copy link
Copy Markdown
Member

flokli commented Dec 6, 2019

Indeed! It seems the systemd timer unit is firing a bit slowly, I did override it in the test (and dropped some hydra workaround which shouldn't apply anymore).

@x123 PTAL.

@flokli flokli mentioned this pull request Dec 6, 2019
@x123
Copy link
Copy Markdown
Contributor Author

x123 commented Dec 6, 2019

@flokli LGTM 👍

@flokli flokli merged commit b665c38 into NixOS:master Dec 7, 2019
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 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants