Skip to content

Commit

Permalink
Switch to using COVERAGE_CORE=sysmon
Browse files Browse the repository at this point in the history
This should speed up python 3.12 tests with coverage.  See
nedbat/coveragepy#1747
  • Loading branch information
manthey committed Jun 25, 2024
1 parent 0ff6c88 commit 5b2b8ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ commands:
# consume the exit code
# command: PYTEST_ADDOPTS=--forked tox -e << parameters.env >> | cat; test ${PIPESTATUS[0]} -eq 0
# command: PYTEST_ADDOPTS="--reruns=3 --numprocesses=0" tox -e << parameters.env >> | cat; test ${PIPESTATUS[0]} -eq 0
command: PYTEST_NUMPROCESSES=3 PYTEST_ADDOPTS="--reruns=3" tox -e << parameters.env >> | cat; test ${PIPESTATUS[0]} -eq 0
command: COVERAGE_CORE=sysmon PYTEST_NUMPROCESSES=3 PYTEST_ADDOPTS="--reruns=3" tox -e << parameters.env >> | cat; test ${PIPESTATUS[0]} -eq 0
switchpython:
description: "Upgrade python"
parameters:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Improvements
- Improved zarr sink metadata handling ([#1508](../../pull/1508))
- Speed up decoding jp2k tiff with an optional library ([#1553](../../pull/1553))
- Speed up decoding jp2k tiff with an optional library ([#1555](../../pull/1555))

### Changes
- Work with newer python-mapnik ([#1550](../../pull/1550))
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ skip_missing_interpreters = true
toxworkdir = {toxinidir}/build/tox

[testenv]
passenv = PYTEST_*,DICOMWEB_TEST_URL,DICOMWEB_TEST_TOKEN
passenv = PYTEST_*,COVERAGE_*,DICOMWEB_TEST_URL,DICOMWEB_TEST_TOKEN
extras =
memcached
redis
Expand Down Expand Up @@ -395,6 +395,7 @@ include =
utilities/converter/*
utilities/tasks*
parallel = True
core = sysmon

[coverage:html]
directory = build/test/artifacts/python_coverage
Expand Down

0 comments on commit 5b2b8ba

Please sign in to comment.