Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/tests/munin: port to python #74935

Merged
merged 1 commit into from Dec 7, 2019
Merged

nixos/tests/munin: port to python #74935

merged 1 commit into from Dec 7, 2019

Conversation

x123
Copy link
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

@flokli
Copy link
Contributor

flokli commented Dec 4, 2019

cc @ToxicFrog #51980

@domenkozar
Copy link
Member

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

@flokli
Copy link
Contributor

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
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
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
Contributor

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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants