summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-29[feature] add bandwidth throttling to the clientdrebs
Intercept the creation of the protocol factory in the HTTP connection pool to use twisted.protocols.policies.ThrottlingFactory and control the incoming and outgoing bandwidth. The factory only controls one connection, so when throttling we limit the number of connections of the pool to one per host. This way, throttling happens in a per-host basis. Closes: #8931
2017-11-22[refactor] simplify decorated test parametersVictor Shyba
2017-11-22[test] improve isolation by avoiding _all_dbsVictor Shyba
Accessing _all_dbs slows down the test and open possibilites for heisenbugs where some old leftover database can change code behavior. -- Resolves: #9001
2017-11-22[refactor] extract list dbs methodVictor Shyba
2017-11-22[refactor] remove unused parameterVictor Shyba
2017-11-22[pkg] update changelog0.10.5drebs
2017-11-22[pkg] update debian changelogdrebs
2017-11-22[pkg] bump sphinx release infodrebs
2017-11-22[test] avoid collision when running fs backend tests in paralleldrebs
Closes: #9000
2017-11-22[bug] remove SOLEDAD_COUCH_URL test envVictor Shyba
It was None for parallel tests and there is already a mechanism in place for setting this URL, which avoids it being set in two different places.
2017-11-22[feature] make logs less noisy by monkey-patching ↵drebs
twisted.internet.protocol.Factory
2017-11-22[bug] properly log missing schema version in config docdrebs
2017-11-22[bug] ensure shutdown happens only after reactor startdrebs
2017-11-22[bug] fix logging while checking CouchDB schema versions on server startupdrebs
2017-11-21[bug] use os._exit to ensure a clean log on startup failuredrebs
2017-11-21[docs] add entry for next release to changelogKali Kaneko
2017-11-20[test] avoid failing when there's no couch_url in environment variabledrebs
2017-11-20[bug] log and exit on server startup errorsdrebs
Some errors during server startup could leave the server in a zombie state (running, but not listening). This commit makes sure the server stops if errors occur during deferreds created on server startup. Closes #8997.
2017-11-20[bug] use reactor.stop() to exit when server startup checks faildrebs
Our current use of sys.exit(20) to stop the server when startup checks fail affects logging in a bad way. This commit uses a system event trigger to exit with the desired status code when startup checks fail. Closes: #8996
2017-11-20[test] always use a tempdir for server fixture config filedrebs
When starting up a Soledad Server through the use of a fixture in tests, a config file is created with the options needed for that test. As the config file was being created in /etc and not being removed, this was influencing servers started by other tests that don't use that fixture. By always using a temporary directory in the server fixture, we make sure that the config file is used only for that test and is removed after the test is finished. Closes: #8995
2017-11-19[test] use environment to pass the couch_url to server TAC testdrebs
2017-11-19[feature] allow setting couchdb url from environmentdrebs
2017-11-19[test] TAC test now checks for server (with retries)drebs
After we fixed the server to wait for checks before listening on ports (201ef7a9b979f8c8efaedbe542c631944d8956f4), the TAC test started failing randomly in our CI, probably because sometimes the server takes more than 1 second to startup in the CI setup (docker in a vm). This commit adds a check with retry, and so the test will retry 10 times with an interval of 1 second before failing.
2017-11-19[benchmarks] pin elasticsearch-py version to avoid TLS certs bugdrebs
elasticsearch-py 6.0.0 introduced a TLS cert verification bug: https://github.com/elastic/elasticsearch-py/issues/669 That bug affects our benchmarks ci pipeline: https://0xacab.org/leap/soledad/issues/8993#note_128667 This commit only pins the version of elasticsearch-py used by benchamarks to avoid that bug. This pinning should probably be removed when the next version of elasticsearch-py is released. Closes #8993.
2017-11-15[pkg] update debian changelog0.10.4drebs
2017-11-15[pkg] bump sphinx release infodrebs
2017-11-15[pkg] update changelogdrebs
2017-11-14[refactor] factor server twisted app to it's own .py filedrebs
2017-11-14[style] comment fix and variable renamingdrebs
2017-11-14[bug] use custom logger everywhere in serverdrebs
2017-11-14[bug] remove unneeded delayed initialization of couch statedrebs
2017-11-14[bug] wait for checks before running serversdrebs
2017-11-14[refactor] rename entrypoints to match design docsdrebs
2017-11-14[pkg] make debian package report the correct versiondrebs
The Soledad python source currently makes use of versioneer to calculate versions dynamically and hardcode versions upon creation of the python package. Unfortunatlly, this procedure does not behave well with debian packaging, and we need to manually generate/replace the _version.py file so the code that ends up in the debian package reports the correct version of the software. This commit adds a script to replace the _version.py file with a static one and rules during packaging to run that script during preparation stage of debian helper.
2017-11-14[pkg] add man page for soledad-serverdrebs
2017-11-14[pkg] add binary command for soledad-serverdrebs
2017-11-13[style] fixes from code reviewVictor Shyba
2017-11-13[feature] support unsynced local_only blobsVictor Shyba
Adds the ability to have document that wont be synced. This enables applications to use soledad to store temporary blobs that should be discarded later instead of unnecessarily keeping the sync loop busy. -- Resolves: #8819
2017-11-13[feature] apply deletions from serverVictor Shyba
Sync method to propagate deletions in batch locally. -- Resolves: #8961
2017-11-13[feature] list deleted files from serverVictor Shyba
-- Related: #8961
2017-11-13[bug] update pending_upload from server listingVictor Shyba
We were doing it for downloads, but not for uploads.
2017-11-10[bug] mark deletion as pending_delete if offlineVictor Shyba
This commit creates a PENDING_DELETE sync status which can be used to keep track of whats deleted locally in order to propagate to server later. -- Related: #8961
2017-11-09[bug] retry on sqlcipher db timeouts for blobsdrebs
Closes: #8981.
2017-11-09[pkg] add man page for user db creation scriptdrebs
Closes: #8895
2017-11-09[pkg] make user db argument mandatory in user db creation scriptdrebs
2017-11-09[pkg] remove unused --migrate-all option from user db creation scriptdrebs
2017-11-09[tests] remove revision when copying couch dbsdrebs
2017-11-06[ci] do not update cache when packagingdrebs
2017-11-03[doc] improve blobs http api descriptiondrebs
2017-11-03[doc] move blobs data structure info to blobs sync sectiondrebs