Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,18 @@ elixir-suite: elixir-init elixir-check-formatted elixir-credo devclean
--erlang-config rel/files/eunit.config \
--no-eval 'mix test --trace --include test/elixir/test/config/suite.elixir --exclude test/elixir/test/config/skip.elixir'

.PHONY: buggify-elixir-suite
buggify-elixir-suite: export MIX_ENV=integration
buggify-elixir-suite: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1
buggify-elixir-suite: elixir-init devclean
@dev/run -n 1 -q -a adm:pass \
--enable-erlang-views \
--no-join \
--locald-config test/elixir/test/config/test-config.ini \
--locald-config test/elixir/test/config/buggify-test-config.ini \
--erlang-config rel/files/buggify-eunit.config \
--no-eval 'mix test --trace --include test/elixir/test/config/suite.elixir --exclude test/elixir/test/config/skip.elixir'

.PHONY: elixir-check-formatted
elixir-check-formatted: elixir-init
@mix format --check-formatted
Expand Down
13 changes: 13 additions & 0 deletions rel/files/buggify-eunit.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{kernel, [{error_logger, silent}]},
{sasl, [{sasl_error_logger, false}]},
{fabric, [{eunit_run, true}]},
{erlfdb, [
{network_options, [
client_buggify_enable,
{client_buggify_section_activated_probability, 25},
{client_buggify_section_fired_probability, 25}
]}
]}
].

12 changes: 12 additions & 0 deletions test/elixir/test/config/buggify-test-config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[fdb_tx_options]
; If timeout is set i.e. > 0, client buggify may raise 1031
; (transaction timeouts) which is not a retryable error. Since we do
; not handle every single timeout properly but do set a transaction
; timeout, we will get a lot of false positive errors
timeout = 0

; Do not set a retry limit to avoid getting false positive failures.
retry_limit = -1

[couch_views]
indexer_tx_retry_limit = 1000