Commit Graph

3577 Commits (3bdd3e237a95ae8a88681a46bfe97ccc4ed1204b)
 

Author SHA1 Message Date
David Wilson 70ff4b674c parent: discard cancelled events in TimerList.get_timeout().
Otherwise get_timeout() keeps broker alive via keep_alive() for a
cancelled timer during shutdown.
5 years ago
David Wilson 5aca9d6c3f core: split out iter_split() for use in parent.py. 5 years ago
David Wilson f43f886c37 parent: various style cleanups, remove unused function. 5 years ago
David Wilson 3aded0ca95 issue #170: add TimerList docstrings. 5 years ago
David Wilson a5536c3514 core: eliminate some quadratric behaviour from IoLogger
This is the same problem as used to afflict Stream: large input buffers
containing many small messages cause intense string copying. This
eliminates the worst of it.
5 years ago
David Wilson 77564fdfe2 issue #170: update Changelog; closes #170. 5 years ago
David Wilson 870e0b6e2d issue #170: add timers to internals.rst. 5 years ago
David Wilson 2fbc77a155 issue #170: implement timers. 5 years ago
dw 4fedf88d38
Merge pull request #595 from jordemort/buildah
Add buildah transport
5 years ago
Jordan Webb d71bdd1694
Add buildah test and stub 5 years ago
Jordan Webb 1a02a86331
Add buildah transport 5 years ago
David Wilson de12097bc4 Merge remote-tracking branch 'origin/ci280'
* origin/ci280:
  ci: Another round of fixes for random Ansible UI breakage in 2.7/2.8
  ci: work around various broken aspects of Travis VM image
  Use virtualenv Python for stub connections to workaround problem
  ci: Ansible 2.8 requires Python 2.7.
  tests: add 2.8 format async error timeout message
  ansible: prevent tempfile.mkstemp() leaks.
  update gitignore again
  ci: try bumping more Travis jobs to Ansible 2.8.
  add .*.pid to gitignore
  tests: allow running without hdrhistograms library.
  issue #578: update Changelog.
  travis: exclude docs-master from CI
  issue #589: ensure real FileService/PushFileService are in the docs
  issue #589: ensure real FileService/PushFileService are in the docs
  docs: add new contributor entry
  issue #589: remove outdated/incomplete examples
  issue #589: split services example out and make it run.
5 years ago
David Wilson ee7dae7514 ci: Another round of fixes for random Ansible UI breakage in 2.7/2.8 5 years ago
David Wilson d981a382c9 ci: work around various broken aspects of Travis VM image
- Symlink broken Ubuntu Python package pieces back together. See many
  Google hits about this issue.
- Remove apt sources that can no longer be updated.
5 years ago
David Wilson ad5a80f200 Use virtualenv Python for stub connections to workaround problem
../data/stubs/stub-kubectl.py exec -it localhost -- /usr/bin/python -c "...":

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    LookupError: unknown encoding: base64

It's not clear why this is happening. "stub-kubectl.py" is executed with
the 2.7 virtualenv, while the exec() that happens inside stub-kubectl
was for "/usr/bin/python".

That second Python can't find chunks of its stdlib:

    stat("/usr/lib/python2.7/encodings/base64", 0x7ffde8744c60) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64.py", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/lib/python2.7/encodings/base64.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
    write(2, "Traceback (most recent call last):\n", 35) = 35
    write(2, "  File \"<string>\", line 1, in <module>\n", 39) = 39
5 years ago
David Wilson ab9a80cfd4 ci: Ansible 2.8 requires Python 2.7. 5 years ago
David Wilson 08e7fe4f80 tests: add 2.8 format async error timeout message 5 years ago
David Wilson 7ae926b325 ansible: prevent tempfile.mkstemp() leaks.
This avoids a leak present in Ansible 2.7.0..current HEAD, and all
similar leaks.

