holger krekel
e3b34c9da3
* allowing arbitrary keys for xspecs but adding some sanity checks to xspec-parsing and makegateway.
...
* fixing a python3 IO issue - we need to retain sys.stdout/stdin
references to keep the underlying byte stream open.
--HG--
branch : trunk
2009-09-22 18:40:20 +02:00
holger krekel
47bad98c07
* various cleanups and detailed doc string for gateway_base module
...
* remove old multi-file-send mechanism/tests now that
only gateway_base is send to the other side.
* adding some (c) notices where i am pretty sure about them.
--HG--
branch : trunk
2009-09-11 16:26:19 +02:00
holger krekel
b70c7a209d
* moving execnet tests to funcarg-style, some cleanup
...
* slight refinement to FAQ license topic
--HG--
branch : trunk
2009-09-08 10:10:36 +02:00
holger krekel
29d437489d
some fixes to support Jython better
...
--HG--
branch : trunk
2009-09-07 14:59:26 +02:00
holger krekel
5cf27098cf
execnet cleanup/refinements: avoid creating a shell for each subprocess
...
* introduce HostNotFound, raised for Socket and SshGateways
* factored out basic tests, cleaned up existing tests
* removed sshgateway identity argument which was deprecated in 1.0
--HG--
branch : trunk
2009-09-06 13:38:21 +02:00
holger krekel
c7f11745cd
* fix various remaining 3k issues until test_gateway.py passes with python3 py/bin/py.test
...
* we now wait on gateway initialization until we got a byte back after
we sent the bootstrap
--HG--
branch : trunk
2009-09-02 21:05:08 +02:00
holger krekel
6c3e961bc5
* simplify stdout/stderr handling and modules and for now remove support
...
for directly stdout/stderr directly on remote_exec
--HG--
branch : trunk
2009-09-02 19:39:24 +02:00
holger krekel
e30aeed876
* more tests and fixes for cross-python compatibility
...
* use byte-buffer files if available for io
* shift receivelock to gateway object
* kill dead code
--HG--
branch : trunk
2009-09-02 18:56:43 +02:00
holger krekel
f636ed8ced
* make Gateway interface more asymetric: remote_* methods
...
and cleanup/atexit handling now live exclusively with the "InitiatingGateway"
* fix some cross-python io related handling
--HG--
branch : trunk
2009-09-02 14:31:48 +02:00
holger krekel
43b8bd7df7
* refactor gateway code and tests to live in fewer files, remove some lock usage
...
* move text files to a new "hacking" directory
--HG--
branch : trunk
2009-09-01 11:39:27 +02:00
Benjamin Peterson
9018fe40e3
fix syntax for py3
...
--HG--
branch : trunk
2009-08-29 14:50:29 -05:00
Benjamin Peterson
45a9aa536f
fix need for py import
...
--HG--
branch : trunk
2009-08-29 14:16:54 -05:00
Benjamin Peterson
ee1747fcb4
make all syntax compatible with 3.1 and 2.5
...
--HG--
branch : trunk
2009-08-29 13:04:48 -05:00
holger krekel
079a2327ec
kill/replace some execnet debug code
...
bump version to "trunk" on trunk
add "py" to rsyncdirs
--HG--
branch : trunk
2009-08-20 16:41:44 +02:00
holger krekel
a01e4769cc
simplify internal plugin dispatching code, rename parts of the py._com plugin helpers
...
--HG--
branch : 1.0.x
2009-08-09 23:51:25 +02:00
holger krekel
296a660a73
doc refinements
...
introduce '__channelexec__' + docs
--HG--
branch : 1.0.x
2009-06-26 17:48:46 +02:00
holger krekel
541b35270f
care for threading module being set to None already during finalization
...
--HG--
branch : trunk
2009-05-10 21:36:13 +02:00
holger krekel
8182d341a5
rename "api" into "hook" in most places.
...
--HG--
branch : trunk
2009-05-07 18:01:53 +02:00
hpk
66c64e6b97
[svn r63869] * moving execnet events to become api plugin calls.
...
* defining Execnet hooks in an explicit API
--HG--
branch : trunk
2009-04-08 19:50:14 +02:00
hpk
b6b060c1d0
[svn r63845] introduce new _pytest plugin that allows to selectively record
...
plugin calls and do assertions about them.
--HG--
branch : trunk
2009-04-08 17:15:56 +02:00
hpk
82630c37a8
[svn r63232] nicer repr for gateway._rinfo() informatio about remote location
...
--HG--
branch : trunk
2009-03-23 16:01:15 +01:00
hpk
2c2bfb5513
[svn r63210] * implement "--dist=each" to distribute each to each available node
...
* improved node-management and nice showing of results
* streamline command line options
--HG--
branch : trunk
2009-03-22 21:44:45 +01:00
hpk
6a1db0a594
[svn r63162] all tests pass again, output on test node setup and initialization is now much nicer.
...
--HG--
branch : trunk
2009-03-21 02:31:27 +01:00
hpk
265e7c5dc2
[svn r63139] make _rinfo() cache results by default
...
--HG--
branch : trunk
2009-03-20 15:04:15 +01:00
hpk
8d8a73784c
[svn r63137] a helper some basic remote info
...
--HG--
branch : trunk
2009-03-20 14:41:43 +01:00
hpk
764b85f23e
[svn r63136] better grouping of gateway public API
...
--HG--
branch : trunk
2009-03-20 14:31:02 +01:00
hpk
a57836f1eb
[svn r63060] execnet really needs to improve its bootstrapping
...
--HG--
branch : trunk
2009-03-19 10:56:40 +01:00
hpk
941d06e509
[svn r63040] try harder to record and auto-exit gateways after test runs
...
--HG--
branch : trunk
2009-03-18 16:51:55 +01:00
hpk
9b81b15b74
[svn r57544] still notify callbacks if we can't send to the other side anymore.
...
--HG--
branch : trunk
2008-08-21 14:00:08 +02:00
hpk
2371fb16fa
[svn r45549] fix a bug that servemain() wouldn't actually
...
try to join threads at exit because of a
(hidden) attribute error.
--HG--
branch : trunk
2007-08-08 14:02:55 +02:00
hpk
62634136b9
[svn r45548] - refactoring cleanup mechanics into its own class
...
- have setDaemon(1) for the receiverThread as
otherwise on python2.5 atexit will not be invoked
(the receiver thread apparently blocks it)
--HG--
branch : trunk
2007-08-08 13:45:04 +02:00
hpk
3cb7d3579a
[svn r45547] remove global
...
--HG--
branch : trunk
2007-08-08 12:38:22 +02:00
hpk
a94866a20b
[svn r45541] don't use globals when we might be called from destructors
...
--HG--
branch : trunk
2007-08-07 19:54:09 +02:00
hpk
a5e69d2035
[svn r45539] merge the execnet lessthreads branch (using the branch'es history):
...
* now by default Gateways DO NOT SPAWN execution threads
you can call "remote_init_threads(NUM)" on an already instantiated
gateway, which will install a loop on the other side which will
dispatch each execution task to its own thread.
* execution is dissallowed on the side which initiates a gateway
(rarely used, anyway)
* some cleanups (hopefully)
--HG--
branch : trunk
2007-08-07 19:34:59 +02:00
hpk
8bf738614e
[svn r39982] introduce gateway._send and have all places route
...
their sending of Messages (or None's) through that method.
--HG--
branch : trunk
2007-03-06 13:51:18 +01:00
hpk
ed2759b262
[svn r38579] library code should not use magic timeouts,
...
testing code may use a global TESTTIMEOUT
--HG--
branch : trunk
2007-02-12 16:55:48 +01:00
hpk
8e33cf6772
[svn r38427] significantly reducing the trailing "Exception in Thread"
...
messages by having threads die more silently. Most
of these threads and tracebacks are anyway on some
remote machine, and we need to take care that errors
are routed to the place of invocation (e.g. the
remote_exec() invoker should get remote exceptions,
if the remote thread goes out of scope, the resulting
exception will not be seen likely, anyway)
--HG--
branch : trunk
2007-02-10 23:16:47 +01:00
hpk
59264d57ae
[svn r37822] added lots of docstrings, general cleanup
...
--HG--
branch : trunk
2007-02-02 20:57:47 +01:00
hpk
272812fd76
[svn r37787] more precision at shutdown: first remove
...
from the sendqueue, then trigger the queue
to shutdown. (This is an attempt to get
rid of the still appearing "exception in thread"
messages)
--HG--
branch : trunk
2007-02-02 02:07:37 +01:00
hpk
0c55062e74
[svn r37786] improve docstring
...
--HG--
branch : trunk
2007-02-02 02:05:31 +01:00
hpk
7a718ca2e7
[svn r37785] privatizing some more attributes
...
--HG--
branch : trunk
2007-02-02 02:02:55 +01:00
hpk
b4919c8102
[svn r37784] privatizing some attributes
...
--HG--
branch : trunk
2007-02-02 01:34:40 +01:00
hpk
3634701598
[svn r37780] simplifying code a bit (but test_confusion* for Ssh still fails)
...
--HG--
branch : trunk
2007-02-02 00:57:55 +01:00
hpk
dad2da4583
[svn r37456] some small adjustments/cleanups regarding intiialisation
...
--HG--
branch : trunk
2007-01-28 09:48:59 +01:00
hpk
5992a8ef21
[svn r37264] create the new development trunk
...
--HG--
branch : trunk
2007-01-24 15:24:01 +01:00