Commit Graph

464 Commits

Author SHA1 Message Date
David Wilson 9e884d3d8b tests: stop fakessh spamming the logs 2017-10-08 19:14:21 +05:30
David Wilson ec7fe7dafa Merge branch 'setup' of https://github.com/moreati/mitogen
Thanks Alex!
2017-10-08 19:06:54 +05:30
David Wilson 94b8b794e9 Empty commit to trigger Travis after Docker push
d2mw/mitogen-test was out of date
2017-10-08 19:02:48 +05:30
Alex Willmer 61f9b46816 gitignore: distutils output files 2017-10-08 14:28:28 +01:00
Alex Willmer c0bcacf6f9 setup: Trove classifiers
These will help with future PyPI discovery, and should make it clear
that Python 3.x is not (yet) supported.
2017-10-08 14:27:30 +01:00
Alex Willmer dfb0fd8244 setup: Add a hashbang
- Uses /usr/bin/env so it still works in e.g. a virtualenv
- Uses python2, rather than python3 to indicate mitogen currently being
2.x only.
2017-10-08 14:24:20 +01:00
Alex Willmer 990afe7d2f setup: Use correct packages declaration
py_packages is not a field know by distutils or setuptools. The closest
is `py_modules`, which perhaps what the erroneus line here started as.

Fixes #43
2017-10-08 14:20:52 +01:00
David Wilson 9f48fd69c1 Bump time allowance for fakessh_test 2017-10-08 17:07:08 +05:30
David Wilson baf4380b6d Ensure _run_defer() fully executes at least once before shutdown
Without this, it's possible for Waker to be start_received() after the
shutdown signal has already been sent, resulting in 5 second delay
during shutdown.

Additionally mask EBADF during os.write() to waker's write side.
Necessary since nothing synchronizes writer threads from the broker
thread during shutdown. Could be done with a lock instead, but this is
cheaper.
2017-10-08 17:03:11 +05:30
David Wilson 8c6d861f15 Bump time allowance for ssh_test. 2017-10-08 16:37:27 +05:30
David Wilson 3b2596b125 Bump time allowance for select_test. 2017-10-08 16:36:45 +05:30
David Wilson c83d86f050 importer: Delete _get_module_via_parent entirely
Can't figure out what it's supposed to do any more, and can't find a
version of Ansible before August 2016 (when I wrote that code) that
seems to need it.

Add some more mitigations to avoid sending dylibs.
2017-10-08 16:33:04 +05:30
David Wilson dcea7ac616 docs: waiting on multiple calls 2017-10-08 16:33:04 +05:30
David Wilson 8f42a58281 docs: move Router.route() into Sphinx. 2017-10-08 16:33:04 +05:30
David Wilson b43cd31d59 docs: Add warning to preloading section. 2017-10-08 16:33:04 +05:30
David Wilson 48096ab033 docs: move Broker docstrings into Sphinx. 2017-10-08 16:33:04 +05:30
dw e2883bd553 Merge pull request #47 from moreati/cant-mock-the-rock
Add mock requirement
2017-10-07 15:25:46 +05:30
Alex Willmer 68673e4ccd Add mock requirement 2017-10-06 23:30:44 +01:00
David Wilson 7eb81a1694 docs: more getting started guide 2017-10-06 19:19:02 +05:30
David Wilson f19d18350d mitop: fix overlong command lines corrupting the followign line 2017-10-05 22:41:51 +05:30
David Wilson 686c77e901 mitop: Show new processes in bold. 2017-10-05 21:25:29 +05:30
David Wilson d800b684ef Merge branch 'module-preloading'
Not much point in keeping the docs changes separate.
2017-10-05 19:20:05 +05:30
David Wilson 0b141ade62 docs: getting started 2017-10-05 19:19:11 +05:30
David Wilson 4632c73a72 More. 2017-10-05 19:06:25 +05:30
David Wilson d00821be89 docs: way more appropriate image 2017-10-05 19:01:09 +05:30
David Wilson 6792893666 docs: more getting started 2017-10-05 18:43:12 +05:30
David Wilson 2d6b004fa0 docs: Getting started tidyups 2017-10-05 17:49:20 +05:30
David Wilson dddaa29526 docs: Get started on Getting Started 2017-10-05 17:09:59 +05:30
David Wilson b6552bb594 core: Remove unused on_shutdown attribute. 2017-10-05 15:12:18 +05:30
David Wilson dc6ed860f7 docs: fix reference to with: 2017-10-05 14:27:26 +05:30
David Wilson 320191cae2 docs: move fakessh docs into Sphinx. 2017-10-05 14:25:32 +05:30
David Wilson 2830304407 docs: move mitogen.utils docs to Sphinx. 2017-10-05 14:10:18 +05:30
David Wilson b56f848cc6 docs: fix decorator types. 2017-10-05 14:05:10 +05:30
David Wilson 2bda6ee70c docs: better io_op doc, move Side docs to Sphinx. 2017-10-05 14:02:55 +05:30
David Wilson 15492adabc docs: move BasicStream docs into Sphinx. 2017-10-05 13:48:32 +05:30
David Wilson 397ff50a58 Try to be compatible with older Docker daemons; (hopefully) closes #46 2017-10-05 05:03:57 +05:30
dw 5bdf7641df Merge pull request #45 from moreati/pytest-catchlog
Fix "hook uses deprecated __multicall__ argument" warning
2017-10-05 04:12:20 +05:30
Alex Willmer 761ac47dfe Fix "hook uses deprecated __multicall__ argument" warning
By replacing pytest-capturelog with pytest-catchlog we fix one warning
that is reported by pytest:

