mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-22 23:10:20 +08:00
With --cov, pytest-cov un-ignores the "unclosed database in <sqlite3.Connection ...>" ResourceWarning for the whole session, and since Python 3.13 sqlite3 emits it for every connection that is garbage collected without being closed. The unit tests' mock apps never close their in-memory sqlite databases, so pytest records one such warning per app. pytest hands each recorded warning to the historic pytest_warning_recorded hook, and pluggy keeps historic call arguments for the rest of the session, so the warning's source - the connection with its whole in-memory Galaxy database - is never freed. On Python 3.14 with coverage this grows each xdist worker by gigabytes, and the push-only unit-coverage job exhausts the hosted runner's memory and gets killed with "The runner has received a shutdown signal". Ignore that warning in pytest.ini. Python ignores ResourceWarning by default, so runs without coverage already behave this way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
3.4 KiB
INI
64 lines
3.4 KiB
INI
[pytest]
|
|
addopts = --doctest-continue-on-failure --verbosity=1 --showlocals --import-mode=append
|
|
asyncio_mode = auto
|
|
log_level = DEBUG
|
|
consider_namespace_packages = true
|
|
filterwarnings =
|
|
# pytest-cov un-ignores this ResourceWarning, and pytest keeps every recorded warning
|
|
# (and its source, here a whole in-memory sqlite database) alive until the session ends.
|
|
ignore:unclosed database in <sqlite3.Connection object at:ResourceWarning
|
|
error::pydantic.warnings.PydanticDeprecatedSince20
|
|
error:.*utcnow.*:DeprecationWarning
|
|
ignore::DeprecationWarning:pkg_resources
|
|
ignore::DeprecationWarning:refgenconf
|
|
ignore::UserWarning:refgenconf
|
|
# Install pytest-memray and set memray to true here to enable memory profiling of tests
|
|
# memray = true
|
|
pythonpath = lib
|
|
markers =
|
|
data_manager: marks test as a data_manager test
|
|
external_dependency_management: slow tests which resolves dependencies with e.g. conda
|
|
requires_admin: test requires admin access to Galaxy
|
|
requires_celery: test requires celery
|
|
requires_new_history: test needs a freshly-created history
|
|
requires_new_library: test needs a freshly-created library
|
|
requires_new_published_objects: test creates new published objects
|
|
requires_new_user: test needs a freshly-created user
|
|
tool: marks test as a tool test
|
|
requires_tool_id: marks API test as requiring specified tool id
|
|
gtn_screenshot: marks test as a screenshot producer for galaxy training network
|
|
local: mark indicates, that it is sufficient to run test locally to get relevant artifacts (e.g. screenshots)
|
|
external: mark indicates, that test has to be run against external production server to get relevant artifacts (e.g. screenshots)
|
|
green: test expected to pass
|
|
red: test expected to fail
|
|
command_line_tool: CWL conformance test tagged command_line_tool
|
|
conditional: CWL conformance test tagged conditional
|
|
docker: CWL conformance test tagged docker
|
|
env_var: CWL conformance test tagged env_var
|
|
expression_tool: CWL conformance test tagged expression_tool
|
|
format_checking: CWL conformance test tagged format_checking
|
|
initial_work_dir: CWL conformance test tagged initial_work_dir
|
|
inline_javascript: CWL conformance test tagged inline_javascript
|
|
inplace_update: CWL conformance test tagged inplace_update
|
|
input_object_requirements: CWL conformance test tagged input_object_requirements
|
|
load_listing: CWL conformance test tagged load_listing
|
|
multiple: CWL conformance test tagged multiple
|
|
multiple_input: CWL conformance test tagged multiple_input
|
|
networkaccess: CWL conformance test tagged networkaccess
|
|
required: required for CWL conformance
|
|
resource: CWL conformance test tagged resource
|
|
scatter: CWL conformance test tagged scatter
|
|
schema_def: CWL conformance test tagged schema_def
|
|
secondary_files: CWL conformance test tagged secondary_files
|
|
shell_command: CWL conformance test tagged shell_command
|
|
step_input: CWL conformance test tagged step_input
|
|
step_input_expression: CWL conformance test tagged step_input_expression
|
|
subworkflow: CWL conformance test tagged subworkflow
|
|
timelimit: CWL conformance test tagged timelimit
|
|
workflow: CWL conformance test tagged workflow
|
|
work_reuse: CWL conformance test tagged work_reuse
|
|
cwl_conformance: all CWL conformance tests
|
|
cwl_conformance_v1_0: CWL v1.0 conformance tests
|
|
cwl_conformance_v1_1: CWL v1.1 conformance tests
|
|
cwl_conformance_v1_2: CWL v1.2 conformance tests
|