• 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.2
branch: 8.2.2
CHANGE BRANCH
x
Reset
  • 8.2.2
  • 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.3
  • 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

29 Oct 2026 05:48PM UTC coverage: 88.564% (+2.2%) from 86.375%
40925226768

push

github

web-flow
Fix SFTP path checks hiding a failed reconnect, restore the SFTP tests (#175)

* Port the skipped SFTP tests to pytest

mkdir, rm_rf, upload and download were tested only by skipped tests whose
mocks no longer matched the code (os.path and os.walk instead of pathlib).

- Rewrite them as pytest functions on the shared conftest fixtures.
- Use a temporary local tree instead of mocking the local filesystem.
- Cover upload into a remote directory and download of a missing path and
  of a directory.

* Raise a failed reconnect from the SFTP path checks

Since 8.2.1 a closed client reconnects before opening SFTP, but exists,
isfile, isdir and islink did that inside the try that maps OSError to
False. A reconnect that failed with a socket error (connection refused,
host unreachable) was therefore reported as a missing path, and a caller
skipped a cleanup or an upload without any error.

- Open the session before the try, so only an error from lstat becomes False.
- Document the raised exceptions in the docstrings and in SSHClient.rst.

* Create the remote directory when uploading a directory

upload() copied the contents of a local directory but never created the
remote directory they go into. A target that did not exist yet was
created only as a side effect of mkdir -p for a subdirectory, so the
upload failed when a file came first, and an empty directory produced
nothing.

- Create the target directory before copying what is inside the source.
- Test upload into an existing remote directory and to a new path.

344 of 442 branches covered (77.83%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 2 files covered. (100.0%)

1747 of 1919 relevant lines covered (91.04%)

6.95 hits per line

Relevant lines Covered
Build:
Build:
1919 RELEVANT LINES 1747 COVERED LINES
6.95 HITS PER LINE
Source Files on 8.2.2
  • Tree
  • List 19
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40925226768 8.2.2 Fix SFTP path checks hiding a failed reconnect, restore the SFTP tests (#175) * Port the skipped SFTP tests to pytest mkdir, rm_rf, upload and download were tested only by skipped tests whose mocks no longer matched the code (os.path and os.walk... push 29 Oct 2026 05:52PM UTC web-flow github
88.56
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