Stability and versioning policy#
pytest-queryguard follows Semantic Versioning. This page says what that covers, how deprecations work, and which tests enforce it.
In short: the names in pytest_queryguard.__all__ and
pytest_queryguard.app.__all__, the pytest options,
flags and markers, the finding kinds, and the files and tools
listed below are public; the wording of
messages is not. A deprecated name keeps working with a
QueryGuardDeprecationWarning for at least two minor releases and three
months, and is removed only in a major release. Features marked
experimental may change in any minor release. Fixes go into
the latest minor release (see Which releases get fixes).
What is public#
The public API is everything below. Changing it incompatibly needs a major
release (see "Version numbers"); tests/test_public_api.py fails when it
changes by accident.
- The names in
pytest_queryguard.__all__, their signatures, and the public attributes and methods of the classes in it (QueryLog,Query,CallSite,QueryGuardFixture, the exceptions and the warning classes). A new keyword argument with a default, or a new attribute, is not a breaking change. Each of these reportspytest_queryguardas its__module__, so tracebacks, reprs, pickles andfilterwarningsentries use the documented import path (pytest_queryguard.NPlusOneDetected, not the submodule it lives in). Since 1.1.0 the names includeassert_queries_do_not_grow()andassert_queries_do_not_grow_async(); the text of their failure is a message, not public, like the others. - The pytest integration: the ini options (
queryguard_*), the command-line flags (--queryguard-*,--no-queryguard-*), their defaults and accepted values, the markers (max_queries,max_db_time,queryguard_max_queries,queryguard_max_db_time,queryguard_ignoreand its aliasallow_nplusone,allow_missing_index) and thequeryguardfixture. - The meaning of the finding kinds and of the labels and patterns used by
the
queryguard_ignoreoption and marker, so that an existing ignore keeps matching the same finding. The label ofrepeated-statementandwrite-loopis the SQL text the ORM sends, normalized, and that text is not public (see "What is not public"): an ORM upgrade that renders a statement differently can change the label, as Baseline explains, and so can a fix to the normalization, which the changelog then names. - The pytest entry point name (
queryguard). - The in-application mode,
pytest_queryguard.app, as described under The in-application mode. - The files the plugin writes and reads, and the command-line tools and the GitHub Action that work with them, as listed under Files, tools and the action.
- The Django ORM support (since 1.1.0; experimental from 0.10.0 to 1.0.x):
the
[django]extra, what the plugin records and reports for Django code under pytest-django (the finding kinds and the labels it produces, such asBook.authorandAuthor.books, how it groups and scopes them, and the loader each fix names:select_related(),prefetch_related(),only()), and the Django versions and databases it supports. The wording around a fix is a message, as for SQLAlchemy. Its test runner formanage.py testis still experimental. See Django. - Supported versions: the Python and pytest releases, and the releases of
each supported ORM (SQLAlchemy and Django), listed in
pyproject.tomland the CI matrix. Dropping a Python or pytest series, or a series of a supported ORM, is announced in the changelog and happens in a minor release at the earliest after the series is end of life upstream. - How to install it:
pip install pytest-queryguardinstalls SQLAlchemy today, as a core dependency, and the extrapytest-queryguard[sqlalchemy]requires the same SQLAlchemy versions. A minor release may move SQLAlchemy from the core dependencies into that extra, so that a project that does not use SQLAlchemy does not install it. That release also makes the plugin load its SQLAlchemy support only when SQLAlchemy is installed, and the changelog says so under "Changed". Installing with[sqlalchemy], or listing SQLAlchemy in your own dependencies, keeps working through that change.
Files, tools and the action#
Each file has a number for its format. A reader rejects a number it does not know, with an error that says so. New keys may be added in a minor release (read a file by the keys you need and ignore the others); the plugin and its tools read their own files the same way, so a file that a later 1.x release wrote with more keys still reads. A value keeps its type: new data goes into a new key, not into a different shape of an existing one (a per-test value in the budget file stays a number of queries). A new key never narrows what an existing entry matches: a key that would (a baseline entry for one test only, say) changes the identity, so it needs a new format number. Changing the meaning of a key, removing one, or changing what identifies a finding is an incompatible change: the number goes up, and from 1.0 on it needs a major release.
| What | Format key | Public | Not public |
|---|---|---|---|
Baseline file (--queryguard-baseline, see Baseline) |
"version": 1 |
findings, each with kind, label, file, function (the identity of a finding; since 1.1.0 the label of a repeated-statement, write-loop or missing-index entry is written and compared without what depends on the database, and a label in the full form still matches, see Baseline) |
the order of the entries |
Budget file (--queryguard-budgets, see Budgets) |
"format": 1 |
budgets: test node id to a number of queries |
the order of the entries |
Query counts (--queryguard-json, see CI) |
"format": 1 |
the keys documented there: tool, complete, and per test statements, by_verb, db_time, truncated, max_queries_marker, findings (kind, label, count, file, function, line, stack, baselined) |
tool.version, the text of a finding's message, the order of tests and findings |
SARIF file (--queryguard-sarif, see SARIF) |
SARIF 2.1.0 | the rule ids queryguard/<kind>, one per finding kind; the fingerprint key queryguardIdentity/v1 in partialFingerprints and the identity it hashes, so code scanning alerts stay the same alerts after an upgrade; the result properties count, label, tests and peakCount |
rule names, descriptions and help, message text, primaryLocationLineHash, codeFlows, fixes (experimental, see below) |
In-app panel's JSON (<panel_path>/requests.json, see In-application mode) |
"format": 1 |
version, watched_engines (the number of watched SQLAlchemy engines), internal_error and requests, each request with the keys of RequestReport.to_dict(): id, name, method, path, route, status, started, duration, statement_count, truncated, db_time, budget, over_budget, error, statements (sql, duration, relationship, file, line, function) and findings (kind, label, file, line, function, count, message) |
the value of version (the package version), the message text; the panel's own page is served by the same release and does not check format |
A new fingerprint key (queryguardIdentity/v2) would close every open alert
and open it again, so it is treated as a removal: from 1.0 on, only in a major
release.
The command-line tools:
python -m pytest_queryguard.compare BASE HEAD [--output PATH] [--rows N] [--key NAME](see CI): its arguments, its exit status (0, or 2 when a file cannot be read) and the marker on the first line of its report (<!-- pytest-queryguard compare -->, with the--keybefore-->), by which the action finds its own comment, are public. The rest of the Markdown report is written for people and is not.python -m pytest_queryguard.trendandpython -m pytest_queryguard.lintare experimental, see below.
The GitHub Action (action/action.yml, see CI): its
inputs with their defaults and accepted values, its outputs (exit-code,
sarif-file, json-file), and the name of the artifact it uploads,
queryguard-json-<category> (with " : < > | * ? \ / and line breaks of
the category turned into -), which later runs of older and newer versions of
the action download, and the pull-request comment it updates in place (found
by the compare marker above). The action is versioned with the package: pin it to a
release tag or a commit. This holds in both places it lives: the vX.Y.Z of
MaciejZiel/pytest-queryguard-action
is the same action as action/ at this repository's vX.Y.Z. Its major tag
(v1) moves only to final releases of that major version, and action/
here keeps working for every 1.x release. The trend input and the trend-report output are
experimental, and so are the lint, lint-models and lint-paths inputs
and the lint-exit-code output (since 0.10.0). What the job summary and the pull-request comment say is not
public.
Names, values and units#
These conventions hold for every public name above, so a new option or field follows them too:
- An ini option
queryguard_<name>and the command-line flag that overrides it,--queryguard-<name>, use the same words. A flag that turns a boolean option on has no value;--no-queryguard-<name>turns it off for the run (--no-queryguard-index-check,--no-queryguard-strict,--no-queryguard-show-patch); of the two, the last one on the command line wins. Flags without an ini option (--queryguard-report,--queryguard-json,--queryguard-sarif,--queryguard-write-patch, the two--queryguard-update-*flags) are about one run, not about the project. - Options with a fixed set of values ignore case and surrounding spaces.
How strongly a check reports is always spelled
off,warnorfail(queryguard_mode,queryguard_cartesian_load,queryguard_unused_eager_load,queryguard_unused_columns,queryguard_queryset_len);queryguard_hypopgtakesauto,onoroff. - Finding kinds are lowercase words joined by hyphens (
relationship-load). They are part of a finding's identity (baseline, SARIF fingerprint, ignore patterns) and never change. - Every time is in seconds, as a float: the
max_db_timemarker and context manager,Query.duration,QueryLog.db_time,db_timein the--queryguard-jsonfile, and in the in-application modeSettings.min_db_time,RequestReport.durationandRequestReport.db_time(RequestReport.startedis a Unix time). The MCP server'stimeoutis in seconds too. - A threshold that can be turned off is
0in an ini option (queryguard_small_repeat_thresholdandqueryguard_write_loop_thresholdare off by default;queryguard_max_events = 0means no limit) andNonein Python (QueryLog.assert_no_nplusone(),app.Settings). A budget is different, because0is a valid budget (no query at all):queryguard_max_queriesis off when it is empty. - Each file has a key with the number of its format at the top level:
formatin the--queryguard-jsonfile, the budget file, the in-app panel'srequests.jsonand the JSON output of the static check and the trend, andversionin the baseline file (the oldest of them; renaming it would make every baseline unreadable by older releases, so it stays). Inrequests.json,versionis the package version.
The plugin and the in-application mode share the detection thresholds and
their defaults. Two defaults differ on purpose: Settings.max_events is
1000 statements per request (the plugin keeps 10000 per test), because a
server keeps the reports of many requests; and the scope is "request"
instead of "test".
The in-application mode#
pytest_queryguard.app was experimental from 0.5.0 until it was promoted
before 1.0 (#241). Since then it follows the deprecation policy like the
rest of the public API. tests/test_public_api.py snapshots its names,
signatures, Settings fields and defaults, RequestReport fields and
properties, the public fields of Finding and the panel's JSON keys; tests/inapp/test_reporters.py
checks the reporters' keys:
- The names in
pytest_queryguard.app.__all__and their signatures, the fields ofSettingswith their defaults and accepted values, and the fields and properties ofRequestReport(over_budget,truncated,problems,message,to_dict()). A new setting with a default, or a new report field, is not a breaking change. A test of areportcallable may build aRequestReportwith keyword arguments:idandnameare required, every other field has a default. - The public fields of
Finding, the objects inRequestReport.findings:kind,label,fileandfunction(together the identity, as in the baseline; the Sentry fingerprint is made from them),line,countandmessage(its text is not public). These are the keys of a finding in the panel's JSON. A test of areportcallable may build aFindingwith them as keyword arguments (lineandcountmay be left out: they default toNoneand1). Its other attributes (severity,tests,peak,advice,table,stack,fixand theidentityproperty) belong to the pytest plugin and may change in any release, as may the module the class is defined in. watch(),unwatch()andis_watched()take the engine as a positional-only argument (watch(engine, /)): pass it without a keyword. A later release may accept other objects than SQLAlchemy engines there.RequestReport.statementsandstatement_countkeep their names, althoughQueryLogcalls the sameQueryobjectsqueriesand their numbercount: they are also the keys of the panel's JSON and of the Sentry context, and the OpenTelemetry attributequeryguard.statement_count, so the number has one name wherever a request report shows it.trackis a class that is used like a function. Calling it, itsstart()andstop(), and using what it returns as a context manager (alsoasync with) or a decorator are public; subclassing it andisinstance(..., track)are not.report="warn"issuesQueryGuardAppWarning, a subclass ofQueryGuardWarning: a filter forpytest_queryguard.QueryGuardWarningmatches the findings of the plugin and of the application, a filter forpytest_queryguard.app.QueryGuardAppWarningonly the application's.- The ready-made reporters: the OpenTelemetry attribute and event names
(
queryguard.*, listed in In-application mode), and the Sentry fingerprint, tag and context keys. The text of the log record, the warning and the Sentry message title is not public, as for every message.
What the mode guarantees to the application it runs in, each checked by
tests/inapp/ (test_hardening.py above all):
- Importing
pytest_queryguard.app, creatingSettings,track()or the middleware registers no listener and does not import pytest;watch()registers them, andunwatch()of the last watched engine removes them. - An invalid setting raises
ValueErrorwhenSettings,track()or the middleware is created, never during a request; a reporter whose library is missing raisesImportErrorwhen it is created. - Nothing the mode does changes a response or replaces the application's
exception. An internal error logs one ERROR record on the
pytest_queryguard.applogger and switches the mode off for the process (internal_error()returns it), apart from the pytest plugin's own error state. An exception in areportcallable is logged, and the other targets still run. The only exception the mode raises is aQueryGuardAppWarningthat the application's own warning filters turned into an error: when the unit ends, after an ASGI response has been sent, and never over the application's own exception; the WSGI middleware logs it instead. - Nothing of a request is kept after its report: the statements, their
bound parameters and the call sites are dropped once the report is made,
also when a thread or task started by the request outlives it. Memory
stays flat over many requests, apart from the reports the panel keeps
(
panel_history) and thereporttargets' own.
Deprecated names#
Each of these works and emits QueryGuardDeprecationWarning, which names the
replacement and the release that removes it:
| Deprecated | Use instead | Since | Removed in |
|---|---|---|---|
ini option queryguard_repeat_scope |
queryguard_scope |
0.8.0 | 2.0 |
repeat_scope= of QueryLog.assert_no_nplusone() and app.Settings |
scope= |
0.8.0 | 2.0 |
max_queries(n=...) and queryguard_max_queries(n=...) markers |
a positional limit or limit= |
0.8.0 | 2.0 |
allow_nplusone is not deprecated: it is a permanent alias of the
queryguard_ignore marker.
Exit status#
The plugin does not add exit codes of its own. A test it fails is a failed
test (pytest exits with 1), and an invalid option value is a usage error
(pytest exits with 4). The compare tool exits with 0, or 2 when a file
cannot be read or the arguments are wrong. The experimental trend exits the
same way (with --skip-unreadable it leaves out a file it cannot read and
exits with 2 only when none could be read). The experimental static check
exits with 2 when the --models modules cannot be imported (or define no
mapped class), a path does not exist or the arguments are wrong, 1 when it reports a finding and 0 otherwise; a source file it
cannot parse is skipped with a message.
What is not public#
- Everything in a module whose name starts with an underscore, and any name
not exported from
pytest_queryguardorpytest_queryguard.app. The submodules (collector,listeners,detectors,indexes,messages,plugin, ...) are implementation details even though they can be imported. That includes their exception classes (BaselineError,BudgetFileError,CompareError, ...), which reach users only as pytest usage errors or as the message of a command-line tool, and the Python functions behind the command-line tools (compare.main(),trend.as_json(), ...): the command line is the interface. - The type of the object
ignore()returns: use it only in awithstatement. Attributes that start with an underscore on public objects (for example on aNPlusOneDetectedraised by strict mode) are internal too. - Environment variables. The plugin reads none of its own; it reads
GITHUB_WORKSPACE(to make SARIF paths relative to the repository) andPYTEST_ADDOPTS(to tell a partial run from a full one), as set by GitHub Actions and pytest.PYTEST_QUERYGUARD_MCP_ROOTDIRis set by the MCP server for the pytest it starts, and-p pytest_queryguard.mcpis how that pytest loads its hook; both are internal. - The in-app panel's HTML page (only its JSON is public) and the markup of
the findings
page_reportadds to a page. - The wording and layout of failure messages, warnings, summaries and
reports. They are written for people and improve between releases; do not
parse them. Use
QueryLog, the SARIF file, the baseline file or the--queryguard-jsonfile when a program needs the data. - Which statements SQLAlchemy emits for a given ORM call; that depends on the SQLAlchemy version.
- Which code counts as test code for
queryguard_test_code(see Test code): the directories, the test tools such as factory_boy and model_bakery, and the rule for a stack with frames of both. A release may recognise more of it, for example another test tool, which moves a finding between the application and the test code. The option, its values and its defaultoffare public. - The index check beyond what the documentation promises: it is documented for PostgreSQL 16 and newer, SQLite, MySQL and MariaDB, and on older PostgreSQL servers it only prints a notice. It is tested on PostgreSQL 16 to 18; on a newer server it runs and prints a notice that the version is untested.
Version numbers#
- Patch (
x.y.Z): bug fixes and documentation. No new public API, no change to defaults. A fix can make a test report a finding it missed before; that is a fix, not a breaking change. - Minor (
x.Y.0): new public API, new options with a default that keeps today's behaviour, new finding kinds that are off or reported as warnings first, deprecations, dropping support for an end-of-life Python, SQLAlchemy or pytest series, and moving SQLAlchemy from the core dependencies into thesqlalchemyextra (see "How to install it" above). - Major (
X.0.0): removals of deprecated API, changed defaults, and incompatible changes to anything listed under "What is public".
Which releases get fixes#
From 1.0.0 on, bug fixes go into a patch release of the latest minor release
(1.Y.Z) and into main. Older minor releases get no backports: a fix
reaches you by upgrading to the latest 1.x, which the rules above keep
compatible. Security fixes follow the same rule (see the
security policy).
The 0.x releases get no fixes.
Before 1.0 (history)#
The 0.x releases (0.1.0 to 0.10.0) followed looser rules: a minor release could also contain breaking changes, deprecated first whenever that was possible and always listed under "Changed" or "Removed" in the changelog.
Pre-1.0 clause for new checks. While the version was 0.x, a minor release
could change the defaults of newly added detectors: switch a new check on, or
let it fail tests by default, instead of introducing it off or as a warning
first. Every such change was named in the introduction at the top of the
changelog entry and listed first under "Changed", in a "Behavior changes"
group, with the option that turns it off. The 0.4.0 changelog entry is an
example: the column-load kind is on by default, the index advisor is on
whenever the index check is on, and the index check fails tests on SQLite,
MySQL and MariaDB. From 1.0 on, the rules above apply strictly: a new check is off or
only warns until a later minor release, and a change of default needs a major
release.
Deprecation policy#
- The old name or behaviour keeps working and starts emitting a
QueryGuardDeprecationWarning(aDeprecationWarningsubclass, exported frompytest_queryguard) that names the replacement and the release in which it will be removed. It is not aQueryGuardWarning, so afilterwarningsentry that turns findings into errors, or ignores them, does not catch it; pytest showsDeprecationWarningin the warnings summary by default. Command-line flags and ini options print the same warning once per run. - The deprecation is listed under "Deprecated" in the changelog, and the documentation points to the replacement.
- It stays for at least two minor releases (one before 1.0) and at least three months after the release that deprecated it, whichever is longer.
- It is removed in the next major release (before 1.0 it could be removed in a minor release), listed under "Removed".
A security or data-loss fix may skip these steps; the changelog says so.
A new finding kind, or a stricter version of an existing check, first appears in a release where it can be turned off with an ini option, and the changelog says how. Before 1.0 it could be on by default (see the pre-1.0 clause).
Experimental#
Options, finding kinds, markers, tools and files listed here are public to use but exempt
from the deprecation policy: a minor release may change their values,
defaults, labels or messages, or remove them, with a changelog entry under
"Changed" or "Removed" and no deprecation period. Their ini options and
command-line flags are marked EXPERIMENTAL in pytest --help.
queryguard_unused_eager_loadand theunused-eager-loadfinding kind (rulequeryguard/unused-eager-loadin SARIF). See Unused eager loads.queryguard_unused_columnsand theunused-columnsfinding kind (rulequeryguard/unused-columnsin SARIF), with its thresholds. See Unused columns.queryguard_queryset_lenand thequeryset-lenfinding kind (rulequeryguard/queryset-lenin SARIF), Django only. See Django.- The missing-index check on MySQL and MariaDB (tested in CI on MySQL 8.4 and MariaDB 11.8; see the MySQL and MariaDB page).
- The in-application mode's
page_reportsetting (since 0.8.0): its values and which responses get the findings. The setting itself stays in theSettingssnapshot. See Findings in the page. - The fix patch (since 0.8.0):
queryguard_show_patch,--queryguard-show-patch,--queryguard-write-patch, which findings get a patch, the content of the diff, and thefixesentries of the SARIF file. See A patch for the parent query. - The query-count trend (since 0.8.0):
python -m pytest_queryguard.trend, its options, its output (Markdown, text and JSON) and exit status, and the GitHub Action'strendinput andtrend-reportoutput. It reads--queryguard-jsonfiles, whose format is public. See CI. - The static check (since 0.8.0),
python -m pytest_queryguard.lint: its options, what it reports, its text output, itsgithuboutput (--format github, since 0.10.0), and the rulequeryguard/static-relationship-loadin its SARIF output. Its JSON output has aformatkey; a change to the documented keys increments it. See Static check. - The pre-commit hook
queryguard-lintin.pre-commit-hooks.yaml(since 0.10.0): its id, the command it runs and its settings. See Static check. - The MCP server,
python -m pytest_queryguard.mcp: its tools (run_tests,explain_finding,compare, andlintsince 0.10.0), their arguments and the fields of their results. See MCP server. - The Django test runner for
manage.py test(since 1.1.0),pytest_queryguard.django:QueryGuardRunner,QueryGuardTestCase, theQUERYGUARDsetting and its keys,--queryguard-mode, and the failures and warnings it reports. It is used only when you set it asTEST_RUNNERor mix it into a test case, so it changes nothing for a project that does not. See Django. - Route budgets in pytest (since 1.1.0):
queryguard_route_budgets,queryguard_route_default_budget, thequeryguard_route_budgetsmarker, which frameworks and requests they measure, how a route is named and the failure text. See Budgets per route.
tests/django_project/test_public_api.py snapshots the Django surface the
same way, so that a change is deliberate: the labels of the findings Django
code produces (Book.author, Author.books, Book.body, ...), the loader
each fix names (select_related(), prefetch_related(), only()) and the
Django versions and databases CI tests, which follow the deprecation policy
since 1.1.0; and, for the experimental runner,
pytest_queryguard.django.__all__, QueryGuardRunner's --queryguard-mode
and its keyword argument, and the keys and defaults of QUERYGUARD (the ini
options' names without the prefix). The wording around a fix is not public,
as for SQLAlchemy.
The agent skill (skills/pytest-queryguard/SKILL.md), the agent rules in
Coding agents and the editor settings in
In your editor are documentation, not API: they follow the
output they read and may change in any release.
The VS Code extension in editors/vscode (see
In your editor) has its own version
number. It reads the public keys of the JSON and SARIF reports and, for the
SQL and the fix in its hover, the text of a finding's message; when that
text changes, the hover shows the whole message.
Everything else listed under "What is public" follows the deprecation policy.
tests/test_public_api.py still snapshots the experimental ini options and
their defaults, so a change to them is deliberate and visible in review.
Failing open#
A bug inside pytest-queryguard must never change the outcome of a test
whose result the plugin does not decide, error a test, or end the session
with an INTERNALERROR:
- An exception (any
Exception, includingMemoryErrorandRecursionError) in a listener, a detector, a report writer, the index check or a pytest hook stops the measurement for the rest of the session. It is reported once: oneQueryGuardInternalWarningin the warnings summary and a "queryguard: measurement stopped" section that names the step and the line that raised. Errors while writing the baseline or SARIF file are reported in their own section instead. A warnings "error" filter does not turn the warning into a failure. Tests that the plugin would have failed (N+1, missing index, budgets) may pass after that point. - The unused eager-load and unused-columns checks turn only themselves off, each with its own warning.
KeyboardInterrupt,SystemExitandasyncio.CancelledErrorare signals, not plugin bugs: they are never swallowed. The plugin still takes its collector off the stack, and an interrupted run does not rewrite the baseline.- With pytest-xdist, an error while a worker hands its findings to the controller marks the run as incomplete: the baseline is not rewritten and the SARIF summary says that findings may be missing.
- With pytest-xdist, each worker stops and reports on its own. An error in
a worker reaches the controller as its
QueryGuardInternalWarning(pytest lists the same message once, under every test that raised it) and marks the run as incomplete; the "queryguard: measurement stopped" section is written only for an error in the controller process.
tests/test_fault_injection.py makes each of these steps raise in turn and
checks the outcome of every test of a small suite.
How this is enforced#
tests/test_public_api.pysnapshots__all__, signatures, dataclass fields, ini option names and defaults, command-line flags, markers and the entry point. A failing snapshot means: the change is breaking, or it is an addition that must be added to the snapshot on purpose. Update the snapshot in the same commit as the change, so reviewers see it.- The same snapshot covers the outside of what is listed under
Files, tools and the action: the keys and
format numbers of the baseline file, the budget file and the
--queryguard-jsonfile, the SARIF rule ids, fingerprint key and result properties, the compare tool's arguments and marker, the action's inputs and outputs, the in-app names, signatures,Settingsdefaults and the keys and format number of the panel's JSON, and the deprecated names with their removal release. For the experimental parts it snapshots the arguments of the trend and static-check tools, the trend's JSON keys, the MCP tool names and arguments, and the pre-commit hook's id and command. Their own tests (tests/test_baseline.py,test_budget_file.py,test_testjson.py,test_sarif.py,test_compare.py,test_action_args.py) check how they behave. - CI runs the suite on Python 3.10 to 3.15,
SQLAlchemy 2.0 and the latest release, the oldest and the latest pytest,
PostgreSQL 14 to 18, MySQL 8.4 and MariaDB 11.8 (the whole suite, with the
tests' databases on the server), Windows and macOS, and under pytest-xdist.
The Django support runs its own tests (the
djangojob) on Django 5.2, 6.0 and 6.1 with SQLite, Django 6.1 with PostgreSQL and Django 5.2 with MySQL. A nightly job tries the SQLAlchemy development branch, pytest pre-releases and Python 3.16; it is allowed to fail and tells maintainers about upcoming incompatibilities early.