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 with template formula; add ci tests #5

Merged
merged 8 commits into from
May 18, 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 this formula 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

local:
----------
          ID: rider-macos-app-clean-files
    Function: file.absent
        Name: /tmp/jetbrains/rider
      Result: True
     Comment: File /tmp/jetbrains/rider is not present
     Started: 22:09:34.458670
    Duration: 0.881 ms
     Changes:   
----------
          ID: rider-macos-app-clean-files
    Function: file.absent
        Name: /Applications/Rider.app
      Result: True
     Comment: File /Applications/Rider.app is not present
     Started: 22:09:34.459731
    Duration: 0.401 ms
     Changes:   
----------
          ID: rider-config-clean-file-absent
    Function: file.absent
        Name: /tmp/dummy_list_item
      Result: True
     Comment: File /tmp/dummy_list_item is not present
     Started: 22:09:34.460349
    Duration: 0.383 ms
     Changes:   
----------
          ID: rider-config-clean-file-absent
    Function: file.absent
        Name: /etc/defaults/rider.sh
      Result: True
     Comment: File /etc/defaults/rider.sh is not present
     Started: 22:09:34.460926
    Duration: 0.386 ms
     Changes:   
----------
          ID: rider-config-clean-file-absent
    Function: file.absent
        Name: /Users/nmcloughlin/Desktop/Rider
      Result: True
     Comment: File /Users/nmcloughlin/Desktop/Rider is not present
     Started: 22:09:34.461513
    Duration: 0.407 ms
     Changes:   
----------
          ID: rider-macos-app-install-curl
    Function: file.directory
        Name: /tmp/jetbrains/rider
      Result: True
     Comment: Directory /tmp/jetbrains/rider updated
     Started: 22:09:34.462043
    Duration: 11.512 ms
     Changes:   
              ----------
              /tmp/jetbrains/rider:
                  New Dir
----------
          ID: rider-macos-app-install-curl
    Function: pkg.installed
        Name: curl
      Result: True
     Comment: All specified packages are already installed
     Started: 22:09:38.731563
    Duration: 11321.222 ms
     Changes:   
----------
          ID: rider-macos-app-install-curl
    Function: cmd.run
        Name: curl -Lo /tmp/jetbrains/rider/rider-2020.1 https://download.jetbrains.com/rider/JetBrains.Rider-2020.1.0.dmg
      Result: True
     Comment: Command "curl -Lo /tmp/jetbrains/rider/rider-2020.1 https://download.jetbrains.com/rider/JetBrains.Rider-2020.1.0.dmg" run
     Started: 22:09:50.056084
    Duration: 1758931.912 ms
     Changes:   
              ----------
              pid:
                  69411
              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    259      0 --:--:-- --:--:-- --:--:--   259
                  
                    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                    0  755M    0  223k    0     0   115k      0  1:51:13  0:00:01  1:51:12  237k
                    0  755M    0  655k    0     0   224k      0  0:57:31  0:00:02  0:57:29  338k
   <CUT>
                   99  755M   99  754M    0     0   439k      0  0:29:19  0:29:17  0:00:02  863k
                  100  755M  100  755M    0     0   439k      0  0:29:18  0:29:18 --:--:--  832k
              stdout:
----------
          ID: rider-macos-app-install-checksum
    Function: module.run
        Name: file.check_hash
      Result: True
     Comment: onlyif condition is false
     Started: 22:39:08.989782
    Duration: 763.973 ms
     Changes:   
----------
          ID: rider-macos-app-install-checksum
    Function: file.absent
        Name: /tmp/jetbrains/rider/rider-2020.1
      Result: True
     Comment: State was not run because onfail req did not change
     Started: 22:39:09.754474
    Duration: 0.003 ms
     Changes:   
----------
          ID: rider-macos-app-install-macpackage
    Function: macpackage.installed
        Name: /tmp/jetbrains/rider/rider-2020.1
      Result: True
     Comment: Rider.app installed
     Started: 22:39:09.754688
    Duration: 55313.03 ms
     Changes:   
              ----------
              installed:
                  - Rider.app
----------
          ID: rider-macos-app-install-macpackage
    Function: file.managed
        Name: /tmp/mac_shortcut.sh
      Result: True
     Comment: File /tmp/mac_shortcut.sh updated
     Started: 22:40:05.068039
    Duration: 79.291 ms
     Changes:   
              ----------
              diff:
                  --- 
                  +++ 
                  @@ -1,5 +1,5 @@
                   #!/usr/bin/env bash
                   
                  -Source="/Applications/Webstorm.app"
                  +Source="/Applications/Rider.app"
                   Destination="/Users/nmcloughlin/Desktop"
                   /usr/bin/osascript -e "tell application \"Finder\" to make alias file to POSIX file \"$Source\" at POSIX file \"$Destination\""
----------
          ID: rider-macos-app-install-macpackage
    Function: cmd.run
        Name: /tmp/mac_shortcut.sh
      Result: True
     Comment: Command "/tmp/mac_shortcut.sh" run
     Started: 22:40:05.148193
    Duration: 1976.757 ms
     Changes:   
              ----------
              pid:
                  72673
              retcode:
                  0
              stderr:
              stdout:
                  alias file Rider of folder Desktop of folder nmcloughlin of folder Users of startup disk
----------
          ID: rider-config-file-file-managed-environ_file
    Function: file.managed
        Name: /etc/defaults/rider.sh
      Result: True
     Comment: File /etc/defaults/rider.sh updated
     Started: 22:40:07.125607
    Duration: 1869.634 ms
     Changes:   
              ----------
              diff:
                  New file
              group:
                  nmcloughlin
              mode:
                  0644
              user:
                  nmcloughlin

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

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

Score: 0.97

Best reviewed: commit by commit


Optimal code review plan (1 warning)

feat(formula): align to template-formula; add ci

pillar.example 60% changes removed in feat(formula): align...

rider/init.sls 53% changes removed in feat(formula): align...

FORMULA 88% changes removed in feat(formula): align...

rider/map.jinja 83% changes removed in feat(formula): align...

     feat(formula): align to template-formula; add ci

     Merge branch 'refactor' of https://github.com/noelmcloughlin/rider-for...

     Merge branch 'master' of https://github.com/saltstack-formulas/jetbrai...

     chore(yaml): change none to null

     feat(semantic-release): standardise for this formula

     chore(log): enable debug kitchen output

     docs(readme): add depth one

Powered by Pull Assistant. Last update d24b311 ... e0ce7f6. Read the comment docs.

myii added a commit to myii/ssf-formula that referenced this pull request May 18, 2020
@myii myii merged commit 12ae9dc into saltstack-formulas:master May 18, 2020
@myii
Copy link
Member

myii commented May 18, 2020

Thanks, @noelmcloughlin -- still had the same problem with pushing to the branch but I've figured out a way of getting around that for now.

@saltstack-formulas-travis

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@noelmcloughlin
Copy link
Member Author

noelmcloughlin commented May 18, 2020 via email

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