Commit Graph

7158 Commits

Author SHA1 Message Date
meejah
05f48c3601 Various cleanups, fixes and improvements
Squashed all commits that were meejah's between
30d68fb499f300a393fa0ced5980229f4bb6efda
and
33c268ed3a8c63a809f4403e307ecc13d848b1ab
On the branch meejah:1382.markberger-rewrite-rebase.6 as
per review
2017-06-05 16:31:41 -06:00
David Stainton
19c5bbb43b Fix test test_lost_servers
Remove old hypothesis tests

Fix allmydata.test.cli.test_cli.Errors.test_get

this was broken due to differing share placements
whereas we need to allow this.

Fix test_5_overdue_immutable

This change makes the test not depend on the value
of PYTHONHASHSEED.

Revert "Fix test_5_overdue_immutable"

This reverts commit 5f3696d9a53e7df8781a2c463c7112282397cd69.

fix test to actually hang the first 5 *servers*

sort keys for stable output

use file-context-managers

remove probably-unneeded assert (that fails sometimes)

another non-deterministic test?
2017-06-05 16:26:46 -06:00
meejah
56f6dbd363 distribute only to read/write peers
correctly calculate happiness

guard with except

fix tests, and happiness calculation

remove debug

fix placements to None

happiness calc shouldn't have to filter None

WIP fixing some tests etc
2017-06-05 16:26:46 -06:00
David Stainton
a611673934 Make a correction to a hypothesis test comment
Comment out all debug print statements

Add hypothesis tests for the old servers of happiness implementation

Attempt to speed up meejah's servers of happiness

WIP

Fix test_calc_happy

WIP
2017-06-05 16:26:46 -06:00
meejah
b6d9945b95 default answer for every share
refactor hypothesis to be 'pytest style' and add another one

get rid of 'shares->set(1 thing)' in generate_mappings return

Add a unittest hypothesis came up with

fix tests since we return peers, not sets-of-1-peer

add more debug

add a unit-test that's like test_problem_layout_ticket_1128

fix bug

add a note

fix utest

unit-test for bigger numbers

re-insert markberger code for testing

results of pairing with david
2017-06-05 16:26:46 -06:00
David Stainton
e68b331bb1 Add servers of happiness hypothesis testing
Fix happiness test var names

Remove unused imports

Get rid of trailing whitespace
2017-06-05 16:26:46 -06:00
meejah
ef17ef2c62 fix happiness calculation
unit-test for happiness calculation

unused function

put old servers_of_happiness() calculation back for now

test for calculate_happiness

remove some redundant functions
2017-06-05 16:26:46 -06:00
David Stainton
42011e775d Make correction to docstring for Tahoe2ServerSelector's _handle_existing_response
Add comments 10 and 8 from the servers of happiness spec

Fix bug in _filter_g3 for servers of happiness

Remove usage of HappinessUpload class

here we modifying the PeerSelector class.
we make sure to correctly calculate the happiness value
by ignoring keys who's value are None...

Remove HappinessUpload and tests

Replace helper servers_of_happiness

