summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Disable running ibrowse testsNick Vatamaniuc2021-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | They used to be disabled before the last major ibrowse upgrade. On MacOS and FreeBSD the following tests fails periodically: ``` ibrowse_tests: running_server_fixture_test_ (Pipeline too small signals retries)...*failed* in function ibrowse_tests:'-small_pipeline/0-fun-5-'/1 (test/ibrowse_tests.erl, line 150) in call from ibrowse_tests:small_pipeline/0 (test/ibrowse_tests.erl, line 150) **error:{assertEqual,[{module,ibrowse_tests}, {line,150}, {expression,"Counts"}, {expected,"\n\n\n\n\n\n\n\n\n\n"}, {value,"\t\n\n\n\n\t\t\n\n\t"}]} output:<<"Load Balancer Pid : <0.494.0> ``` But seems to pass more reliable on Linux for some reson. It would be nice to run the tests of course but having a passing full platsform suite is more important.
* Contribute Custom Erlang network protocol to Apachejiahuili2021-07-281-0/+1
|
* Build and escriptize weatherreportweatherreportJay Doane2021-04-201-1/+18
|
* feat: work around get_stacktrace deprecation/removalJan Lehnardt2021-03-171-1/+1
| | | | | | | | | | | This patch introduces a macro and inserts it everywhere we catch errors and then generatre a stacktrace. So far the only thing that is a little bit ugly is that in two places, I had to add a header include dependency on couch_db.erl where those modules didn’t have any ties to couchdb/* before, alas. I’d be willing to duplicate the macros in those modules, if we don’t want the include dependency.
* Simplify and speedup dev node startup (#3337)Adam Kocoloski2021-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | * Simplify and speedup dev node startup This patch introduces an escript that generates an Erlang .boot script to start CouchDB using the in-place .beam files produced by the compile phase of the build. This allows us to radically simplify the boot process as Erlang computes the optimal order for loading the necessary modules. In addition to the simplification this approach offers a significant speedup when working inside a container environment. In my test with the stock .devcontainer it reduces startup time from about 75 seconds down to under 5 seconds. * Rename boot_node to monitor_parent * Add formatting suggestions from python-black Co-authored-by: Paul J. Davis <paul.joseph.davis@gmail.com>
* Remove JS tests + support for harness (#3197) (#3203)Joan Touzet2020-10-071-51/+2
|
* Remove javascript tests from main build processJuanjo Rodriguez2020-10-071-1/+0
|
* Update Makefile.win to Include locad configs and clean configs in devcleanJuanjo Rodriguez2020-09-241-1/+1
|
* allow to run 'javascript' target with other test targets in the same 'make' ↵Juanjo Rodriguez2020-04-301-1/+3
| | | | process
* Ensure python black runs on all .py files (#2827)Joan Touzet2020-04-271-2/+2
|
* 3.x merge - Port elixir proxyauth tests from js to elixir (#2660)Juanjo Rodriguez2020-03-171-1/+4
| | | | | * Port elixir proxyauth tests from js to elixir (#2660) * Add support for specify a custom config file for CouchDB startup during testing
* Fix Windows build (#2534)3.0.0-RC1Joan Touzet2020-02-081-4/+1
| | | | | | | | | | | | | | | | | | | | * Allows `configure.ps1` to correctly pull and build `rebar` on Windows * Removes the static declarations in `rebar.config.script` on specific, pre-determined paths to various includes/libraries necessary for NIFs and external binaries (expectation is these are passed in env vars INCLUDE, LIB and LIBPATH) * fixes the SM60 `couchjs` build by telling `windows.h` not to redefine min and max as macros through a `#define` * fixes the `make eunit` target on Windows * Adds the missing `EXE_LINK_CXX_TEMPLATE` that our rebar doesn't have, but `enc` has today, which is also causing a failed `couchjs` (C++) build on Windows * Causes `make python-black` to correctly cause failure in `make check` if it finds problems * fixes Mango tests on Python 3.8 by bumping the hypothesis dependency * fixes one Elixir test on Windows (incorrect calculation of `now(:ms)` due to Erlang clock precision difference) * a little bit of python black cleanup (mango tests)
* Makefile parity; remove [un]install tgts (#2512)Joan Touzet2020-02-061-20/+4
|
* Stop propagating RC tags into dist archive (#2506)Joan Touzet2020-01-311-5/+17
|
* python-black style cleanup (#2505)Joan Touzet2020-01-311-2/+2
|
* Remove EUnit retries on failureNick Vatamaniuc2020-01-091-10/+1
| | | | | | | Since we switched from Travis to Jenkins, let's see how tests run without retries in the new environment. For reference, retries were introduced in: https://github.com/apache/couchdb/commit/220462a1dd2d921fc4ecba3488f5fedefb75217f
* Generate test results on build failuresPaul J. Davis2020-01-091-0/+6
|
* feat: remove couchup (#2399)Jan Lehnardt2020-01-071-2/+2
| | | | Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* Multi/elixir 3 (#2394)Jan Lehnardt2020-01-041-35/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add auth cache test into elixir test suite * Port cookie_auth test suite into elixir * Remove conflicting functions * remove debug log level config * Port users_db from js test suite to elixir * WIP: make test more robust * WIP: increase default timeout, revert to fail when login error * Auth cache test fixes * Cookie auth test fixes * Cookie auth test fixes * Correct test name * Correct test name * Disable all JS tests that have Elixir test counterparts. * Convert test setup/teardown logic into idiomatic ExUnit and use @moduletag config * Disable auth_cache_test * auth cache test is disabled * Update elixir test suite README.md with missing ported stuff * Port UTF8 js test suite to elixir * fix: losen assertion * disable more JS tests Co-authored-by: Juanjo Rodriguez <jjrodrig@gmail.com> Co-authored-by: Alessio Biancalana <dottorblaster@gmail.com>
* Port erlang views tests into elixir test suite (#2237)Juanjo Rodriguez2020-01-041-1/+1
| | | | | | | | | * Port erlang views tests into elixir test suite * Enable erlang views in elixir testing * Support nil or :null in response
* Refuse startup with no server admin set up (#2389)Jan Lehnardt2020-01-041-1/+8
| | | | | | | | | | | | feat: refuse startup with no server admin set up includes an admin party assert escape hatch for tests adds a log message every 5 minutes, if escape hatch is enabled. should play nice with systemd restart policies Co-authored-by: Joan Touzet <wohali@users.noreply.github.com>
* All databases now admin-only by defaultadmin-only-by-defaultRobert Newson2019-12-181-7/+9
|
* Switch make elixir to use n = 1Garren Smith2019-12-161-1/+1
|
* Integrate excoverals into test stackILYA Khlopotov2019-12-121-1/+1
|
* Make sure we fetch test dependenciesILYA Khlopotov2019-12-121-1/+2
|
* Set autoupdate:false during update=false mango test (#2314)Adam Kocoloski2019-11-161-1/+1
| | | | | | | | | Set autoupdate:false to avoid update=False flake The auto-indexer is sometimes sneaking in and causing test failures by building the index ahead of the update=false query. This should block that behavior. Also, save XML output from mango nose tests.
* Ensure EUnit inherits appropriate env varsAdam Kocoloski2019-08-161-2/+2
| | | | | | | | | | | Omitting COUCHDB_VERSION caused the EUnit build of the replicator to have a corrupted User-Agent header. It tried to construct a version using git, but when building from a release tarball there is no git repo so the UA had a git error message in it. This error message contained a newline, which plausibly confused some part of the HTTP stack and caused replicator HTTP requests to hang. Related to #2098.
* Avoid shebang length limits on jenkinsAdam Kocoloski2019-08-081-2/+2
| | | | | | | The `pip3` and `nosetest` executables are scripts, and on jenkins the specified interpreter can exceed the 128 character length limit because of the deeply-nested workspace. Invoking these as modules seems the preferred workaround per pypa/pip#1773
* Fix bash-ism in EUnit retry logicNick Vatamaniuc2019-08-061-1/+1
| | | | Bash has `let` but other shells might not have it.
* Retry EUnit tests on failureNick Vatamaniuc2019-07-291-2/+12
| | | | | | | Whole app is retried 2 extra times if it fails. Added to *nix Makefile only for now. May not be needed for Windows as this is for CI flakiness mostly.
* Unify runners for unit and integration testsILYA Khlopotov2019-07-291-15/+14
|
* Minimal ExUnit setupILYA Khlopotov2019-07-291-2/+16
|
* Skip running PropEr's own unit testsNick Vatamaniuc2019-03-261-1/+1
| | | | We skip mochiweb, snappy and others already.
* Warn people to edit both Makefiles. (#1952)Joan Touzet2019-02-281-0/+4
|
* Fail make eunit upon eunit app suite failurefail-make-on-eunit-failureRussell Branca2019-02-271-1/+1
|
* Fix elixir tests and add back to make check (#1918)garren smith2019-02-151-0/+1
| | | | | | * Add back elixir tests to make check * Fix reliability of the flaky elixir tests
* remove elixir tests from 'make check' until they are reliableRobert Newson2019-02-061-1/+0
|
* run formatting check before time-consuming testsRobert Newson2019-02-061-1/+1
|
* Force mix rebar/hex/deps get on make elixir (#1894)Joan Touzet2019-02-051-2/+6
|
* Run each apps test in a separate processRobert Newson2019-02-011-3/+10
| | | | This reduces non-causal test failures between apps.
* add elixir tests to travisGarren Smith2019-01-311-0/+1
| | | | | Add the elixir test to `make check` and change the build language in travis from erlang to elixir.
* Migrate cluster with(out) quorum js tests as elixir tests (#1812)Juanjo Rodriguez2018-12-191-1/+13
|
* Support specifying individual Elixir tests to runILYA Khlopotov2018-12-071-1/+7
| | | | | | | | Individual tests can be specified as: - make elixir tests=test/basics_test.exs - make elixir tests=test/basics_test.exs,test/config_test.exs - make elixir tests=test/basic_test.exs:17
* Add Credo to Elixir test suite (#1769)Alessio Biancalana2018-12-071-1/+7
| | | This PR adds Credo as the static code analysis tool of choice for the Elixir test suite.
* Format and check all code using python black (#1776)Joan Touzet2018-12-061-3/+26
| | | | | The Makefile target builds a python3 venv at .venv and installs black if possible. Since black is Python 3.6 and up only, we skip the check on systems with an older Python 3.x.
* Use devclean on elixir target for consistency of Makefile (#1785)Eric Avdey2018-11-301-2/+1
| | | Use devclean on elixir target for consistency of Makefile
* Merge branch 'master' into mix-formatJoan Touzet2018-11-271-1/+4
|\
| * Don't use activate script; Windows fixesswitch-scripts-to-python3Joan Touzet2018-11-271-4/+3
| |
| * Run mango tests with Python 3Nick Vatamaniuc2018-11-261-1/+5
| | | | | | | | | | | | | | | | Before we were ignoring venv setup in the Makefile, so update the test runner to use that instead of pestering developers to install those dependencies by hand. Issue #1632
* | Add elixir-check-formatted make taskIvan Mironov2018-11-271-1/+5
|/