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

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

Build:
Build:
LAST BUILD BRANCH: 8.3.0
DEFAULT BRANCH: master
Ran 06 Nov 2026 04:40PM UTC
Jobs 8
Files 19
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest - 42254452267.1 06 Nov 2026 04:40PM UTC 19
88.7
GitHub Action Run
2 run-3.13-ubuntu-latest - 42254452267.2 06 Nov 2026 04:41PM UTC 19
88.7
GitHub Action Run
3 run-3.14-windows-latest - 42254452267.3 06 Nov 2026 04:42PM UTC 19
80.42
GitHub Action Run
4 run-3.11-windows-latest - 42254452267.4 06 Nov 2026 04:41PM UTC 19
80.42
GitHub Action Run
5 run-3.12-windows-latest - 42254452267.5 06 Nov 2026 04:41PM UTC 19
80.42
GitHub Action Run
6 run-3.13-windows-latest - 42254452267.6 06 Nov 2026 04:42PM UTC 19
80.42
GitHub Action Run
7 run-3.11-ubuntu-latest - 42254452267.7 06 Nov 2026 04:40PM UTC 19
88.7
GitHub Action Run
8 run-3.14-ubuntu-latest - 42254452267.8 06 Nov 2026 04:41PM UTC 19
88.7
GitHub Action Run
Source Files on build 42254452267
  • Tree
  • List 19
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42254452267
  • a05c0f87 on github
  • Prev Build on master (#41902541872)
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