```
venv/local/lib/python2.7/site-packages/pytest_capturelog.py:171
'pytest_runtest_makereport' hook uses deprecated __multicall__
argument

None
pytest_funcarg__caplog: declaring fixtures using "pytest_funcarg__"
prefix is deprecated and scheduled to be removed in pytest 4.0.  Please
remove the prefix and use the @pytest.fixture decorator instead.
pytest_funcarg__capturelog: declaring fixtures using
"pytest_funcarg__" prefix is deprecated and scheduled to be removed in
pytest 4.0.  Please remove the prefix and use the @pytest.fixture
decorator instead.

-- Docs: http://doc.pytest.org/en/latest/warnings.html
```

pytest-capturelog seems to be unmaintained, the bug in question
<https://bitbucket.org/memedough/pytest-capturelog/issues/6> has been
open since July 2015. pytest-catchlog is a fork of pytest-capturelog.
2017-10-04 23:30:23 +01:00
David Wilson ba9e129848 mitop: more dead code 2017-10-05 01:16:04 +05:30
David Wilson 12c1beed10 More dead code, some comments. 2017-10-05 01:04:08 +05:30
David Wilson 4a08055352 mitop: Remove dead code 2017-10-05 01:00:16 +05:30
David Wilson d659a57d97 mitop: Remove dead code 2017-10-05 00:59:14 +05:30
David Wilson 29297643ff Import mitop example script. 2017-10-05 00:52:42 +05:30
David Wilson 8e69838b44 docs: annother barriage of cross-reference fixes. 2017-10-04 19:07:14 +05:30
David Wilson b88e68df72 docs: Fix up tons of references, document trust chain 2017-10-03 19:57:58 +05:30
David Wilson bab232f07c importer: module preloading docs 2017-10-03 18:11:35 +05:30
David Wilson 8439e889ed core: More robust shutdown
Now there is a separate SHUTDOWN message that relies only on being
received by the broker thread, the main thread can be hung horribly and
the process will still eventually receive a SIGTERM.
2017-10-03 16:35:12 +05:30
David Wilson 1784f3c83a Add test that hangs the main thread during shutdown. 2017-10-03 16:09:35 +05:30
David Wilson fa9def91f2 Implement test_aborted_on_local_context_disconnect 2017-10-03 15:54:55 +05:30
David Wilson 1f607a6292 Fix lnik. 2017-10-02 17:32:53 +05:30