diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/RELEASING | 61 | ||||
| -rw-r--r-- | doc/RELEASING.md | 98 | ||||
| -rw-r--r-- | doc/developer-guidelines.sgml | 6 |
3 files changed, 103 insertions, 62 deletions
diff --git a/doc/RELEASING b/doc/RELEASING deleted file mode 100644 index 1eaec9de..00000000 --- a/doc/RELEASING +++ /dev/null | |||
| @@ -1,61 +0,0 @@ | |||
| 1 | NOTES ON RELEASING NEW VERSION OF NAGIOSPLUG | ||
| 2 | |||
| 3 | *** Pre-release | ||
| 4 | git pull | ||
| 5 | . tools/devmode, if feeling adventurous | ||
| 6 | check compilation, check tinderbox screens | ||
| 7 | |||
| 8 | *** Prepare and commit files | ||
| 9 | Update BUGS, NEWS file | ||
| 10 | Update AUTHORS if new members | ||
| 11 | Update configure.in, package.def and NP-VERSION-GEN with version | ||
| 12 | Run git2cl (get from http://josefsson.org/git2cl/): | ||
| 13 | git2cl >Changelog | ||
| 14 | commit BUGS NEWS configure.in package.def ChangeLog | ||
| 15 | |||
| 16 | *** Create new annotated tag | ||
| 17 | git tag -a release-1.4.14 -m release-1.4.14 | ||
| 18 | |||
| 19 | *** Push the code and tag to origin | ||
| 20 | git push origin master | ||
| 21 | git push origin release-1.4.14 | ||
| 22 | |||
| 23 | *** Checkout new version | ||
| 24 | rm -fr /tmp/monitoringlug | ||
| 25 | # If you need to checkout the tag, don't forget to "checkout master" later to | ||
| 26 | # get back to your development branch: | ||
| 27 | git checkout tags/release-1.4.14 | ||
| 28 | # Beware: the trailing slash of --prefix is REQUIRED | ||
| 29 | git checkout-index --prefix=/tmp/monitoringlug/ -a | ||
| 30 | |||
| 31 | *** Build the tarball | ||
| 32 | cd /tmp/monitoringlug | ||
| 33 | tools/setup | ||
| 34 | ./configure | ||
| 35 | make dist | ||
| 36 | |||
| 37 | *** Upload generated tarball to sourceforge | ||
| 38 | sftp frs.sourceforge.net | ||
| 39 | SF username and password | ||
| 40 | cd /uploads | ||
| 41 | put file | ||
| 42 | |||
| 43 | SF -> Submit News about release. Make sure it is called "Monitoring Plugins" (with those caps) | ||
| 44 | Link to download at http://sourceforge.net/project/showfiles.php?group_id=29880 | ||
| 45 | Include contents of NEWS for this release | ||
| 46 | List all people on team involved. | ||
| 47 | Add acknowledgement to contributors | ||
| 48 | Submit. Get URL to news item | ||
| 49 | |||
| 50 | SF -> Admin -> File Releases | ||
| 51 | Add a release to nagiosplug and create a file release | ||
| 52 | Name: 1.4.14 | ||
| 53 | Create release | ||
| 54 | Step 1: Add release notes pointing to news item | ||
| 55 | Step 2: add file | ||
| 56 | Step 3: *.tar.gz, Platform Independent, Source .gz | ||
| 57 | Step 4: Send notice | ||
| 58 | |||
| 59 | *** Announce new release | ||
| 60 | Send email to help, announce with the news text | ||
| 61 | Add a news item to https://monitoring-plugins.org | ||
diff --git a/doc/RELEASING.md b/doc/RELEASING.md new file mode 100644 index 00000000..bcd2c5ac --- /dev/null +++ b/doc/RELEASING.md | |||
| @@ -0,0 +1,98 @@ | |||
| 1 | Releasing a New Monitoring Plugins Version | ||
| 2 | ========================================== | ||
| 3 | |||
| 4 | Throughout this document, it is assumed that the current Monitoring | ||
| 5 | Plugins version is 2.2.1, and that we're about to publish version 2.3. | ||
| 6 | It is also assumed that the official repository on GitHub is tracked | ||
| 7 | using the remote name `monitoring-plugins` (rather than `origin`). | ||
| 8 | |||
| 9 | Before you start | ||
| 10 | ---------------- | ||
| 11 | |||
| 12 | - Check Travis CI status. | ||
| 13 | - Update local Git repository to the current `master` tip. For a | ||
| 14 | maintenance release (e.g., version 2.3.2), update to the current | ||
| 15 | `maint-2.3` tip, instead. | ||
| 16 | |||
| 17 | Prepare and commit files | ||
| 18 | ------------------------ | ||
| 19 | |||
| 20 | - Update `configure.ac` and `NP-VERSION-GEN` with new version. | ||
| 21 | - Update `NEWS` from `git log --reverse v2.3.1..` output, and specify | ||
| 22 | the release version/date. | ||
| 23 | - Update `AUTHORS` if there are new team members. | ||
| 24 | - Update `THANKS.in` using `tools/update-thanks`. | ||
| 25 | - Commit the results: | ||
| 26 | |||
| 27 | git commit configure.ac NP-VERSION-GEN NEWS AUTHORS THANKS.in | ||
| 28 | |||
| 29 | Create annotated tag | ||
| 30 | -------------------- | ||
| 31 | |||
| 32 | git tag -a -m 'Monitoring Plugins 2.4' v2.4 | ||
| 33 | |||
| 34 | Push the code and tag to GitHub | ||
| 35 | ------------------------------- | ||
| 36 | |||
| 37 | git push monitoring-plugins master | ||
| 38 | git push monitoring-plugins v2.4 | ||
| 39 | |||
| 40 | Create new maintenance branch | ||
| 41 | ----------------------------- | ||
| 42 | |||
| 43 | _Only necessary when creating a feature release._ | ||
| 44 | |||
| 45 | git checkout -b maint-2.4 v2.4 | ||
| 46 | git push -u monitoring-plugins maint-2.4 | ||
| 47 | |||
| 48 | Checkout new version | ||
| 49 | -------------------- | ||
| 50 | |||
| 51 | rm -rf /tmp/plugins | ||
| 52 | git archive --prefix=tmp/plugins/ v2.4 | (cd /; tar -xf -) | ||
| 53 | |||
| 54 | Build the tarball | ||
| 55 | ----------------- | ||
| 56 | |||
| 57 | cd /tmp/plugins | ||
| 58 | tools/setup | ||
| 59 | ./configure | ||
| 60 | make dist | ||
| 61 | |||
| 62 | Upload tarball to web site | ||
| 63 | -------------------------- | ||
| 64 | |||
| 65 | scp monitoring-plugins-2.4.tar.gz \ | ||
| 66 | plugins@orwell.monitoring-plugins.org:web/download/ | ||
| 67 | |||
| 68 | Generate SHA1 checksum file on web site | ||
| 69 | --------------------------------------- | ||
| 70 | |||
| 71 | ssh plugins@orwell.monitoring-plugins.org \ | ||
| 72 | '(cd web/download; $HOME/bin/create-checksum monitoring-plugins-2.4.tar.gz)' | ||
| 73 | |||
| 74 | Announce new release | ||
| 75 | -------------------- | ||
| 76 | |||
| 77 | - In the site.git repository: | ||
| 78 | |||
| 79 | - Create `web/input/news/release-2-4.md`. | ||
| 80 | - Update the `plugins_release` version in `web/macros.py`. | ||
| 81 | - Commit and push the result: | ||
| 82 | |||
| 83 | git add web/input/news/release-2-4.md | ||
| 84 | git commit web/input/news/release-2-4.md web/macros.py | ||
| 85 | git push origin master | ||
| 86 | |||
| 87 | - Post an announcement on (at least) the following mailing lists: | ||
| 88 | |||
| 89 | - <announce@monitoring-plugins.org> | ||
| 90 | - <help@monitoring-plugins.org> (set `Reply-To:` to this one) | ||
| 91 | |||
| 92 | - Ask the social media department to announce the release on Twitter :-) | ||
| 93 | |||
| 94 | If you want to mention the number of contributors in the announcement: | ||
| 95 | |||
| 96 | git shortlog -s v2.3.1..v2.4 | wc -l | ||
| 97 | |||
| 98 | <!-- vim:set filetype=markdown textwidth=72: --> | ||
diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index d9340285..6f31f365 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml | |||
| @@ -194,12 +194,13 @@ | |||
| 194 | <row> | 194 | <row> |
| 195 | <entry align="center"><para>3</para></entry> | 195 | <entry align="center"><para>3</para></entry> |
| 196 | <entry valign="middle"><para>Unknown</para></entry> | 196 | <entry valign="middle"><para>Unknown</para></entry> |
| 197 | <entry><para>Invalid command line arguments were supplied to the | 197 | <entry><para>Invalid command line arguments were supplied to the |
| 198 | plugin or low-level failures internal to the plugin (such as unable to fork, | 198 | plugin or low-level failures internal to the plugin (such as unable to fork, |
| 199 | or open a tcp socket) that prevent it from performing the specified | 199 | or open a tcp socket) that prevent it from performing the specified |
| 200 | operation. Higher-level errors (such as name resolution errors, | 200 | operation. Higher-level errors (such as name resolution errors, |
| 201 | socket timeouts, etc) are outside of the control of plugins and should | 201 | socket timeouts, etc) are outside of the control of plugins and should |
| 202 | generally NOT be reported as UNKNOWN states. | 202 | generally NOT be reported as UNKNOWN states. |
| 203 | </para><para>The --help or --version output should also result in Unknown state. | ||
| 203 | </para></entry> | 204 | </para></entry> |
| 204 | </row> | 205 | </row> |
| 205 | </tbody> | 206 | </tbody> |
| @@ -610,6 +611,9 @@ | |||
| 610 | <para>The option -v or --verbose should be present in all plugins. | 611 | <para>The option -v or --verbose should be present in all plugins. |
| 611 | The user should be allowed to specify -v multiple times to increase | 612 | The user should be allowed to specify -v multiple times to increase |
| 612 | the verbosity level, as described in <xref linkend="verboselevels">.</para> | 613 | the verbosity level, as described in <xref linkend="verboselevels">.</para> |
| 614 | |||
| 615 | <para>The exit code for version information or help should be UNKNOWN | ||
| 616 | (3).</para> | ||
| 613 | </section> | 617 | </section> |
| 614 | 618 | ||
| 615 | <section> | 619 | <section> |
