summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* feat(test): separate timeoutsfix/571/increase-test-timeoutJan Lehnardt2017-06-031-1/+2
|
* chore(test): increase test timeout #571Jan Lehnardt2017-06-031-1/+1
|
* add node count handling to ./dev/runRobert Kowalski2017-06-031-4/+5
|
* bump documentation refJoan Touzet2017-06-031-1/+1
|
* JS test: wait even longer for restartServer on slow VMsJoan Touzet2017-06-021-2/+2
|
* Remove another invalid post-2.0 test case (ddoc_cache related)Joan Touzet2017-06-021-20/+0
| | | | | | | | | | | | This test case is failing for the same reason as the failures in #559, namely a GET on a _show, a PUT to the _show's ddoc to change the _show function, and a subsequent GET on the same _show that returns a result that is seemingly outdated. Late ddoc_cache eviction is still the problem; setting ddoc_cache max_objects to 0 ensures this test always passes. Based on the discussion in #559 I am deleting this test as well, direct on master with approval from @janl and @davisp.
* Disable unstable JS _show ETag testJoan Touzet2017-06-022-34/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The full discussion is in #559, but here is a summary. Through instrumentation of ddoc_cache and ets_lru I suspect that this is caused by cache eviction happening after the second GET. While I didn't instrument exactly where the GET occurs it's clear that it's fairly late, certainly after the PUT 201 is returned, and likely after the subsequent GET actually reads from ddoc_cache. After applying a change to allow me to completely disable the ddoc_cache (-ddoc_cache max_objects 0 in vm.args) I ran the test on a loop overnight, and the test never failed (>1000 executions). Previously the test would fail every 20-30 executions. TL;DR: we can't guarantee immediate ddoc_cache eviction on a ddoc update, even for a single .couch file on a single node. (For obvious reasons we definitely can't guarantee this in a cluster configuration.) I will document this as a backwards compatibility change in 2.0 and forward with a separate checkin to couchdb-documentation. Thanks to @rnewson @janl and @davisp for helping track this one down! This checkin also includes an improvement to the output when a JS test fails a notEquals assertion. Closes #559
* bump ets_lru dependencyJoan Touzet2017-06-021-1/+1
|
* Allow ddoc_cache to be fully disabledJoan Touzet2017-06-021-3/+3
|
* Improve JS test harness restartServer() support fnJoan Touzet2017-06-022-35/+28
| | | | | | | | | | | | restartServer() is still erroring out sometimes in Travis/Jenkins. This PR both bumps the timeout to 15s as well as changes the detection mechanism for restart to look for the uptime in _system to reset to a low number. This PR also removes the eclipsed redundant restartServer() definition in couch_test_runner.js. Closes #553
* Notify couch_index_processes on all shards when ddoc updatedMayya Sharipova2017-06-023-0/+183
| | | | | | | | | | | Before when a design doc is updated/deleted, only one couch_index process was notified - the one which shard contained a design doc. couch_index processes from other shards still continued to exist, and indexing activities for these processes were still be going on. The patch notifies couch_index_processes on all shards COUCHDB-3400
* couchup rebuild timeout must be passed as a floatJoan Touzet2017-06-011-1/+1
|
* Merge branch '3417-add-compaction-logging'Tony Sun2017-05-312-4/+16
|\ | | | | | | COUCHDB-3417
| * add compaction logging3417-add-compaction-loggingTony Sun2017-05-302-4/+16
| | | | | | | | | | | | | | | | To predict future compaction results, we log pre-compaction and post-compaction file sizes. These log results will be used as data points for regression analysis. COUCHDB-3417
* | attempt to stabilise users_db_security.jsJoan Touzet2017-05-311-0/+1
| |
* | Merge pull request #550 from cloudant/export-test_request_5iilyak2017-05-301-1/+1
|\ \ | | | | | | Export test_request:request/5 function
| * | Export test_request:request/5 functionILYA Khlopotov2017-05-301-1/+1
|/ / | | | | | | | | | | Currently it is impossible to pass authentication options to test_request:request. This commit exports request/5 which accept options argument.
* | Fix rewrite_js test: do not delete/create a DB in rapid successionJoan Touzet2017-05-301-1/+1
| |
* | New Jenkinsfile for multibranch pipeline buildJoan Touzet2017-05-282-3/+308
| |
* | Merge pull request #542 from apache/3426-forbidden-errorRobert Newson2017-05-261-0/+4
|\ \ | | | | | | Send a better error when opening a db without authorisation
| * | Send a better error when opening a db without authorisation3426-forbidden-errorRobert Newson2017-05-261-0/+4
| | | | | | | | | | | | COUCHDB-3426
* | | Remove "--prefix" option from README-DEVAlex Anderson2017-05-261-4/+0
|/ / | | | | | | This option is no longer available.
* | typo in couchupJoan Touzet2017-05-251-1/+1
| |
* | Merge pull request #540 from cloudant/hash-admin-password-in-testsiilyak2017-05-2510-11/+22
|\ \ | | | | | | Make sure we cache admin pass prior to test run
| * | Make sure we cache admin pass prior to test runILYA Khlopotov2017-05-2510-11/+22
|/ / | | | | | | | | | | | | | | couch_server is responsible for calling hash_admin_passwords whenever "admin" section of config changes. However as you can see it from [here](https://github.com/apache/couchdb/blob/master/src/couch/src/couch_server.erl#L219) the call is asynchronous. This means that our test cases might fail when we try to using admin user while admin password is not yet hashed.
* | Fix configure when whoami errors outJoan Touzet2017-05-241-1/+1
| |
* | Expose replicator scheduler feature in the APINick Vatamaniuc2017-05-221-0/+1
| | | | | | | | That was the intent all along, just forgot to enable before the merge.
* | Skip internal replication if changes already replicatedNick Vatamaniuc2017-05-221-4/+10
| | | | | | | | | | | | | | | | If minimum checkpointed sequence is greater or equal to source db sequence, do not start an internal replication task. The typical case is when checkpoint sequence is equal to the db sequence. Previously replication task was started always wrote a checkpoint document even if no database changes. This resulted in a flurry of writes during cluster startup.
* | Use a custom version of rebarPaul J. Davis2017-05-221-1/+1
| | | | | | | | | | | | | | This version of rebar has an extra commit on 2.6.0 to properly skip applications that make use of the .app.src.script construct. The benefit to us is that couch_epi tests will not run when specifying an apps=$appname variable to eunit.
* | Set new config versionPaul J. Davis2017-05-221-1/+1
| |
* | Pre-calculate application start orderPaul J. Davis2017-05-221-7/+53
| | | | | | | | | | This allows us to make some better assertions/logging when starting our application list on what should and should not already be started.
* | fix couch_replicator_compact_test by removing duplicate codeJan Lehnardt2017-05-201-5/+0
| |
* | Add/update contribution guidelines, issue/PR templates for GH IssuesJoan Touzet2017-05-204-15/+348
| |
* | Fix merge of 27f5067c and aca6a459Jan Lehnardt2017-05-201-1/+6
| |
* | add dedbugging for failing test COUCHDB-3343Jan Lehnardt2017-05-201-0/+1
| |
* | chore: add dedbugging for failing test COUCHDB-3343Jan Lehnardt2017-05-202-2/+11
| |
* | better test as per @nickvaJan Lehnardt2017-05-201-1/+13
| |
* | increase timeout for compaction daemon tests COUCHDB-3344Jan Lehnardt2017-05-201-1/+1
| |
* | chore: increase timeout for compaction daemon tests COUCHDB-3344Jan Lehnardt2017-05-201-1/+1
| |
* | Merge pull request #533 from cloudant/wait_db_close_in_testiilyak2017-05-191-1/+11
|\ \ | | | | | | Whait db close a little bit before failing test
| * | Whait db close a little bit before failing testILYA Khlopotov2017-05-191-1/+11
|/ / | | | | | | | | | | | | | | Databases are closed asynchronously. However it was not accounted for in the test case. This commit waits database to close before it makes a decission to abort the test. I.e. if test case detects that database is still opened after 1 second it considers it as failure.
* | Merge pull request #532 from cloudant/filter_out_non_replicator_tasksiilyak2017-05-191-2/+6
|\ \ | | | | | | Filter out non replicator tasks in test case
| * | Filter out non replicator tasks in test caseILYA Khlopotov2017-05-191-2/+6
| | | | | | | | | | | | | | | | | | | | | Previously the test relied in the assumption that there are no couch_tasks are running concurrently. This commit fixes that assumption by filtering out all non replication related tasks from the output of couch_task_status:all().
* | | Revert couch_lru to use gb_treesNick Vatamaniuc2017-05-192-144/+27
|/ / | | | | | | | | | | | | | | | | | | Recently couch_lru was changed to use ets tables. During eprof profiling it showed improved performance however recently in a larger test with more concurrent updates and 5000 max dbs open it showed a significant degradation compared to the previous (gb_tree-based) version. GH Issue #528
* | Fix link to SpiderMonkey in INSTALL.mdEric Avdey2017-05-181-1/+1
| |
* | chore: increase timeout for pausing writer COUCHDB-3384Jan Lehnardt2017-05-161-1/+1
| |
* | chore: double test timeout see COUCHDB-3408Jan Lehnardt2017-05-161-1/+1
| |
* | chore: add debugging for failing test case, see COUCHDB-3413Jan Lehnardt2017-05-161-1/+5
| |
* | chore: add debugging for failing test case, see COUCHDB-3415Jan Lehnardt2017-05-161-1/+11
| |
* | Add auto log uploader for CI workflowJoan Touzet2017-05-154-5/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is intended to improve failure analysis in Travis and Jenkins runs by uploading couch log files after failed test runs. A new script has been added that, upon invocation from the top-level directory, tars up all EUnit logfiles and the dev/logs/node1.log file. It then constructs a document based on the running environment (Travis, Jenkins, manual). The document is posted to a CouchDB instance running on couchdb-vm.apache.org with credentials passed in the COUCHAUTH environment variable. The .travis.yml file has been updated to install the script's prerequisites (python-requests) and with the secret credentials, and to instruct travis to run the log uploader after any test failure. Similar steps will be taken to reconfigure Jenkins after these changes are merged to master. The test/javascript/run harness had to be modified to terminate after the first failure. This is because each new test wipes the logfile of the previous run. All tests can still be run, regardless of failure, by specifing the -a/--all flag, however it is expected that the reduction in test suite execution time when a test fails will be appreciated by many.