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

test(travis): + Basic Travis CI, bugfix & minor update #15

Merged
merged 10 commits into from
Sep 25, 2019

Conversation

noelmcloughlin
Copy link
Member

This PR is relatively minor update doing three good things.

Bug:
Some OS rename thin-provisioning-toolspackage to device-mapper-persistent-data.

                 ID: lvm packages installed
           Function: pkg.installed
               Name: thin-provisioning-tools
             Result: False
            Comment: Error occurred installing package(s). Additional info follows:
              
              errors:
                  - Running scope as unit: run-rfa821170b6374a3c91ecd1c467648d53.scope
                    Last metadata expiration check: 0:00:26 ago on Sat Sep 21 12:10:05 2019.
                    No match for argument: thin-provisioning-tools
                    Error: Unable to find a match
            Started: 12:10:30.306255
           Duration: 3090.0000000000036 ms

Updated files are-

  • osfamilymap.yaml is new file.
  • osfingermap.yaml is new file
  • osfamilymap.yaml is updated
  • map.jinja is updated

Tests:;
For testing the PR I added basic Travis CI support.
See: https://travis-ci.org/noelmcloughlin/lvm-formula/builds/587945263

New files are:

  • yamllint
  • bin/kitchen
  • .travis.yaml
  • kitchen.yaml

Convention:
I renamed all remove.sls files to clean.sls and updated the README accordingly.
For backwards compatibility the remove.sls files invoke the clean state.

This PR introduces NO breaking changes - all good stuff!

@noelmcloughlin noelmcloughlin changed the title test(travis): + Basic Travis integration, bugfix & a minor update test(travis): + Basic Travis CI, bugfix & a minor update Sep 21, 2019
@noelmcloughlin noelmcloughlin changed the title test(travis): + Basic Travis CI, bugfix & a minor update test(travis): + Basic Travis CI, bugfix & minor update Sep 21, 2019
@aboe76
Copy link
Member

aboe76 commented Sep 22, 2019

@noelmcloughlin what a work!! at first glance looking good.

@myii
Copy link
Member

myii commented Sep 22, 2019

@noelmcloughlin Great job, I'll try to review (at least some of) this fairly soon.

myii added a commit to myii/ssf-formula that referenced this pull request Sep 24, 2019
myii added a commit to myii/ssf-formula that referenced this pull request Sep 24, 2019
@myii
Copy link
Member

myii commented Sep 24, 2019

@noelmcloughlin In terms of the main files we manage leading to semantic-release, I've checked through and added another commit (454f0a1) with the last bits. See if you're happy with it; if not, feel free to remove it. Otherwise, this PR is also semantic-release ready.


Update: I pushed the commit again because I moved the README to the docs/ directory and reformatted it in general, while taking into account both:

@myii myii force-pushed the packages branch 2 times, most recently from 8b09185 to 2a86134 Compare September 24, 2019 07:30
myii added a commit to myii/ssf-formula that referenced this pull request Sep 24, 2019
@noelmcloughlin
Copy link
Member Author

@thanks @myii, and @aboe76 for reviewing.

Yes adding semantic release makes sense.
In this PR I have learned more on Travis CI, and noted the additions required for semantic release.

Copy link

@baby-gnu baby-gnu left a comment

Choose a reason for hiding this comment

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

I'm only concerned about the duplicated lvm.clean, for me it must be changed.

Everything else can be addressed in futur PR, I noted them for the records.

Thanks for the work.

docs/README.rst Outdated Show resolved Hide resolved
Meta-state to run all logical volume states in sequence: Order 'remove', 'change', 'reduce', 'extend', 'rename', 'create', 'convert', and 'create' again.


Available substates
===================
-------------------

.. contents::
:local:

Choose a reason for hiding this comment

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

As I understand, we sort the first component logically (profiles, files / pv, vg and finally lv) and the actions mostly alphabetically?

Could we sort the actions completely alphabetically since logically would be difficult?

This may be a dedicated PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

I could look at this but I'm unsure.

The README sequence follows an assumption that available storage is limited. Therefore , I would recommend doing moves/resizes/deletes/backup (housekeeping) before creates/extends/restores since it is easier to manage available storage that way imho.

The README is kinda a personal reminder that workflow probably matters..

.. do some housekeeping ...
lvm.pv.create
.. do some housekeeping ...
lvm.vg.extend
.. do some housekeeping ...
lvm.vg.create
.. do some housekeeping ...
lvm.lv.extend
.. do some housekeeping ...
lvm.lv.create

Choose a reason for hiding this comment

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

Ok, do you mind adding a little comment to describe that?

lvm/clean.sls Show resolved Hide resolved
lvm/files/clean.sls Show resolved Hide resolved
lvm/lv/clean.sls Show resolved Hide resolved
lvm/profiles/clean.sls Show resolved Hide resolved
lvm/pv/clean.sls Show resolved Hide resolved
lvm/vg/clean.sls Show resolved Hide resolved
@noelmcloughlin
Copy link
Member Author

@baby-gnu thanks for the review.

I'd like to raise an new issue for your comments but this repo has issues disabled. Once that is sorted I'll raise that issue. Meanwhile I'll fix the major comment on README. now.

@noelmcloughlin
Copy link
Member Author

Raised #1 and #2

@noelmcloughlin
Copy link
Member Author

Thanks @myii and @baby-gnu for the reviews and comments - appreciated.

@noelmcloughlin noelmcloughlin merged commit 672f34d into saltstack-formulas:master Sep 25, 2019
@noelmcloughlin noelmcloughlin deleted the packages branch September 25, 2019 18:28
myii added a commit to myii/ssf-formula that referenced this pull request Sep 25, 2019
@saltstack-formulas-travis

🎉 This PR is included in version 0.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants