Commit Graph

2014 Commits

Author SHA1 Message Date
David Wilson bc0be45612 issue #61: unused import (reported by LGTM) 2019-01-20 19:47:20 +00:00
David Wilson 6da52ff00e issue #61: unused import (reported by LGTM) 2019-01-20 19:47:06 +00:00
David Wilson d63c99d912 issue #61: unused import (reported by LGTM) 2019-01-20 19:46:51 +00:00
David Wilson 00838e9134 issue #61: unused import (reported by LGTM) 2019-01-20 19:46:34 +00:00
David Wilson 907c4556c8 issue #61: unused variable (reported by LGTM) 2019-01-20 19:46:16 +00:00
David Wilson f67960848b issue #61: unused import (reported by LGTM) 2019-01-20 19:45:34 +00:00
David Wilson 96c35ccab1 issue #61: unused variable (reported by LGTM) 2019-01-20 19:45:19 +00:00
David Wilson 95fe052158 issue #61: unused import (reported by LGTM) 2019-01-20 19:44:21 +00:00
David Wilson b8ca015b83 issue #61: unused variable (reported by LGTM) 2019-01-20 19:43:56 +00:00
David Wilson bcc7bb7128 issue #61: unused import (reported by LGTM) 2019-01-20 19:42:30 +00:00
David Wilson fb750edfa7 issue #61: fix bare except (reported by LGTM) 2019-01-20 19:41:03 +00:00
David Wilson abfb6e39a8 issue #61: unused variable (reported by LGTM) 2019-01-20 19:39:50 +00:00
David Wilson 7bb6b4ab4b issue #61: remove duplicate method (reported by LGTM) 2019-01-20 19:39:04 +00:00
David Wilson 5bd9efb723 issue #61: add missing close() implementation (reported by LGTM) 2019-01-20 19:38:05 +00:00
David Wilson 767737265a issue #61: add inverse comparison (reported by LGTM) 2019-01-20 19:36:44 +00:00
David Wilson 51bd35280a issue #61: remove duplicated method (reported by LGTM) 2019-01-20 19:35:49 +00:00
David Wilson 4bdf60326c issue #424: ansible: make put_file() raise AnsibleFileNotFound 2019-01-20 19:01:14 +00:00
David Wilson 146e0c3ccb issue #407: update Changelog.
Closes #407.
2019-01-20 17:09:32 +00:00
David Wilson 06415bb720 issue #310: fix test failures, teach old import method new tricks
- don't try anything unless something really lives in sys.modules by
  that name
- non-ASCII files are possible
- the unimportable thing might be an extension module, we don't want
  that
2019-01-20 16:46:15 +00:00
David Wilson 6af1a64cce master: handle crazy non-modules in sys.modules again; closes #310. 2019-01-20 15:53:50 +00:00
David Wilson c1980aac6b issue #349: update Changelog. 2019-01-20 15:15:16 +00:00
David Wilson fed6a8856b docs: add unused import to Changelog. 2019-01-20 14:59:24 +00:00
David Wilson ea9ef50b3c issue #415: replace default Poller with select.poll()
30% latency reduction for IPC.
2019-01-20 14:35:46 +00:00
David Wilson 7c33979e25 issue #415: add IPC latency bench. 2019-01-20 14:04:06 +00:00
David Wilson fd90834944 issue #408: fix test fallout. 2019-01-20 13:20:15 +00:00
David Wilson b7add60097 issue #408: update Changelog; closes #408. 2019-01-20 13:04:21 +00:00
David Wilson 51ac309647 issue #408: 2.4 compat: replace iter_read with explicit generator
Can't use yield inside try/finally on 2.4.
2019-01-20 13:02:30 +00:00
David Wilson 41626b82dd issue #408: 2.4 compat: remove ternary if use in master.py. 2019-01-20 13:01:49 +00:00
David Wilson 5b45b5851c issue #408: use compatible method to get thread ID. 2019-01-20 13:00:43 +00:00
David Wilson 3aff3e5506 issue #408: fix mitogen.compat.tokenize 2.4 compatibility. 2019-01-20 13:00:20 +00:00
David Wilson a8c056c27b issue #436: decode debug log lines on Python 3. 2019-01-20 12:31:38 +00:00
David Wilson 8380baf41b issue #461: Ansible 2.3 placeholder modules for action plug-ins. 2019-01-20 11:14:17 +00:00
David Wilson 3f31b166f6 issue #461: Ansible 2.3-compatible _get_candidate_temp_dirs(). 2019-01-20 10:51:20 +00:00
David Wilson 9401c34f64 issue #461: Ansible 2.3 did not have _load_name. 2019-01-20 10:50:38 +00:00
David Wilson 5761652e02 core: allow Router.shutdown() to succeed after exit.
For join_thread():

