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

bump puppetlabs_spec_helper + add needed dependency #319

Merged
merged 1 commit into from
Feb 11, 2017

Conversation

bastelfreak
Copy link
Member

I tested this locally with puppet-zabbix. Works great so far, spec tests run now in parallel. However we should hold of with merging, puppetlabs_spec_helper seems to be broken in certain situations. puppetlabs/puppetlabs_spec_helper#177

@rnelson0
Copy link
Sponsor Member

rnelson0 commented Feb 8, 2017

Have you reviewed how the output looks? See voxpupuli/puppet-collectd#633 where I ran some tests against collectd. It's fine when everything is green, but when there are errors, it's ... not pretty.

@bastelfreak
Copy link
Member Author

In my opinion this is okay. It is harder to read, yes, but the speed gain is huge. We can still run the tests without parallel if it gets to ugly for debugging.

@bastelfreak bastelfreak changed the title [WIP]bump puppetlabs_spec_helper + add needed dependency bump puppetlabs_spec_helper + add needed dependency Feb 11, 2017
@bastelfreak
Copy link
Member Author

puppetlabs_spec_helper got released so in theorie we could merge.

Copy link
Contributor

@igalic igalic left a comment

Choose a reason for hiding this comment

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

is requiring parallel_tests basically a switch for turning that feature on, or why isn't it just in puppetlabs_spec_helper?

@@ -17,7 +17,8 @@ Gemfile:
required:
':test':
- gem: puppetlabs_spec_helper
version: '~> 1.2.2'
version: '~> 2.0.1'
- gem: parallel_tests
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't understand why this gem isn't just a transitive dependency that we don't have to care for, because puppetlabs_spec_helper depends on it.

Copy link
Contributor

Choose a reason for hiding this comment

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

@igalic igalic merged commit 80d2a1d into voxpupuli:master Feb 11, 2017
@bastelfreak bastelfreak deleted the spechelper2 branch February 11, 2017 16:39
@rnelson0
Copy link
Sponsor Member

Ah, an earlier draft of the feature made the test target always run in parallel, which was my concern. Glad it's optional.

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.

3 participants