Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

excessive warning for files of size 0

Open
#391 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
devops

Research direction

Locate the transfer_summarizer implementation and its tests, then read how it calculates percentages for zero-sized files. Reproduce the warning shown in the issue and verify that an empty file is treated as 100% without producing an excessive warning.

Written by the indexing model from the issue text.

Description

confirmed bug help wanted

transfer_summarizer produces a warning for files of size zero:

Error calculating percentage 0/0, is foo empty?

My feeling is that this warning is excessive as it implies that a file of size 0 is some kind of problem. Sshkit's output would be a bit less noisy if it just special-cased the percentage for files of size zero as 100%.

Dominant language
Ruby
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from capistrano/sshkit

All issues in capistrano/sshkit

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.