Exception in thread mitogen.master.join_thread_async:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/dmw/src/mitogen/mitogen/master.py", line 249, in _watch
    watcher.on_join()
  File "/home/dmw/src/mitogen/mitogen/master.py", line 816, in shutdown
    super(Broker, self).shutdown()
  File "/home/dmw/src/mitogen/mitogen/core.py", line 2741, in shutdown
    self.defer(_shutdown)
  File "/home/dmw/src/mitogen/mitogen/core.py", line 2142, in defer
    raise Error(self.broker_shutdown_msg)
Error: An attempt was made to enqueue a message with a Broker that has already exitted. It is likely your program called Broker.shutdown() too early.
2019-01-20 08:30:55 +00:00
David Wilson 822978520f issue #446: update Receiver.__iter__ to match
iter() previously relied on the fake dead message being enqueued.
2019-01-20 08:28:20 +00:00
David Wilson 386d869d5f tests: fix responder_test after removing unused imports 2019-01-20 08:11:54 +00:00
David Wilson 57b652eddc parent: remove unused imports
The stray functools import must have been there forever! Instant 4kb
knocked off wire footprint.
2019-01-20 07:36:31 +00:00
David Wilson 5ef94eb3e2 issue #456: loosen Waker.defer() shutdown test a little
Allow messages to continue being queued during the shutdown period,
right up until the final loop iteration, even though this is racy, as
too many things depend on .defer() during exit right now.

This doesn't hurt the spirit of the check: it still catches the worst
situation where $user accidentally shut down Broker then tried to
continue using it.
2019-01-20 07:29:11 +00:00
David Wilson 6592598999 tests: stray socket file left during unix_test. 2019-01-20 07:15:53 +00:00
David Wilson cce1dbf3b1 tests: quieten a bunch of spam printed during run 2019-01-20 07:10:37 +00:00
David Wilson b0e7c1a315 tests: fix /etc/environment test on vanilla
Use "meta: reset_connection" to ensure /etc/environment is reloaded.
Looks like this entire feature can be ripped out!
2019-01-20 07:10:28 +00:00
David Wilson b6840aab75 issue #459: one line stats output during shutdown
CI logs are too noisy.
2019-01-20 06:24:23 +00:00
David Wilson 26fdbf70e0 tests: good_load_module_size check can't be exact
Since message contains pathnames that vary across machines
2019-01-20 06:18:35 +00:00
David Wilson 3b17cb7c5b unix: add Listener.__repr__. 2019-01-19 22:44:11 +00:00
David Wilson ae03d5f4f1 issue #446: basic tests for Receiver._on_receive(). 2019-01-19 22:42:28 +00:00
David Wilson bcd9827c3b core: Latch.empty() improvements
- throw LatchError if the latch is closed.
- wrap with the lock to avoid unexpected weirdness.
2019-01-19 22:24:46 +00:00
David Wilson 388649df97 core: Receiver.close() now wakes all threads; closes #446. 2019-01-19 16:08:44 +00:00
David Wilson f2f41809ae issue #459: initial get_stats() implementation 2019-01-19 15:55:52 +00:00
David Wilson 1d97493fcd tests: fallout from #447. 2019-01-19 11:32:35 +00:00