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(formula): align to template formula; add ci tests #5

Merged
merged 9 commits into from
Jun 1, 2020

Conversation

noelmcloughlin
Copy link
Member

@noelmcloughlin noelmcloughlin commented Apr 21, 2020

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?

YES

Related issues and/or pull requests

Describe the changes you're proposing

Following Intellij blueprint, align to template formula and add ci tests.

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

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

@noelmcloughlin
Copy link
Member Author

MacOS trace

          ID: clion-macos-app-clean-files
    Function: file.absent
        Name: /tmp/jetbrains/clion
      Result: True
     Comment: Removed directory /tmp/jetbrains/clion
     Started: 09:15:19.647100
    Duration: 121.23 ms
     Changes:   
              ----------
              removed:
                  /tmp/jetbrains/clion
----------
          ID: clion-macos-app-clean-files
    Function: file.absent
        Name: /Applications/Clion.app
      Result: True
     Comment: File /Applications/Clion.app is not present
     Started: 09:15:19.768530
    Duration: 0.334 ms
     Changes:   
----------
          ID: clion-config-clean-file-absent
    Function: file.absent
        Name: /tmp/dummy_list_item
      Result: True
     Comment: File /tmp/dummy_list_item is not present
     Started: 09:15:19.769037
    Duration: 0.316 ms
     Changes:   
----------
          ID: clion-config-clean-file-absent
    Function: file.absent
        Name: /etc/defaults/clion.sh
      Result: True
     Comment: File /etc/defaults/clion.sh is not present
     Started: 09:15:19.769507
    Duration: 0.287 ms
     Changes:   
----------
          ID: clion-config-clean-file-absent
    Function: file.absent
        Name: /Users/nmcloughlin/Desktop/Clion
      Result: True
     Comment: File /Users/nmcloughlin/Desktop/Clion is not present
     Started: 09:15:19.769939
    Duration: 0.275 ms
     Changes:   
----------
          ID: clion-macos-app-install-curl
    Function: file.directory
        Name: /tmp/jetbrains/clion
      Result: True
     Comment: Directory /tmp/jetbrains/clion updated
     Started: 09:15:19.770307
    Duration: 1.541 ms
     Changes:   
              ----------
              /tmp/jetbrains/clion:
                  New Dir
----------
          ID: clion-macos-app-install-curl
    Function: pkg.installed
        Name: curl
      Result: True
     Comment: All specified packages are already installed
     Started: 09:15:25.241845
    Duration: 11549.928 ms
     Changes:   
----------
          ID: clion-macos-app-install-curl
    Function: cmd.run
        Name: curl -Lo /tmp/jetbrains/clion/clion-2020.1 https://download.jetbrains.com/cpp/CLion-2020.1.dmg
      Result: True
     Comment: Command "curl -Lo /tmp/jetbrains/clion/clion-2020.1 https://download.jetbrains.com/cpp/CLion-2020.1.dmg" run
     Started: 09:15:36.795654
    Duration: 661023.546 ms
     Changes:   
              ----------
              pid:
                  59957
              retcode:
                  0
              stderr:
                    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                   Dload  Upload   Total   Spent    Left  Speed
                  
                    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                  100   138  100   138    0     0    830      0 --:--:-- --:--:-- --:--:--   831
                  
                    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                    0  461M    0  607k    0     0   514k      0  0:15:19  0:00:01  0:15:18  617k
        
                       << CUT >>

                   99  461M   99  460M    0     0   714k      0  0:11:00  0:11:00 --:--:--  827k
                  100  461M  100  461M    0     0   714k      0  0:11:00  0:11:00 --:--:--  823k
              stdout:
----------
          ID: clion-macos-app-install-checksum
    Function: module.run
        Name: file.check_hash
      Result: True
     Comment: onlyif condition is false
     Started: 09:26:37.822843
    Duration: 1008.643 ms
     Changes:   
----------
          ID: clion-macos-app-install-checksum
    Function: file.absent
        Name: /tmp/jetbrains/clion/clion-2020.1
      Result: True
     Comment: State was not run because onfail req did not change
     Started: 09:26:38.832289
    Duration: 0.003 ms
     Changes:   
----------
          ID: clion-macos-app-install-macpackage
    Function: macpackage.installed
        Name: /tmp/jetbrains/clion/clion-2020.1
      Result: True
     Comment: CLion.app installed
     Started: 09:26:38.832510
    Duration: 30014.135 ms
     Changes:   
              ----------
              installed:
                  - CLion.app
----------
          ID: clion-macos-app-install-macpackage
    Function: file.managed
        Name: /tmp/mac_shortcut.sh
      Result: True
     Comment: File /tmp/mac_shortcut.sh is in the correct state
     Started: 09:27:08.847011
    Duration: 246.493 ms
     Changes:   
----------
          ID: clion-macos-app-install-macpackage
    Function: cmd.run
        Name: /tmp/mac_shortcut.sh
      Result: True
     Comment: Command "/tmp/mac_shortcut.sh" run
     Started: 09:27:09.094106
    Duration: 1771.075 ms
     Changes:   
              ----------
              pid:
                  61254
              retcode:
                  0
              stderr:
              stdout:
                  alias file CLion of folder Desktop of folder nmcloughlin of folder Users of startup disk
----------
          ID: clion-config-file-file-managed-environ_file
    Function: file.managed
        Name: /etc/defaults/clion.sh
      Result: True
     Comment: File /etc/defaults/clion.sh updated
     Started: 09:27:10.865657
    Duration: 1896.586 ms
     Changes:   
              ----------
              diff:
                  New file
              group:
                  nmcloughlin
              mode:
                  0644
              user:
                  nmcloughlin

Summary for local
-------------
Succeeded: 14 (changed=6)
Failed:     0

BREAKING CHANGE: Major refactor of formula to bring it in alignment with the
template-formula. As with all substantial changes, please ensure your
existing configurations work in the ways you expect from this formula.
@pull-assistant
Copy link

pull-assistant bot commented May 6, 2020

myii added a commit to myii/ssf-formula that referenced this pull request Jun 1, 2020
@myii myii merged commit b24bb96 into saltstack-formulas:master Jun 1, 2020
@myii
Copy link
Member

myii commented Jun 1, 2020

Added a couple of commits to get the latest pre-salted images as well as fix the links to Travis in the README:

@saltstack-formulas-travis

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