summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Always send all cookie attributesalways-send-all-cookie-attributes-mainRobert Newson2021-12-101-15/+22
|
* wget pull cleanup and downgrade fdbWill Young2021-12-101-19/+26
|
* Merge pull request #3862 from apache/delete-session-cookie-samesite-mainRobert Newson2021-12-061-1/+1
|\ | | | | Add SameSite setting when clearing session cookie
| * Add SameSite setting when clearing session cookiedelete-session-cookie-samesite-mainRobert Newson2021-12-061-1/+1
|/
* feat(couchjs): add support for SpiderMonkey 91esr (#3842)Will Young2021-12-024-18/+129
|
* Fix Jenkins email quoting failuresNick Vatamaniuc2021-11-231-7/+6
| | | | | | | Should fix: ``` Warning: A secret was passed to "mail" using Groovy String interpolation, which is insecure. ```
* Port changes from Makefile to Makefile.winAdam Kocoloski2021-11-151-27/+26
| | | | | | | | | | I didn't touch the mango-test invocation because it confused me. I'm not sure how Python.exe and dev\run are interacting there. I'm also not sure about forward vs. backslash in these quoted mix invocations. I stuck with the convention I saw already in the Makefile; i.e. forward slashes for regular arguments to dev\run, backslashes for quoted arguments to the mix invocation issued by dev\run.
* Clean up mango-testAdam Kocoloski2021-11-151-4/+3
| | | | | * Eliminate remaining use of TEST_OPTS * Standardize dev/run invocation, matching elixir-integration
* Fix Python formatting, restore python-black targetAdam Kocoloski2021-11-1511-40/+46
| | | | | | This also allows us to eliminate the `check-all-tests` target, since we've re-enabled all the test suites (and excluded specific tests as needed).
* Remove config.erl target dependencyAdam Kocoloski2021-11-151-1/+1
| | | | Frankly I have no idea what this does, but it doesn't seem relevant.
* Reorder tests for clarity, reduce dependenciesAdam Kocoloski2021-11-151-20/+18
| | | | | | | | | | | I removed the `elixir-init` dependency from everything except the `elixir-suite` target. The other targets are likely to be run interactively, in which case mix will ask if the local rebar / rebar3 etc. should be installed if they're not already (and they almost always will be). A little less log cruft, a little more speed. I also removed `MIX_ENV` exports where their inclusion didn't seem to matter, e.g. on the code formatting and static analysis checks.
* Consolidate ExUnit integration test configurationAdam Kocoloski2021-11-153-41/+18
| | | | | | | | | | | | | | | | | | | | | Two main pieces of work here: 1) Consoidate elixir / elixir-only / elixir-suite into two targets: - elixir-integration, which only runs ExUnit integration tests - elixir-suite, which depends on elixir-integration and also calls format + credo This preserves the flexibility of the previous targets while reducing code duplication and removing some obsolete configurations 2) Limit the number of places where we define test configurations Previously we were relying on dev/run to inject config entries in addition to specifiying a .ini file on the command-line. We sometimes also write config settings in the test definitions themselves. This is at least an initial attempt to just define the config settings in one place.
* Regenerate suite.elixirAdam Kocoloski2021-11-151-30/+11
| | | | | | This is the result of running MIX_ENV=integration mix suite > test/elixir/test/config/suite.elixir
* Do not start test name with "test "Adam Kocoloski2021-11-152-2/+2
| | | | | | | | | | | | The code that generates suite.elixir will repeatedly strip the "test " from the name of the test when writing the file, resulting in a mismatch between the actual test name and what's in suite.elixir. You can see this by searching for e.g. COUCHDB-497 in the suite file. I tried using String.replace_prefix instead of String.replace_leading in test_name() but that function seems to get called multiple times during the test grouping. Simpler to just avoid naming the tests that way for now.
* Use tags in .exs file as exclusion source of truthAdam Kocoloski2021-11-151-286/+3
| | | | | | | | | | | | | | We have been redundantly excluding tests by listing them in the skip.elixir file and also adding a `:pending` or `:skip` tag. Output of `elixir-suite` before: Finished in 88.4 seconds 306 tests, 0 failures, 16 excluded, 1 skipped and after: Finished in 85.8 seconds 438 tests, 0 failures, 135 excluded, 1 skipped
* Protect release branches with .asf.yaml config (#3285)Glynn Bird2021-11-101-0/+41
| | | | | | | | | | | The intent here is to require "branch must be up to date before merge / squash / rebase", and to further require a clean bill of health from Jenkins for `main` and `3.x`. I'm not so confident about the CI health of older branches to enable that protection there, and at any rate it's unlikely we'd be committing anything to those branches anyway. Co-authored-by: Glynn Bird <glynnbird@apache.org> Co-authored-by: Adam Kocoloski <kocolosk@apache.org>
* Temporarily exclude failing testsAdam Kocoloski2021-11-092-0/+2
|
* Exclude _show/_list/_rewrite testsAdam Kocoloski2021-11-094-0/+54
|
* Re-enable most elixir testsPaul J. Davis2021-11-0929-4/+72
| | | | | This change tags all tests that are currently failing against main with a `pending` tag that is then excluded.
* Remove quorum testsPaul J. Davis2021-11-094-402/+3
| | | | Quorum is no longer a thing now that we rely on FoundationDB.
* Merge pull request #3764 from apache/changes_durationRobert Newson2021-09-272-21/+45
|\ | | | | support maximum changes_duration configuration option
| * support maximum changes_duration configuration optionchanges_durationRobert Newson2021-09-242-21/+45
|/
* Merge pull request #3753 from cloudant/fix-ensure_exunit_startediilyak2021-09-161-1/+1
|\ | | | | Fix logic in ensure_exunit_started
| * Fix logic in ensure_exunit_startedILYA Khlopotov2021-09-151-1/+1
|/
* Separate bad_config_test into multiple testsJay Doane2021-09-091-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of running as a single test, separate each corresponding field and error into its own test, with its own timeout. A typical run now looks like: make eunit apps=couch_views suites=couch_views_batch_impl tests=bad_config_test_ ======================== EUnit ======================== couch_views_batch_impl:186: bad_config_test_ (batch_initial_size)...[0.104 s] ok couch_views_batch_impl:186: bad_config_test_ (batch_search_increment)...[0.077 s] ok couch_views_batch_impl:186: bad_config_test_ (batch_sense_increment)...[0.074 s] ok couch_views_batch_impl:186: bad_config_test_ (batch_max_tx_size_bytes)...[0.077 s] ok couch_views_batch_impl:186: bad_config_test_ (batch_max_tx_time_msec)...[0.076 s] ok couch_views_batch_impl:186: bad_config_test_ (batch_threshold_penalty)...[0.074 s] ok ======================================================= All 6 tests passed. Previously, these tests were timing out when CI became resource constrained. Examples of multiple runs show how prone to timing out after 5 seconds the old monolithic bad_config_test was: couch_views_batch_impl: good_config_test...[0.217 s] ok couch_views_batch_impl: bad_config_test...[1.347 s] ok couch_views_batch_impl: good_config_test...[0.393 s] ok couch_views_batch_impl: bad_config_test...[2.332 s] ok couch_views_batch_impl: good_config_test...[0.358 s] ok couch_views_batch_impl: bad_config_test...[2.211 s] ok couch_views_batch_impl: good_config_test...[0.942 s] ok couch_views_batch_impl: bad_config_test...*timed out* couch_views_batch_impl: good_config_test...[1.179 s] ok couch_views_batch_impl: bad_config_test...*timed out* couch_views_batch_impl: good_config_test...[0.497 s] ok couch_views_batch_impl: bad_config_test...*timed out*
* Increase timeout for couch views active tasks testsJay Doane2021-09-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This doubles the default timeout to 10 seconds for these two tests. They typically take a long time to run: couch_views_active_tasks_test:69: active_tasks_test_ (verify_basic_active_tasks)...[2.444 s] ok couch_views_active_tasks_test:70: active_tasks_test_ (verify_muliple_active_tasks)...[2.678 s] ok couch_views_active_tasks_test:69: active_tasks_test_ (verify_basic_active_tasks)...[2.646 s] ok couch_views_active_tasks_test:70: active_tasks_test_ (verify_muliple_active_tasks)...[2.743 s] ok couch_views_active_tasks_test:69: active_tasks_test_ (verify_basic_active_tasks)...[2.910 s] ok couch_views_active_tasks_test:70: active_tasks_test_ (verify_muliple_active_tasks)...[3.063 s] ok and when resources are constrained, often time out: couch_views_active_tasks_test:69: active_tasks_test_ (verify_basic_active_tasks)...[2.044 s] ok couch_views_active_tasks_test:70: active_tasks_test_ (verify_muliple_active_tasks)...*timed out* couch_views_active_tasks_test:69: active_tasks_test_ (verify_basic_active_tasks)...[1.777 s] ok couch_views_active_tasks_test:70: active_tasks_test_ (verify_muliple_active_tasks)...*timed out* couch_views_active_tasks_test:69: active_tasks_test_ (verify_basic_active_tasks)...*timed out* couch_views_active_tasks_test:70: active_tasks_test_ (verify_muliple_active_tasks)...*timed out*
* Set structured logger to info level for exunit testsJay Doane2021-09-072-0/+8
| | | | | | | | | | | | | | | | | | | | | | | Suppress excessive debug logging of the form: mix test --cover --trace src/chttpd/test/exunit/pagination_test.exs:232 * test Legacy API (10 docs) : _all_docs/queries 12:40:01.895 [debug] [user: "adm", what: :login_attempt] 12:40:01.906 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.925 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.934 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.944 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.952 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.960 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.968 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.977 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.985 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:01.995 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:02.004 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:02.013 [debug] [username: 'adm', what: :successful_cookie_auth] 12:40:02.019 [debug] [username: 'adm', what: :successful_cookie_auth] * test Legacy API (10 docs) : _all_docs/queries (152.2ms)
* Suppress compiler warningsJay Doane2021-09-072-5/+3
|
* Replace couch_js with js_engine in exunit pagination testJay Doane2021-09-071-2/+2
| | | | See: https://github.com/apache/couchdb/commit/3907e9f0abd2bfc26e8384a819939ea964daf157
* Increase timeout for multiple ddoc indexer testJay Doane2021-09-031-1/+1
|
* Fix 'clause cannot match' compiler warningJay Doane2021-09-021-2/+2
| | | | | | Fixes this warning: couchdb/src/couch_eval/src/couch_eval.erl:168: Warning: this clause cannot match because a previous clause at line 167 always matches
* Use couch_eval for changes filteringgarren smith2021-08-176-6/+54
| | | | | | Use couch_eval when filtering docs with a filter function or a map function. This allows CouchDB to configured to use different engines through couch_eval.
* Improve handling of + in URLsncshaw2021-08-099-56/+152
|
* Bump mochiweb versionncshaw2021-08-051-1/+1
|
* Remove emilioncshaw2021-08-046-57/+1
|
* Port attachment deletion fix from 3.xNick Vatamaniuc2021-07-302-138/+139
| | | | | | | | | Port ba638783b5d87b855939dae69fd63ffd41cb5ed7 from 3.x This should fix the edge case where deletion with a bad rev was returning a 404. Now it should returna 409. Issue: https://github.com/apache/couchdb/issues/2146
* Use correct fabric function names in elixir testsJay Doane2021-07-293-7/+8
| | | | This eliminates several warnings when running `make exunit`.
* Add in option to run different js engine for testsgarren smith2021-07-2217-17/+31
| | | | | | | | | Add a `js_engine` field when starting test applications. When the couch apps are loaded it will load the js engine defined in the ini files. This allows us to swop out and use different javascript engines for `couch_eval` for eunit tests.
* move validate doc update to go through couch_evalgarren smith2021-07-223-4/+16
|
* Fix response code for nonexistent attachmentncshaw2021-07-172-11/+30
|
* Fix "error":"case_clause" using latest=trueNick Vatamaniuc2021-07-131-1/+8
| | | | | | | | This is a port of https://github.com/apache/couchdb/pull/3424/commits/a8622f0cca40d8f2338ec24b40f14d013a0f69d4 to main Issue #3424
* Fix __MODULE__ compiler variable warningJay Doane2021-07-121-1/+1
| | | | | | | | Fixes: ``` warning: unknown compiler variable "___MODULE__" (expected one of __MODULE__, __ENV__, __DIR__, __CALLER__, __STACKTRACE__) src/couchdb/test/elixir/lib/step/start.ex:62: Couch.Test.Setup.Step.Start.teardown/2 ```
* comment out max_document_sizejiahuili2021-07-022-5/+3
|
* Merge pull request #3637 from noahshaw11/remove-case-sensitivity-for-basic-authiilyak2021-07-023-17/+63
|\ | | | | Remove case sensitivity for basic auth
| * Remove case sensitivity for basic auth and modify testsncshaw2021-06-283-17/+63
| |
* | Fix FDB max_document_size, binary_chunk_size, and max_attachment_size checksncshaw2021-07-0113-32/+74
| |
* | Fix CI (#3650)Bessenyei Balázs Donát2021-07-016-36/+38
| |
* | Use correct socks5 proxy ibrowse optionsNick Vatamaniuc2021-06-302-1/+47
| | | | | | | | This is a port of the 3.x PR https://github.com/apache/couchdb/pull/3634 to main
* | Add rebar3 to .gitignorencshaw2021-06-281-0/+1
|/
* Format all erl files (#3639)Bessenyei Balázs Donát2021-06-28145-7734/+8778
| | | | | * Format all src files and remove beam comparison * Apply make erlfmt-format