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

Add basic unit tests for CI #5

Merged
merged 7 commits into from
Jul 7, 2024
Merged

Add basic unit tests for CI #5

merged 7 commits into from
Jul 7, 2024

Conversation

smortex
Copy link
Member

@smortex smortex commented Nov 18, 2022

In order to detect regressions, we need at least basic unit tests.

This have been tested here: smortex#1

This PR also include:

This allows us to run this tool along other tools in a single process
using riemann-wrapper.
* Use a Gemfile / .gemspec file for bunder;
* Drop the extension of Rakefile.rb to follow current conventions;
* Drop now useless tooling from the Rakefile;
* Make the version of the gem available from the code.

These changes are supposed to introduce no functional change, and are
intended to make it easier to manage the module code.
For now, disable unit tests because we don't have unit tests.
PG::Error is a kind of StandardError, here we want to catch this kind of
exception.

The error was reported by Rubocop.
@smortex
Copy link
Member Author

smortex commented Jul 7, 2024

@jamtur01 sorry to ping you once again for a riemann-tool project 😄

I completely forgot this work, and today I was thinking "we really need a riemann-tool that can monitor PostgreSQL". Due to this being WIP, it is not part of our monitoring, and probably should!

Do you mind reviewing this PR (and the other ones included in this one)? Feel free to invite me as a contributor to the project so that I can help maintaining it if you are willing to.

Thanks!

Copy link
Member

@jamtur01 jamtur01 left a comment

Choose a reason for hiding this comment

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

LGTM

@jamtur01 jamtur01 merged commit 06011ad into riemann:main Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants