./devel/py-test-timeout, Py.test plugin to abort hanging tests

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.3.1, Package name: py311-test-timeout-2.3.1, Maintainer: pkgsrc-users

This is a plugin which will terminate tests after a certain timeout. When doing
so it will show a stack dump of all threads running at the time. This is useful
when running tests under a continuous integration server or simply if you don't
know why the test suite hangs.

Note that while by default on POSIX systems py.test will continue to execute
the tests after a test has timed, out this is not always possible. Often the
only sure way to interrupt a hanging test is by terminating the entire process.
As this is a hard termination (os._exit()) it will result in no teardown, JUnit
XML output etc. But the plugin will ensure you will have the debugging output
on stderr nevertheless, which is the most important part at this stage.


Required to run:
[devel/py-setuptools] [devel/py-test] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 17.282 KB

Version history: (Expand)


CVS history: (Expand)


   2024-03-21 09:32:28 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test-timeout: updated to 2.3.1

2.3.1

Fixup some build errors, mostly README syntax which stopped twine from uploading.

2.3.0

Fix debugger detection for recent VSCode, this compiles pydevd using cython \ 
which is now correctly detected. Thanks Adrian Gielniewski.
Switched to using Pytest's TerminalReporter instead of writing directly to \ 
sys.{stdout,stderr}. This change also switches all output from sys.stderr to \ 
sys.stdout. Thanks Pedro Algarvio.
Pytest 7.0.0 is now the minimum supported version. Thanks Pedro Algarvio.
Add --session-timeout option and session_timeout setting. Thanks Brian Okken.
   2023-10-10 18:01:13 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-timeout: updated to 2.2.0

2.2.0
Add --timeout-disable-debugger-detection flag
   2022-07-14 15:35:21 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-timeout: updated to 2.1.0

2.1.0

Get terminal width from shutil instead of deprecated py, thanks Andrew Svetlov.
Add an API for extending pytest-timeout functionality with third-party plugins, \ 
thanks Andrew Svetlov.

2.0.2

Fix debugger detection on OSX, thanks Alexander Pacha.

2.0.1

Fix Python 2 removal, thanks Nicusor Picatureanu.

2.0.0

Increase pytest requirement to >=5.0.0. Thanks Dominic Davis-Foster.
Use thread timeout method when plugin is not called from main thread to avoid crash.
Fix pycharm debugger detection so timeouts are not triggered during debugger usage.
Dropped support for Python 2, minimum pytest version supported is 5.0.0.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2020-10-08 10:28:38 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test-timeout: updated to 1.4.2

1.4.2
Fix compatibility when run with pytest pre-releases, thanks Bruno Oliveira,
Fix detection of third-party debuggers, thanks Bruno Oliveira.

1.4.1
Fix coverage compatibility which was broken by 1.4.0.

1.4.0
Better detection of when we are debugging, thanks Mattwmaster58.
   2020-05-16 19:38:40 by Adam Ciarcinski | Files touched by this commit (9)
Log message:
pytest from versioned deps.