Michael Elovskikh
81003df660
Fix codestyle
2017-02-14 20:19:55 +05:00
Michael Elovskikh
753f9241a7
Support older pytest versions
2017-02-14 20:19:55 +05:00
Michael Elovskikh
2ff2772521
Use pytest_xdist_make_scheduler hook to set up scheduller instance
2017-02-14 20:19:55 +05:00
Michael Elovskikh
d5ba3804bb
Use __import__ instead of importlib for py26 support
2017-02-14 20:19:55 +05:00
Michael Elovskikh
7d099b65c2
Allow custom scheduler class
2017-02-14 20:19:55 +05:00
Bruno Oliveira
305acdd72a
Cleanly shutdown workers if session should be interrupted
...
As discussed in #66
2016-06-07 19:35:08 -03:00
Bruno Oliveira
20fe1f9874
Skip progress display when in non-terminal (pytest >= 2.9)
...
See pytest-dev/pytest#1397
2016-05-11 22:15:25 -03:00
Bruno Oliveira
2ae9bd7f43
Add new pytest_xdist_node_collection_finished hook
...
Fix #8
2015-12-12 12:44:27 -02:00
Hyunjun Kim
4ff6be21a8
Fix typos
2015-12-09 13:23:43 +09:00
Nicholas Chammas
4c22653fd4
Typo fixes to docstrings
2015-12-01 14:45:03 -05:00
Steven Hazel
412febd898
pep8 and python 3 compatibility fixes
2015-11-18 13:39:53 -08:00
Steven Hazel
3140873f0a
bugfix: iterate in a python 3 compatible way
2015-11-18 13:34:39 -08:00
Steven Hazel
09d79ace35
Do a better job parallelizing the inital batch of tests when the
...
number of nodes is more than half the number of tests. This makes it
possible, for example, to run all tests in parallel, where previous
the maximum parallelization was half of all tests.
2015-11-18 13:06:04 -08:00
Ronny Pfannschmidt
0f5ef95be8
flake8 cleanup
2015-09-01 22:37:51 +02:00
Bruno Oliveira
4b1ddb9c81
Add --max-slave-restart option
...
Also changed wording used from "failed node" to "crashed slave", to conform
with other messages ("slave sw0 crashed")
2015-07-11 13:12:12 -03:00
Bruno Oliveira
a131d34b2d
testscollected is now a public Session attribute
2015-07-06 20:27:41 -03:00
Bruno Oliveira
05ab96feaf
update collected tests from slaves into main pytest session object
...
Upstream changes in https://github.com/pytest-dev/pytest/pull/817 make
pytest-dist always return EXIT_NOTESTSCOLLECTED because the
master node doesn't collect any tests. This patch updates the pytest session
about the collected items on the slaves.
2015-07-04 15:40:55 -03:00
Bruno Oliveira
d84f1f08d8
fix issue 594: xdist is not executing tests parametrized with random values
...
Now xdist properly reports the collection errors instead of silently failing to execute
the test suite.
2014-09-23 22:09:44 -03:00
Floris Bruynooghe
76c297bdb0
Fixes for node-restarting in each scheduling
...
* node2collection should only be populated when the collection is
added. This way collection_is_completed can be kept track of
correctly.
* The _removed2pending map needs to have the entire node as key
because it is needed to look up the collection of the gateway which
died in node2collection to check the collection of the replacement
node is identical.
* init_distribute() needs to actually keep track of the started nodes
otherwise it's (re)scheduling gets all confused and will re-schedule
too often.
2014-09-16 23:18:49 +01:00
Floris Bruynooghe
fc335fb7dc
Implement node-restarting for each scheduling
2014-09-16 16:01:51 +02:00
Floris Bruynooghe
f643991f7f
Very rough cut of restarting a failed node
2014-09-15 01:20:45 +02:00
Bruno Oliveira
9d549a0c06
Log different tests collected by slaves instead of an error
...
This is a proposal to fix #556 .
2014-08-02 20:59:45 -03:00
holger krekel
cc237b0d8e
fix various flakes issues and add "flakes" to tox tests
2014-07-20 16:56:21 +02:00
holger krekel
67f80b7c2c
fix pytest issue503: avoid random re-setup of broad scoped fixtures
...
(anything above function).
2014-07-20 16:41:03 +02:00
holger krekel
ffa156ced5
refine distribution fractions and make it dependend on the duration
...
of the last test in a node's set.
2014-01-27 12:39:43 +01:00
holger krekel
e26d4486fc
send multiple "to test" indices in one network message to a slave
...
and improve heuristics for sending chunks where the chunksize
depends on the number of remaining tests rather than fixed numbers.
This reduces the number of master -> node messages (but not the
reverse direction)
2014-01-27 11:37:40 +01:00
holger krekel
18a30fab7d
fix issue419: work with collection indices instead of node ids.
...
This reduces network message size.
2014-01-27 11:37:33 +01:00
holger krekel
dd73d132b1
remove unneccesary item2nodes data structure for load scheduling
2014-01-27 11:37:27 +01:00
holger krekel
a22e0384a1
a failing test for pytest issue419
2014-01-27 11:37:26 +01:00
holger krekel
b88b23e358
some test fixes and configure tox-testing against pytest==2.3.5 and pytest>=2.4.2
2013-10-04 10:34:24 +02:00
Dmitrijs Milajevs
fa96143aeb
Cleanup
2013-09-05 15:30:37 +02:00
Dmitrijs Milajevs
9a50d9de17
Give more context when nodes collected different tests.
2013-09-05 15:24:27 +02:00
Jonathan Hunt
26016aefd1
Use the error longrepr rather than the file path to check
...
for duplicate errors.
2013-04-28 16:14:52 -07:00
Jonathan Hunt
10c9c34c75
Passing tests, avoiding duplicate errors.
2013-04-25 18:20:40 -07:00
Jonathan Hunt
46b94c1c81
Report ImportErrors in distributed mode.
2013-04-25 18:04:24 -07:00
holger krekel
8c6fea9895
remove usage of final_logerrors now that we have better teardown information
2011-12-02 21:03:58 +00:00
holger krekel
1f6d410481
fix issue 93 of pytest - avoid delayed teardowns
2011-12-02 21:03:29 +00:00
holger krekel
f946ab1835
adapt to pytest-2.2.0.dev2
2011-11-08 17:54:26 +00:00
holger krekel
1c712fe6a0
fix and shorten collection reporting and fix a test wrt internal pytest api
2010-12-07 12:00:22 +01:00
holger krekel
fc1f29db68
* introduce progress-reporting
...
* rename somewhat internal pytest_gwmanage_* events to pytest_xdist_*
* make gateway setup a separate step
2010-11-22 15:39:56 +01:00
holger krekel
9108790801
merge nodemanager and gwmanager
2010-11-22 12:05:55 +01:00
holger krekel
3fc03c8c8e
fixes for new internal pytest tmpdir handling
2010-11-22 11:41:23 +01:00
holger krekel
47d3e99083
fix and unify remote skip test/collect reports
2010-11-13 20:53:35 +01:00
holger krekel
d81ffaa980
some changes to make remote testing work better - slightly hackish and will remain so until 'tox' is used to create environments and properly set things up.
2010-11-13 19:47:01 +01:00
holger krekel
9d55d3c831
adapt to pytest changes, add looponfailingdirs ini-option
2010-11-06 09:58:00 +01:00
holger krekel
4cd76363f6
adapt to new pytest changes, use new addini/getini methods for rsyncdirs / rsyncignore options
2010-11-01 00:27:43 +01:00
holger krekel
9df55b1c60
refactor and port dsession tests, re-introduce --dist testing along
...
with a simple scheduler.
2010-09-28 16:32:42 +02:00
holger krekel
3767ce3269
move some code around, ending up with fewer files logically grouped
2010-09-28 16:08:31 +02:00
holger krekel
f7923c692e
move code to fewer more sensible modules.
2010-09-27 16:13:57 +02:00
holger krekel
3ad58ae21f
fix distributed testing reporting details
2010-09-27 16:13:56 +02:00