Opened 8 years ago
Closed 8 years ago
#29046 closed Bug (needsinfo)
possible race condition with manager logic
| Reported by: | Andy Grabow | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 2.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Hi,
i tried a lot to explain this weird behaviour, but since it happens sometimes and doenst at other times i think that its due to some weird race condition.
Please have a look at the travis build logs:
https://travis-ci.org/kakulukia/django-undeletable
https://travis-ci.org/kakulukia/django-undeletable/builds/331788403 (build #23)
Most of the time django 1.11 under python2 is failing.
So please could someone with more knowledge about django manager magic have a look at my module?
git clone https://github.com/kakulukia/django-undeletable.git
git checkout cookiecutter-version
make init2
pipenv shell
pip install django=1.11.9
make test
In the last 4 years of me using that module in different projects, this bug never happend. This might be due to the striped to the basics version of this unittest compared to a project with multiple other modules to load before actually executing any ORM logic. Just a guess.
BTW: The django sources have been uploaded to pypi resulting in a python2 pip trying to install django 2 which aint working. Is there a workaround? Why are the sources uploaded to pypi?
Change History (2)
comment:1 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 8 years ago
| Resolution: | → needsinfo |
|---|---|
| Status: | new → closed |
Please see TicketClosingReasons/UseSupportChannels for ways to get help debugging your code. If you confirm a bug in Django, please reopen the ticket with details. A ticket should provide a very minimal project to reproduce the problem rather than a larger project with a lot of unrelated details. Thanks.