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

feat(semantic-release): implement for this formula #37

Merged
merged 11 commits into from
Dec 11, 2019

Conversation

myii
Copy link
Member

@myii myii commented Dec 10, 2019

PR progress checklist (to be filled in by reviewers)

  • Changes to documentation are appropriate (or tick if not required)
  • Changes to tests are appropriate (or tick if not required)
  • Reviews completed

What type of PR is this?

Primary type

  • [build] Changes related to the build system
  • [chore] Changes to the build process or auxiliary tools and libraries such as documentation generation
  • [ci] Changes to the continuous integration configuration
  • [feat] A new feature
  • [fix] A bug fix
  • [perf] A code change that improves performance
  • [refactor] A code change that neither fixes a bug nor adds a feature
  • [revert] A change used to revert a previous commit
  • [style] Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)

Secondary type

  • [docs] Documentation changes
  • [test] Adding missing or correcting existing tests

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

Standard semantic-release PR; some minor fixes required.

Pillar / config required to test the proposed changes

As provided in the test pillar.

Debug log showing how the proposed changes work

As shown in Travis.

Documentation checklist

  • Updated the README (e.g. Available states).
  • Updated pillar.example.

Testing checklist

  • Included in Kitchen (i.e. under state_top).
  • Covered by new/existing tests (e.g. InSpec, Serverspec, etc.).
  • Updated the relevant test pillar.

Additional context

myii added 10 commits December 10, 2019 17:40
```bash
[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:6
{%- for key, value in config.items()%}

[206] Jinja variables should have spaces before and after: {{ var_name }}
icinga2/config.sls:8
          {{key}} "{{ value }}"

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:12
{%- for key, value in config.items()%}

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:55
{%-endmacro%}

[206] Jinja variables should have spaces before and after: {{ var_name }}
icinga2/config.sls:107
{{ path}}:

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:160
{%-     endfor%}

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:181
{%-     endfor%}

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:202
{%-     endfor%}

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:227
{%-       endfor%}

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/config.sls:230
{%-   endfor%}

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:3

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:9

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:21

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:24

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:27

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:31

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:33

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:35

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:38

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:41

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:44

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:49

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:51

[201] Trailing whitespace
icinga2/files/xmpp.conf.jinja:53

[201] Trailing whitespace
icinga2/map.jinja:6
    defaults,

[202] Jinja statement should have spaces before and after: {% statement %}
icinga2/nrpe-server.sls:2
{% set nrpe = salt['pillar.get']('nrpe', salt['pillar.get']('icinga2:lookup::nrpe', {}))%}

[206] Jinja variables should have spaces before and after: {{ var_name }}
icinga2/pgsql-ido.sls:45
    - name: "{{ icinga2.config_dir}}/features-available/ido-pgsql.conf"
```
```bash
icinga2-formula$ yamllint -s .
./pillar.example
  1:1       warning  missing document start "---"  (document-start)
  6:8       warning  missing starting space in comment  (comments)
  20:14     warning  truthy value should be one of [false, true]  (truthy)
  21:18     warning  truthy value should be one of [false, true]  (truthy)
  22:15     warning  truthy value should be one of [false, true]  (truthy)
  23:19     warning  truthy value should be one of [false, true]  (truthy)
  24:19     warning  truthy value should be one of [false, true]  (truthy)
  25:19     warning  truthy value should be one of [false, true]  (truthy)
  26:21     warning  truthy value should be one of [false, true]  (truthy)
  36:18     warning  truthy value should be one of [false, true]  (truthy)
  103:9     warning  comment not indented like content  (comments-indentation)
  109:17    warning  truthy value should be one of [false, true]  (truthy)
  123:15    error    empty value in block mapping  (empty-values)
  124:7     warning  comment not indented like content  (comments-indentation)
  126:14    error    empty value in block mapping  (empty-values)
  127:7     warning  comment not indented like content  (comments-indentation)

./icinga2/osmap.yaml
  1:1       warning  missing document start "---"  (document-start)

./icinga2/defaults.yaml
  1:1       warning  missing document start "---"  (document-start)
  14:27     warning  truthy value should be one of [false, true]  (truthy)
  20:16     error    empty value in block mapping  (empty-values)
  34:16     error    empty value in block mapping  (empty-values)
  51:12     warning  truthy value should be one of [false, true]  (truthy)
  52:16     warning  truthy value should be one of [false, true]  (truthy)
  53:17     warning  truthy value should be one of [false, true]  (truthy)
  54:13     warning  truthy value should be one of [false, true]  (truthy)
  55:17     warning  truthy value should be one of [false, true]  (truthy)
  56:17     warning  truthy value should be one of [false, true]  (truthy)
  57:19     warning  truthy value should be one of [false, true]  (truthy)
  58:17     warning  truthy value should be one of [false, true]  (truthy)
  59:17     warning  truthy value should be one of [false, true]  (truthy)
  60:19     warning  truthy value should be one of [false, true]  (truthy)
  61:15     warning  truthy value should be one of [false, true]  (truthy)

./icinga2/osfamilymap.yaml
  1:1       warning  missing document start "---"  (document-start)
  5:27      warning  truthy value should be one of [false, true]  (truthy)
  16:19     error    empty value in block mapping  (empty-values)
  17:2      error    syntax error: found character '%' that cannot start any token
```
@myii myii mentioned this pull request Dec 10, 2019
@myii
Copy link
Member Author

myii commented Dec 10, 2019

The plan is to have this merged first so that the series of PRs (#32, #33, #34, #35 & #36) can be tested before being merged.

@aboe76
Copy link
Member

aboe76 commented Dec 10, 2019

@myii do you want it merged?

@myii
Copy link
Member Author

myii commented Dec 11, 2019

@aboe76 I've added the InSpec tests (da16c4e):

Profile Summary: 15 successful controls, 0 control failures, 0 controls skipped
Test Summary: 107 successful, 0 failures, 0 skipped

This is ready for merging, now.

@aboe76 aboe76 merged commit 57712c8 into saltstack-formulas:master Dec 11, 2019
@aboe76
Copy link
Member

aboe76 commented Dec 11, 2019

@myii merged it, nice !!!

@myii myii deleted the feat/implement-semantic-release branch December 11, 2019 18:51
@myii
Copy link
Member Author

myii commented Dec 11, 2019

@aboe76 Thanks.

@saltstack-formulas-travis

🎉 This PR is included in version 0.8.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.

3 participants