See ansible/ansible#57327.
5 years ago
David Wilson 2f05b93a08 update gitignore again 5 years ago
David Wilson 73a87d425d ci: try bumping more Travis jobs to Ansible 2.8. 5 years ago
David Wilson a766fd3be5 add .*.pid to gitignore 5 years ago
David Wilson 418fc15e80 tests: allow running without hdrhistograms library. 5 years ago
David Wilson 1a32a79fa6 issue #578: update Changelog. 5 years ago
David Wilson 95fd9b815c travis: exclude docs-master from CI 5 years ago
David Wilson 8fc491ac43 issue #589: ensure real FileService/PushFileService are in the docs 5 years ago
David Wilson 874e75276f issue #589: ensure real FileService/PushFileService are in the docs 5 years ago
David Wilson 687d4033d5 docs: add new contributor entry 5 years ago
David Wilson 2d083d19df issue #589: remove outdated/incomplete examples 5 years ago
David Wilson 06690901e4 issue #589: split services example out and make it run. 5 years ago
David Wilson 3616385af4 Merge remote-tracking branch 'origin/issue593'
* origin/issue593:
  issue #593: expose configurables for SSH keepalive and increase the default
5 years ago
David Wilson 3620fce071 issue #593: expose configurables for SSH keepalive and increase the default 5 years ago
David Wilson 823c18ec09 Merge remote-tracking branch 'origin/issue591'
* origin/issue591:
  issue #591: fix test for Ansible 2.3.
  issue #591: ansible: restore CWD prior to AnsibleModule initialization.
5 years ago
David Wilson e90c05dc9d issue #591: fix test for Ansible 2.3. 5 years ago
David Wilson 0b7fd3f290 issue #591: ansible: restore CWD prior to AnsibleModule initialization. 5 years ago
David Wilson 92ac716f0d Merge remote-tracking branch 'origin/issue590'
* origin/issue590:
  issue #590: disable distro test on vanilla
  ci: Ansible 2.8 jobs aren't running against all host types.
  tests: Py3.x fix.
  issue #590: fix test for <2.8 Ansibles.
  tests: Py3.x fix.
  issue #590: actually run Ansible test.
  tests: Py3.x fix.
  master: sysconfig did not exist until 2.7.
  tests: rearrange test modules again, they're used in multiple places
  module_finder_test: mask one more difference between unit2 vs. direct start
  master: fix _is_stdlib_path() failure on Ubuntu.
  issue #590: add dummy package for new test.
  issue #590: add FinderMethod docstrings.
  issue #590: update comment to indicate the hack is permanent
  issue #590: move example modules to module_finder/, fix/add tests
  issue #590: refactor ModuleFinder and teach it a new special case.
  issue #590: Ansible test for module_utils.distro use.
  issue #590: teach importer to handle self-replacing modules
5 years ago
David Wilson fe7c3610ff issue #590: disable distro test on vanilla 5 years ago
David Wilson c1d763f929 ci: Ansible 2.8 jobs aren't running against all host types. 5 years ago
David Wilson f1287e6e9a tests: Py3.x fix. 5 years ago
David Wilson a1f2ec222d issue #590: fix test for <2.8 Ansibles. 5 years ago
David Wilson 90105e2031 tests: Py3.x fix. 5 years ago
David Wilson e94200aeb9 issue #590: actually run Ansible test. 5 years ago
David Wilson 50cdf63c27 tests: Py3.x fix. 5 years ago
David Wilson ed8acb5153 master: sysconfig did not exist until 2.7. 5 years ago
David Wilson 2f29f3e8e6 tests: rearrange test modules again, they're used in multiple places
They're back on sys.path.
5 years ago
David Wilson 2f68a5a660 module_finder_test: mask one more difference between unit2 vs. direct start 5 years ago
David Wilson 5eb10aacef master: fix _is_stdlib_path() failure on Ubuntu. 5 years ago
David Wilson cf1e7129a7 issue #590: add dummy package for new test. 5 years ago
David Wilson 72ab917c89 issue #590: add FinderMethod docstrings. 5 years ago
David Wilson 4f23f0bec1 issue #590: update comment to indicate the hack is permanent 5 years ago
David Wilson c1db0d3858 issue #590: move example modules to module_finder/, fix/add tests 5 years ago