• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

python-useful-helpers / exec-helpers
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: 8.3.0
DEFAULT BRANCH: master
Repo Added 23 Mar 2018 04:58PM UTC
Files 19
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH 8.2.3
branch: 8.2.3
CHANGE BRANCH
x
Reset
  • 8.2.3
  • 1.1.1
  • 1.1.2
  • 1.10.0
  • 1.11.0
  • 1.11.1
  • 1.12.0
  • 1.12.1
  • 1.12.2
  • 1.13.0
  • 1.14.0
  • 1.14.1
  • 1.14.2
  • 1.14.3
  • 1.2.0
  • 1.2.1
  • 1.2.2
  • 1.3.0
  • 1.3.1
  • 1.3.2
  • 1.3.3
  • 1.3.4
  • 1.3.5
  • 1.3.6
  • 1.3.7
  • 1.3.8
  • 1.4.0
  • 1.4.1
  • 1.9.0
  • 1.9.1
  • 1.9.2
  • 1.9.3
  • 1.9.4
  • 1.9.5
  • 1.9.6
  • 1.9.7
  • 1.9.8
  • 1.9.9
  • 2.0.0
  • 2.0.1
  • 2.0.2
  • 2.1.0
  • 2.1.1
  • 2.1.2
  • 2.1.3
  • 2.10.0
  • 2.11.0
  • 2.11.1
  • 2.11.2
  • 2.11.3
  • 2.12.0
  • 2.12.1
  • 2.12.2
  • 2.13.0
  • 2.14.0
  • 2.2.0
  • 2.9.0
  • 2.9.1
  • 2.9.2
  • 2.9.3
  • 2.9.4
  • 2.9.5
  • 2.9.6
  • 3.0.0
  • 3.1.0
  • 3.1.1
  • 3.1.2
  • 3.1.3
  • 3.1.4
  • 3.1.5
  • 3.2.0
  • 3.2.1
  • 3.3.0
  • 3.3.1
  • 3.3.2
  • 3.4.0
  • 3.4.0.post1
  • 3.4.0.post2
  • 3.5.0
  • 3.5.1
  • 3.5.2
  • 3.5.3
  • 3.5.4
  • 3.5.5
  • 3.5.7
  • 3.6.0
  • 3.7.0
  • 4.0.0
  • 4.0.1
  • 4.1.0
  • 4.1.1
  • 4.1.3
  • 4.1.4
  • 4.1.5
  • 4.1.6
  • 4.1.7
  • 4.2.0
  • 4.3.0
  • 4.3.1
  • 4.4.0
  • 5.0.0
  • 5.1.0
  • 5.1.1
  • 5.2.0
  • 5.2.1
  • 5.2.2
  • 5.2.3
  • 5.2.4
  • 6.0.0a1
  • 6.0.0a2
  • 6.0.0b1
  • 6.0.0b2
  • 6.0.0b3
  • 6.0.0b4
  • 6.0.0b5
  • 6.0.0b6
  • 6.0.0rc1
  • 6.0.0rc2
  • 6.0.0rc3
  • 6.1.0
  • 6.1.1
  • 6.1.2
  • 6.1.3
  • 6.1.4
  • 6.1.5
  • 6.1.6.post0
  • 7.0.0
  • 7.0.1
  • 7.0.2
  • 7.0.3
  • 7.0.4
  • 7.0.5
  • 7.4.0
  • 8.0.0
  • 8.0.0.post0
  • 8.0.1
  • 8.1
  • 8.1.0
  • 8.1.1
  • 8.1.2
  • 8.1.3
  • 8.1.4
  • 8.2.0
  • 8.2.1
  • 8.2.2
  • 8.3.0
  • WIP_sshconfig
  • backport-ssh-fixes-8.1
  • caching
  • ci-8.1-python39-ubuntu-24.04
  • conn_chain
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/download-artifact-4.3.0
  • dependabot/github_actions/actions/download-artifact-5.0.0
  • dependabot/github_actions/actions/download-artifact-6.0.0
  • dependabot/github_actions/actions/download-artifact-7.0.0
  • dependabot/github_actions/actions/download-artifact-8.0.2
  • dependabot/github_actions/actions/setup-python-6
  • dependabot/github_actions/actions/setup-python-7
  • dependabot/github_actions/actions/upload-artifact-5
  • dependabot/github_actions/actions/upload-artifact-6
  • fix-mask-unmatched-groups
  • fix-sftp-after-close-v2
  • fix-sftp-check-hides-reconnect-failure
  • fix-ssh-connection-defects
  • hide-exec-helpers-timeout-traceback
  • masked-arg
  • master
  • penguinolog-patch-1
  • py27
  • py34
  • py35
  • pyup-config
  • relax_typing_req
  • wip_ssh_proxy_command

06 Nov 2026 01:43PM UTC coverage: 88.703% (+0.09%) from 88.617%
42254452267

push

github

web-flow
Fix SSH jump timeout and leak, SFTP race, log_mask_re TypeError (#178)

* Fix open_execute_context rejecting log_mask_re

Since 8.2.1 open_execute_context passed log_mask_re=self.log_mask_re next to
**kwargs, so a caller passing log_mask_re got "multiple values for keyword
argument". The per-call mask of execute() also never reached the context repr.

- open_execute_context takes a keyword-only log_mask_re, applied after the
  instance rule, in SSHClient, Subprocess and async Subprocess.
- ExecuteContext accepts a tuple of rules and applies them in turn.
- execute(), the async execute() and SSHClient.execute_together pass their
  log_mask_re to open_execute_context.

* Limit the SSH jump channel by connect_timeout

connect_timeout was not passed to Transport.open_channel in the ProxyJump
chain and in proxy_to, so paramiko's 3600 s channel default applied while
the client lock is held.

- open_channel gets timeout=connect_timeout in both places.
- connect_timeout=NaN is rejected: every comparison with NaN is false, so
  it passed the check and disabled the limits.
- The docstring and the Sphinx page describe the timeout per wait; the old
  "3 times the timeout plus 6 s" bound did not hold with several keys or
  authentication methods.

* Close the jump host connections of an SSH chain

After a ProxyJump chain connected, only the client of the target was kept,
so close() and reconnect() left the jump host transports and a ProxyCommand
process running.

- The jump host clients are kept and closed after the target, the one
  nearest to it first, in close() and __del__.
- A jump host whose close fails is logged, and the rest are still closed.

* Open the SSH SFTP channel once from concurrent threads

_sftp checked for an open channel outside the lock, so two threads after
close() could both open one, and one of them was never closed.

- __connect_sftp repeats the check under the lock and returns the channel.
- _sftp reads the attribute once, so a concurren... (continued)

348 of 446 branches covered (78.03%)

Branch coverage included in aggregate %.

34 of 34 new or added lines in 3 files covered. (100.0%)

1772 of 1944 relevant lines covered (91.15%)

6.96 hits per line

Relevant lines Covered
Build:
Build:
1944 RELEVANT LINES 1772 COVERED LINES
6.96 HITS PER LINE
Source Files on 8.2.3
  • Tree
  • List 19
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
42254452267 8.2.3 Fix SSH jump timeout and leak, SFTP race, log_mask_re TypeError (#178) * Fix open_execute_context rejecting log_mask_re Since 8.2.1 open_execute_context passed log_mask_re=self.log_mask_re next to **kwargs, so a caller passing log_mask_re got "m... push 06 Nov 2026 04:40PM UTC web-flow github
88.7
See All Builds (763)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc