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 postgres DB handler #77

Open
Veritogen opened this issue Dec 18, 2023 · 1 comment · May be fixed by #78
Open

Add postgres DB handler #77

Veritogen opened this issue Dec 18, 2023 · 1 comment · May be fixed by #78

Comments

@Veritogen
Copy link

Veritogen commented Dec 18, 2023

Describe the solution you'd like
We'd like to keep track of different pipeline results in a dedicated database.

Describe alternatives you've considered

  • Implementing a server to collect the pipeline results seemed like a bigger overhead as it also includes more infrastructure to maintain compared to just pushing the results into a database.
  • Moving the sqlite database into the CI environment would be another option. This may lead to race conditions, if we have multiple pipelines running in parallel.

Additional context
I got a working prototype (see #78) but would like to discuss the following points:

  • How do we want to test the postgres implementation?
    • Proposal: add postgres image to pipeline to be able to run the tests against a database in docker
  • What version of psychopg (2, 3 or both) do we want to support?
    • I'd propose to support both to be future proof
    • How do we add this to the requirements?
  • Does the implementation proposed match the architecture you envisioned?
  • How to ensure people don't need to install uneccessary dependencies? Maybe we could enable people installing pytest-monitor like this pip install pytest-monitor[postgres]
@Veritogen Veritogen linked a pull request Dec 18, 2023 that will close this issue
12 tasks
@lhpt2
Copy link

lhpt2 commented Jul 9, 2024

For anyone interested in using this feature: As long as it hasn't been merged upstream yet, there is a soft fork available here: https://github.com/einhundert/pytest-monitor/ (We are only providing support for features and changes made by us, don't request anything not related to these)

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 a pull request may close this issue.

2 participants