-
Notifications
You must be signed in to change notification settings - Fork 285
Replace serverspec with inspec tests via. new CI matrix (inc. semantic-release)
#262
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
Conversation
daks
left a comment
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.
Looks good to me. Maybe squash some commits.
Are you planning to implement semantic-release too?
Very good job @myii! Thanks
|
@daks Thanks for the review. You're right about the commits -- I was planning to do that at the end. The idea right now is that each commit is a part that may have changes depending on the review, so the PR can be modified as required. For example, I definitely want to lose the last commit as well as maybe the one before that. It's easier to make the necessary modifications while this is a fluid I left the Really appreciate you taking the time to review this PR. |
vutny
left a comment
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.
Awesome job, @myii !
I'm not aware of the settings for this repo, but GitHub should dismiss any previous approvals if you'd force-push any commits afterwards. So better to squash them right before submitting a PR.
And any separate commit has no real value, since it may or may not represent the finished task and actually working changes. If it cannot be safely reverted in master later, I think a single squashed commit is the right way.
|
@vutny I think what it means is that during work (WIP PR) it's simpler to have one commit per change, it eases testing changes, reverting them if needed, etc. Then when work is finished, commits can be squashed. |
4487e37 to
55f1cf0
Compare
serverspec with inspec tests via. new CI matrixserverspec with inspec tests via. new CI matrix
|
With 13/13 images passing and the |
aboe76
left a comment
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.
@myii nice work on this formula !!!!
|
While 14/14 images being tested appears excessive, all sorts of combinations are there, besides different platforms and salt versions, as supplied by the pre-salted images:
So if there is a requirement to remove some of these images, care must be exercised so worthwhile testing isn't lost. |
daks
left a comment
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.
Great job @myii
314cddb to
ce1a00f
Compare
* Quoting from https://kitchen.ci/docs/getting-started/kitchen-yml/: - As of test-kitchen 1.21.0, we now prefer `kitchen.yml` over `.kitchen.yml`. - This preference applies to `kitchen.local.yml` as well. - This is backward compatible so the dot versions continue to work.
* `pillar.example` will be difficult to get working at this stage * Ideally, work back towards `pillar.example` in the long run
* Fix the formula and then revert this eventually
ce1a00f to
4cee3ca
Compare
|
While not directly related to |
serverspec with inspec tests via. new CI matrixserverspec with inspec tests via. new CI matrix (inc. semantic-release)
4cee3ca to
668f070
Compare
|
Travis is hitting stuck builds on all three of the Tried restarting each of them to no avail. There was nothing changed to have triggered this. |
23ae027 to
d0c340a
Compare
* Add new `centos-6` image * Install `9.6` from upstream repo
* Fix `opensuse-leap-15` (enable `suse` and workaround `service` bug) * Use port `5433` for `debian` and `opensuse-leap-15` * Use upstream repo version `10` for `debian`
d0c340a to
7d3aa19
Compare
|
Thanks to @javierbertoli, the Travis issue has been resolved and we're back to 13/13 images passing. This is ready to merge again. |
|
🎉 This PR is included in version 0.37.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Currently, there is no CI-based testing on this formula. This PR brings in a number of the latest changes from the
template-formula, in order to bringinspectesting via. a matrix of pre-salted images configured in Kitchen and run via. Travis. In it's current state, 9/10 of the platforms pass the tests. Here's a list of what remains before this can be merged:ubuntu-1804).README-- will do this once this PR is approved.Recommends the merge of Use copy state instead of salt-call #256.Recommends the merge of fix(uuid-ossp): use hyphen consistently #261.net-toolsby default.centos-6pre-salted image -- 14/14 working.use_upstream_repo:TrueandFalse.9.6and10.postgres.port:5432and5433.inspecbug foropensuse-leap-15(service-based tests).4semantic-release(includes documentation and library for TOFS).Note that the formula itself needs to be improved to get it working with
pillar.exampleinstead of the provided test pillar (if we want to go that way). The improvements that need to be made can be seen by the commented out sections in the test pillar.Update: Just a note about an issue with
serverspec. While testing out these ideas initially, tried to hook up the existingserverspectests but ended up hitting a weird bug where it was trying to runapt-getonopensuse-- tracked it down to this block inkitchen-verifier-serverspec.