Description
How do you use Sentry?
Self-hosted/on-premise
Version
1.40.5
Steps to Reproduce
- Clone repo
- Run steps outlined in
CONTRIBUTING.md#Development Environment
Expected Result
pytest tests/
comes up all green
Actual Result
A string of small issues that leads from tests failing to even start to incompatible dependencies version to failures that should not be there.
linter-requirements.txt
installspymongo
, which unmaskspymongo
integration tests. They rely onmockupdb
being installed, but it's only mentioned intox.ini
=>pytest
blows up on collection.
After installingmockupdb
, I get 4 errors and 18 warnings (linux aarch64).- Errors are due to
test-requirements.txt
not constraintingpytest
version, triggering bug inpytest-forked
that is documented intox.ini
- Majority of warnings are due to
pytest-asyncio
not being installed by anything except fortox
(and installing it without version constraints fromtox.ini
causes exciting issues)
None of the issues above are serious, but combined they add quite a bit of annoyance to the (ideally) first step of contributing to the project: developer environment setup.
Given the number of additional constraints mentioned in tox.ini
, I almost wonder if suggesting using it instead of just pytest
might be a good idea (btw tox
just worked for me — great job setting it up!)
There is a quick (but brittle) solution, which is to introduce a Yet Another Requirements File for dev env bringup (and maybe make it pull others internally), but if anyone on the team has Thoughts on dependency management management but no time to implement them I'd be happy to lend a hand.
Metadata
Metadata
Assignees
Type
Projects
Status