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

tahoe-lafs / tahoe-lafs / 1147
95%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2016 08:08PM UTC
Jobs 1
Files 210
Run time 40min
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

pending completion
1147

push

travis-ci

Brian Warner
Merge PR#269: add when-connected-enough hook

This makes it possible for automated-upload tools (like drop-upload and
magic-folders) to be told when there are "enough" servers connected for
uploads to be successful. This should help prevent the pathological case
where the tools attempt to upload files immediately after node
startup (or before the user turns on their wifi connection), and the
node stores all the shares on itself.

This new notification is single-shot and edge-triggered: when it fires,
you know that, at some point in the past, the node *was* connected to at
least $threshold servers. However you might have lost several
connections since then. The user might turn off wifi after this fires,
causing all connections to be dropped.

In the long run, this API will change: clients will receive continuous
notifications about servers coming and going, and tools like
magic-folder should refrain from uploading during periods of
insufficient connection. It might be as simple as checking the size of
the connected server list when a periodic timer goes off, or something
more responsive like an edge-triggered "upload as soon as you can"
observer.

74 of 74 new or added lines in 5 files covered. (100.0%)

50513 of 54670 relevant lines covered (92.4%)

0.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/allmydata/frontends/drop_upload.py
1
100.0
src/allmydata/test/test_web.py
2
100.0
src/allmydata/storage_client.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/allmydata/immutable/checker.py
1
100.0
src/allmydata/mutable/servermap.py
1
100.0
src/allmydata/test/test_mutable.py
Jobs
ID Job ID Ran Files Coverage
1 1147.1 26 Apr 2016 08:08PM UTC 0
92.4
Travis Job 1147.1
Source Files on build 1147
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1147
  • 5d6fe5ab on github
  • Prev Build on master (#1140)
  • Next Build on master (#1148)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc