You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update CHANGELOG and enhance Django/pytest startup logging
- Updated `CHANGELOG.md` to reflect improvements in logging visibility during Django and pytest startup processes, including the installation of `CiPytestStartupTracer` for better tracking of `AppConfig.ready()` calls.
- Enhanced logging in `api/models.py` to indicate when Django will call `AppConfig.ready()` for each installed app.
- Removed unnecessary import from `api/apps.py` to streamline the code.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ All contributors (including maintainers) should update `CHANGELOG.md` when creat
84
84
85
85
### Improved
86
86
87
-
-**Django / pytest startup visibility**: [`api/utils/utils.py`](api/utils/utils.py)**`print_django`** uses **`flush=True`**. [`api/settings.py`](api/settings.py) logs that **`django.setup()`** follows settings. [`api/models.py`](api/models.py) logs before/after the **`api`**model import chain (often the long gap before **`api.urls`**). [`api/urls.py`](api/urls.py) logs start/end of URLconf import; [`api/apps.py`](api/apps.py)**`ApiConfig.ready()`**logs when the **`api`** app **`ready()`** runs. [`api/test/tests/conftest.py`](api/test/tests/conftest.py) keeps **`[pytest]`** session/collection progress.
87
+
-**Django / pytest startup visibility**: [`api/utils/utils.py`](api/utils/utils.py)**`print_django`** uses **`flush=True`**. [`api/settings.py`](api/settings.py) logs that **`django.setup()`** follows settings and installs [`api/CiPytestStartupTracer.py`](api/CiPytestStartupTracer.py)**`CiPytestStartupTracer`** (logs every **`AppConfig.ready()`**start/end in pytest/CI so a stall after **`api.models`** points at the right installed app). [`api/models.py`](api/models.py) logs before/after the **`api`** model import chain and notes that **`ready()`** runs next. [`api/urls.py`](api/urls.py) logs start/end of URLconf import (loads after **`apps.populate()`**). [`api/test/tests/conftest.py`](api/test/tests/conftest.py) keeps **`[pytest]`** session/collection progress.
0 commit comments