we replace it's previous implementation with a new
wrapper function that uses share_placement
2017-06-05 16:26:46 -06:00
meejah
adb9a98383 WIP: refactoring (squahshed all meejah's commits) 2017-06-05 16:26:46 -06:00
Brian Warner
211dc602fa updates from summit 2017-06-05 16:26:46 -06:00
Mark Berger
17cff7a176 Implements 'Servers of Happiness' algorithm for upload
This is Mark Berger's original commits, from ticket #1382
2017-06-05 16:26:46 -06:00
Brian Warner
42d8a79c9d Merge PR419: update docs: OpenSolaris->Illumos
closes #419
2017-06-05 10:35:59 +01:00
tpltnt
2af8e69750 OpenSolaris is discontinued, naming illumos 2017-06-05 10:35:37 +01:00
meejah
b0e291b431 remove comment to kick builders 2017-04-26 15:27:06 -06:00
meejah
a5095bbce5 Merge pull request #414 from tpltnt/enforce-py2-setup
enforce Python 2.7 during installation
2017-04-25 14:57:01 -06:00
tpltnt
c0888de394 raise RuntimeError if not Python 2 2017-04-21 00:36:16 +02:00
meejah
7376e563ec Merge pull request #411 from tpltnt/packages-hint
added instruction for missing dependencies
2017-04-18 12:17:08 -06:00
tpltnt
864a24ed40 explicit upgrade of setup tools 2017-04-12 22:56:33 +02:00
tpltnt
ad1b7a3dc3 resolved confict 2017-04-11 11:04:50 +02:00
Brian Warner
2932cc27a6 Merge PR409: update I2P dependencies
closes tahoe-lafs/tahoe-lafs#409
2017-04-10 12:15:10 -07:00
str4d
f139f46803 Use txi2p 0.3.2 to work around SSL issue
See https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2861#comment:14
2017-04-10 12:15:00 -07:00
str4d
9b53cc7676 Specify foolscap[i2p] >= 0.12.6 in setup.py
Missing from be6e0a9c29
2017-04-10 12:15:00 -07:00
Brian Warner
bfae038d46 Merge PR410: docs improvement
closes #410
2017-04-10 12:03:50 -07:00
tpltnt
5a7790b2da explicit Python 2.7 virtualenv 2017-04-10 12:01:33 -07:00
Brian Warner
bf0149f7d7 Merge PR412 2017-04-10 11:59:12 -07:00
Brian Warner
f24681bfdc simplify rendering of path to tahoe.cfg 2017-04-10 11:56:33 -07:00
Brian Warner
0599adf87b Merge PR407
closes #407
2017-04-10 11:37:18 -07:00
David Stainton
366fe039e8 magic-folder: change stopService to call MultiService.stopService 2017-04-10 11:36:58 -07:00
tpltnt
63bcc07e27 explicit path to tahoe.cfg in creation message 2017-04-07 16:59:17 +02:00
tpltnt
18385cfd2e added installation instruction for missing dependencies 2017-04-06 23:18:13 +02:00
meejah
4f1dd95963 Add a 'tahoe status' command
This required also fixing the JSON output from
the "recent and active operations" page.
2017-04-04 12:48:41 -06:00
Brian Warner
2ceea6df0d Merge PR406: use @implementer instead of implements
This also updates several classes to be new-style (inheriting from 'object').
2017-03-23 19:25:56 -07:00
Brian Warner
c1ed556d40 Merge PR405: use stdlib "json" instead of simplejson
refs ticket:2766
2017-03-23 19:20:02 -07:00
Brian Warner
0abcbe3339 update some comments where plain cut+paste was confusing 2017-03-23 19:19:00 -07:00
meejah
49ae2c5eb7 use @implementer instead of implements
Also, derive some more things from 'object'
2017-02-27 11:01:30 -07:00
meejah
031a88c25f simplejson -> json 2017-02-23 15:21:36 -07:00
Brian Warner
bb782b0331 Merge PR400: add "tahoe list-aliases --readonly-uri"
Closes tahoe-lafs/tahoe-lafs:400
2017-02-21 10:09:31 -08:00
meejah
093945db22 set Referrer-Policy in one place 2017-02-13 16:07:41 -07:00
meejah
a9521b89a6 --readonly-uri for 'tahoe list-aliases' 2017-01-19 15:40:09 -07:00
Brian Warner
ce47f6aaee NEWS/INSTALL/relnotes: release 1.12.1 2017-01-18 16:28:23 -08:00
Brian Warner
9da041cf0e setup.py/MANIFEST.in: include missing files
Oops, we didn't include test.web in the previous release tarball, or the
tests under integration/ .
2017-01-18 16:28:23 -08:00
Brian Warner
6b373204d0 prep NEWS for 1.12.1 2017-01-17 20:15:10 -05:00
Brian Warner
7453bdae84 Merge PR394: pass I2P keyfile to foolscap
closes tahoe-lafs/tahoe-lafs#394
2017-01-17 20:13:29 -05:00
Brian Warner
be6e0a9c29 deps: we need foolscap-0.12.6 for the new I2P API 2017-01-17 20:13:05 -05:00
Brian Warner
6db7686a8f update tests to match 2017-01-17 20:12:55 -05:00
str4d
998af5c26e Pass I2P keyfile to foolscap
If no session management is performed, txi2p starts a process-wide session the
first time a connection (client or server) is opened; all subsequent connections
use that session and its configuration properties.

This commit ensures that the same properties are passed to both client and
server endpoints, so that the correct I2P Destination is started regardless of
whether the first connection made by Tahoe-LAFS is for a client or server.

Closes #2858.
2017-01-17 20:12:32 -05:00
Brian Warner
5e1d464a65 Merge branch PR392
closes #392
closes ticket:2860
2017-01-10 16:30:18 -08:00
Brian Warner
ee58637813 fix syntax (tcp=disabled, not =none), add test 2017-01-10 16:30:04 -08:00
David Stainton
3c22a3ce50 Set tcp = tor only if txtorcon is imported
for i2p this means tcp = none as long as txtorcon is not imported
2017-01-10 16:30:04 -08:00
Brian Warner
f42d85b453 Merge branch 'pr393' 2017-01-09 16:47:41 -08:00