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

Add Windows acceptance tests #7

Merged
merged 1 commit into from
May 6, 2019

Conversation

treydock
Copy link
Collaborator

Pull Request Checklist

Description

Add Windows acceptance tests
Support Windows 2016
Handle absence of os.architecture fact for Windows

Related Issue

Migrated from sensu/sensu-puppet#1052

@treydock
Copy link
Collaborator Author

Added appveyor to my namespace and it's failing because this module defaults to gem provider for sensu-plugin install and the rubygems version on appveyor is 3.0.2 which has no support for --no-ri and --no-rdoc that get executed by gem provider.

Defaulting all operating systems to sensuclassic_gem seems like the right move but is a breaking change as we'll be changing the default. For now I'm updating the acceptance tests to change the default.

@treydock
Copy link
Collaborator Author

Using sensuclassic_gem seems to end up using system Ruby and causes issues with appveyor tests using Ruby 2.5. Am trying to downgrade rubygems to 2.x in appveyor to avoid rubygems 3.x.

@ghoneycutt
Copy link
Collaborator

We don't want to change the code to support appveyor. Appveyor should allow us to run against the ruby versions we need.

@treydock
Copy link
Collaborator Author

We can but the pre-installed Ruby all have latest rubygems and latest rubygems breaks Puppet gem provider. This wasn't an issue a few months ago when I did first appveyor tests but I think that's because rubygems 3.x wasn't released that drops support for --no-ri and --no-rdoc. For now I'm just downgrading rubygems in appveyor installed Ruby. Looks like Puppet hasn't been updated to support latest rubygems: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/gem.rb#L131

@treydock
Copy link
Collaborator Author

@ghoneycutt
Copy link
Collaborator

I think I've got appveyor turned on now. Can you try pushing to a new branch or something to trigger it?

@treydock
Copy link
Collaborator Author

Amended commit and forced push seems to have triggered appveyor.

@ghoneycutt
Copy link
Collaborator

@treydock could you please rebase this

Support Windows 2016
Handle absence of os.architecture fact for Windows
@treydock
Copy link
Collaborator Author

Rebased

@ghoneycutt ghoneycutt merged commit 8a17cc0 into sensu:master May 6, 2019
@ghoneycutt
Copy link
Collaborator

Released in v3.1.0 Thank you!

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.

2 participants