Repository navigation
Conversation
7 tasks
andrew8er
force-pushed
the
4680-instrument-tests
branch
2 times, most recently
from
November 3, 2026 13:10
2c8f68b to
14b3f0b
Compare
andrew8er
marked this pull request as ready for review
November 3, 2026 13:43
andrew8er
force-pushed
the
4680-instrument-tests
branch
from
November 4, 2026 14:09
14b3f0b to
efa2e41
Compare
Contributor
LLM PR Review (verdigado-code)Analyzed diff, but not the whole repository. Important context might be missing. Scope The PR contains only what the description states: django-zeal in the test settings/conftest, the opt-in query report package, budget tests, docs and the dev dependency. No production, API, model, migration or i18n code is touched, so no release note is needed (internal test change). Correctness
Minor / nitpick
Conventions No issues: all new Python files start with |
andrew8er
force-pushed
the
4680-instrument-tests
branch
from
November 4, 2026 14:34
efa2e41 to
029cb0b
Compare
andrew8er
force-pushed
the
4680-instrument-tests
branch
from
November 4, 2026 17:06
029cb0b to
3facc45
Compare
andrew8er
marked this pull request as draft
November 4, 2026 17:53
andrew8er
force-pushed
the
4680-instrument-tests
branch
3 times, most recently
from
November 9, 2026 11:53
2633e7e to
6cd7991
Compare
andrew8er
force-pushed
the
4680-instrument-tests
branch
from
November 9, 2026 20:37
6cd7991 to
07c5db1
Compare
- Opt-in --query-report pytest flag recording the queries of every test (counts, duplicates, N+1 candidates, slowest queries, call sites), merged across xdist workers into JSON and a static HTML report - Fail tests on new N+1 queries with django-zeal, with an allowlist of the existing ones - Pin the query counts of the CMS views with the most queries
andrew8er
force-pushed
the
4680-instrument-tests
branch
from
November 10, 2026 18:01
07c5db1 to
9bee03b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Short description
Instruments tests with two DB query related functionality:
Proposed changes
Instrument tests for django-zeal and query-report generation.
Side effects
The currently existing query budgets per view are now a hard limit. We could optionally make this a warning only, but I suspect, these will go unheeded, as we currently have LOTS of warnings in the tests that we just ignore.
Faithfulness to issue description and design
There are no intended deviations from the issue and design.
How to test
tools/test.pytools/test.py --query-reportResolved issues
Fixes: #4680
Pull Request Review Guidelines