-
Notifications
You must be signed in to change notification settings - Fork 20
Conversation
Thank you for your contribution! I'm afraid I don't have time to look at this right now but I or one of |
I've had a chance to look through this in more detail now. I think To give us some confidence that we weren't making breaking changes, it I have some other bits of smaller feedback which I'll detail as |
@@ -23,14 +23,26 @@ | |||
virtualenv => $root_dir, | |||
} | |||
|
|||
ensure_packages(['python-cairo']) | |||
$system_packages = $::osfamily ? { | |||
'Debian' => ['python-cairo'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this conditional be moved to params.pp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, good idea.
also did you mean to add an empty CONTRIBUTORS file? |
Hi, thanks for taking the time to review. I know you guys don't use Redhat so I've made sure the unit tests were complete (even over-complete). Integration tests are a good idea but it's not something I've done before. If it was already in place it should be simple to add as the tests should be the same across both platforms, and it would just be a matter of defining new targets. I'd be happy to take this on as a separate PR given it's a new feature. I'll update later today (hopefully) with the fixes above. |
Yeah, I quite understand if you don't have the time or expertise to add integration tests. Unfortunately I don't think we can merge this without them, because ultimately the unit tests are only testing values on puppet resources, not whether the code actually works. Sadly I don't have the time or expertise either 😧 |
Are there already integration tests? If so I should be able to copy them. If not, isn't that a big ask? |
Our position is that we're not happy supporting a system we don't run and don't understand without an adequate safety net. I quite understand if you're not willing to provide that as it certainly is a big ask. We don't currently have any integration tests on any of our modules but we have some work in the backlog to write some at some point. If you wait until that gets done (and I can't make any promises on any kind of timescale here) then we could look at merging this PR once we have them. |
I've made the fixes. I can really only suggest updating the readme to say Redhat is not officially supported but testing, bug reports and fixes are welcome. Happy if you refer all related tickets to me. |
@croomes we have an open PR for beaker tests now -- #26. I tried running the new beaker tests against this PR by merging the two branches together, but something in the way we're dealing with stankevich/python is making them try to install the ubuntu packages rather than the centos ones -- it tries to install I'm out of time for now today, but I thought I'd let you know how far I've got. |
@philandstuff excellent, really happy to hear! I won't be able to help much during the week but will catch up on the weekend and help where I can. In the meantime, those packages are the same on Centos:
I expect the graphite-web test will fail because of the gunicorn-django deprecation. I've got a branch in my fork that moves to wsgi. |
Add beaker acceptance tests
I'm closing, not because I don't think this is a very valuable addition, but because it isn't currently mergeable (after the beaker changes) and I can't rebase and push to Please do reopen when you're ready @croomes! |
Hi @samjsharpe and @philandstuff - I've rebased but github won't let me re-open the PR, only project admins can. If you re-open I'll re-push, otherwise I'll create a new PR. Let me know if you prefer it rebased into a single commit. Just got beaker running - very cool. I'll get the Centos failures fixed soon. |
Now that I can totally help with ;o) |
These tests are really annoying @croomes. They fail on your branch because we have a dependency on I guess you have EPEL enabled on your real servers (because that's where 'python-pip' usually comes from), which is why it works. I'm also hoping that you are enabling EPEL in puppet with some kind of standard third-party module include. Which I think means you could add a requirement on the same external module you currently use to Modulefile and then if the system is RedHat/CentOS include the EPEL repo here as a dependency before any of the graphite install stuff happens. |
Agree with @samjsharpe here except that dependencies required for centos should go in spec_helper_acceptance.rb rather than the Modulefile. Looks like voxpupuli/puppet-python#115 covers this issue too, so if that can be fixed upstream we won't have to do anything. |
I am closing this in favour of #25 as I obviously couldn't push changes to this branch. I'm nearly there - I just need to figure out why the graphite-web service doesn't start on CentOS6 and I think it might be a good idea to also run Beaker tests against CentOS7 as it seems quite different. |
@samjsharpe you're closing #25 in favour of #25? |
this is why i should leave early on Fridays: smile: I of course meant i am closing in favour of #30 which i am actively working on and xontaina all these commits. |
Hi, this is a revival of @snobear's PR #9 for RHEL5 & 6 (sysvinit) support.
It adds support for systemd, but only triggers on Fedora and Centos/RHEL 7+. Centos 7 is fine but I don't have a 6 server to test on. The init scripts are mostly the same from the previous PR so any issues should be minor and you can assign anything raised to me.
I've tried not to change anything in the Ubuntu configs except for reworking the tests.