Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdist does not transfer warnings to the master #92

Closed
RonnyPfannschmidt opened this issue Oct 11, 2016 · 2 comments
Closed

xdist does not transfer warnings to the master #92

RonnyPfannschmidt opened this issue Oct 11, 2016 · 2 comments

Comments

@RonnyPfannschmidt
Copy link
Member

pytest-dev/pytest#1996 and pytest-dev/pytest#602

example from the pytest issue:

Warnings raised with request.node.warn does not show warnings. -rw does not give any warning output either.

Here is the same test run without and with xdist:

$ py.test unit_tests/
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
2166 passed, 78 warnings in 46.73 seconds
$ py.test unit_tests/ -n1
gw0 [2166]
scheduling tests via LoadScheduling
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
2166 passed in 48.02 seconds
@Korijn
Copy link

Korijn commented Oct 11, 2016

Any idea where the source code can be found that "transfers" any errors that have occurred? We might be able to jam the warnings in there too?

@RonnyPfannschmidt
Copy link
Member Author

@Korijn the mechanism we use to transfer test reports is unsuitable for the warnings (which are a side-channel)

but i do wonder if we can extend test report serialization in a way to handle warnings alongside

nicoddemus added a commit to nicoddemus/pytest-xdist that referenced this issue Aug 9, 2017
nicoddemus added a commit to nicoddemus/pytest-xdist that referenced this issue Aug 9, 2017
netbsd-srcmastr referenced this issue in NetBSD/pkgsrc Aug 14, 2017
pytest-xdist 1.19.1 (2017-08-10)
================================

Bug Fixes
---------

- Fix crash when transferring internal pytest warnings from workers to the
  master node. (`#214 <https://github.com/pytest-dev/pytest-
  xdist/issues/214>`_)


pytest-xdist 1.19.0 (2017-08-09)
================================

Deprecations and Removals
-------------------------

- ``--boxed`` functionality has been moved to a separate plugin, `pytest-forked
  <https://github.com/pytest-dev/pytest-forked>`_. This release now depends on
  `` pytest-forked`` and provides ``--boxed`` as a backward compatibility
  option. (`#1 <https://github.com/pytest-dev/pytest-xdist/issues/1>`_)


Features
--------

- New ``--dist=loadscope`` option: sends group of related tests to the same
  worker. Tests are grouped by module for test functions and by class for test
  methods. See ``README.rst`` for more information. (`#191 <https://github.com
  /pytest-dev/pytest-xdist/issues/191>`_)

- Warnings are now properly transferred from workers to the master node. (`#92
  <https://github.com/pytest-dev/pytest-xdist/issues/92>`_)


Bug Fixes
---------

- Fix serialization of native tracebacks (``--tb=native``). (`#196
  <https://github.com/pytest-dev/pytest-xdist/issues/196>`_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants