<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/rel/files/eunit.config, branch decrease-indexer-transaction-time-limit</title>
<subtitle>github.com: apache/couchdb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/'/>
<entry>
<title>Add a development container for VS Code (#3343)</title>
<updated>2021-01-26T01:31:57+00:00</updated>
<author>
<name>Adam Kocoloski</name>
<email>kocolosk@apache.org</email>
</author>
<published>2021-01-26T01:31:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=46b346e30b96d3774f83ee2d366e12dc1ce50749'/>
<id>46b346e30b96d3774f83ee2d366e12dc1ce50749</id>
<content type='text'>
* Add a development container config for VS Code

This creates a development environment with a FoundationDB server
and a CouchDB layer in two containers, sharing a network through
Docker Compose.

It uses the FDB image published to Docker Hub for the FDB container,
and downloads the FDB client packages from foundationdb.org to provide
the development headers and libraries. www.foundationdb.org is actually
not trusted in Debian Buster by default, so we have to download the
GeoTrust_Global_CA.pem. The following link has more details:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962596

Once the Docker Compose setup is running, VS Code executes the
create_cluster_file.bash script to write down a cluster file containing
the IP address in the compose network where the FDB service can be
found. This cluster file is used both for a user-driven invocation of
`./dev/run`, as well as for unit tests that require a running CouchDB.

Additionally, I've got a small fix to the way we run explicitly specified
eunit tests:

* Run eunit tests for each app separately

The `eunit` target executes a for loop that appears intended to use a
separate invocation of rebar for each Erlang application's unit tests.
When running `make eunit` without any arguments this works correctly,
as the for loop processes the output of `ls src`. But if you specify a
comma-delimited list of applications the for loop will treat that as a
single argument and pass it down to rebar. This asymmetry is
surprising, but also seems to cause some issues with environment
variables not being inherited by the environment used to execute the
tests for the 2..N applications in the list. I didn't bother digging
into the rebar source code to figure out what was happening there.

This patch just parses the incoming comma-delimited list with `sed` to
create a whitespace-delimited list for the loop, so we get the same
behavior regardless of whether we are specifying applications
explicitly or not.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add a development container config for VS Code

This creates a development environment with a FoundationDB server
and a CouchDB layer in two containers, sharing a network through
Docker Compose.

It uses the FDB image published to Docker Hub for the FDB container,
and downloads the FDB client packages from foundationdb.org to provide
the development headers and libraries. www.foundationdb.org is actually
not trusted in Debian Buster by default, so we have to download the
GeoTrust_Global_CA.pem. The following link has more details:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962596

Once the Docker Compose setup is running, VS Code executes the
create_cluster_file.bash script to write down a cluster file containing
the IP address in the compose network where the FDB service can be
found. This cluster file is used both for a user-driven invocation of
`./dev/run`, as well as for unit tests that require a running CouchDB.

Additionally, I've got a small fix to the way we run explicitly specified
eunit tests:

* Run eunit tests for each app separately

The `eunit` target executes a for loop that appears intended to use a
separate invocation of rebar for each Erlang application's unit tests.
When running `make eunit` without any arguments this works correctly,
as the for loop processes the output of `ls src`. But if you specify a
comma-delimited list of applications the for loop will treat that as a
single argument and pass it down to rebar. This asymmetry is
surprising, but also seems to cause some issues with environment
variables not being inherited by the environment used to execute the
tests for the 2..N applications in the list. I didn't bother digging
into the rebar source code to figure out what was happening there.

This patch just parses the incoming comma-delimited list with `sed` to
create a whitespace-delimited list for the loop, so we get the same
behavior regardless of whether we are specifying applications
explicitly or not.</pre>
</div>
</content>
</entry>
<entry>
<title>Update build system for FoundationDB</title>
<updated>2020-03-02T17:20:26+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2019-06-05T18:04:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=fff07ba136cfa7433647e974355068b43e63199c'/>
<id>fff07ba136cfa7433647e974355068b43e63199c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix logging for eunit tests</title>
<updated>2016-07-22T10:26:40+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2016-07-22T10:26:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=80dfcd5ef27abc5ff439996853c491d1eb670af4'/>
<id>80dfcd5ef27abc5ff439996853c491d1eb670af4</id>
<content type='text'>
I accidentally unsilenced sasl and kernel error loggers. This also adds
file logging for eunit tests when the logging is enabled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I accidentally unsilenced sasl and kernel error loggers. This also adds
file logging for eunit tests when the logging is enabled.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove lager and its dependencies</title>
<updated>2016-07-22T10:04:09+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2016-07-22T09:52:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=7777595015b8160ba43c17a4452f56e109b9565a'/>
<id>7777595015b8160ba43c17a4452f56e109b9565a</id>
<content type='text'>
COUCHDB-3067
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
COUCHDB-3067
</pre>
</div>
</content>
</entry>
<entry>
<title>Configure lager for eunit</title>
<updated>2015-10-14T16:26:41+00:00</updated>
<author>
<name>Alexander Shorin</name>
<email>kxepal@apache.org</email>
</author>
<published>2015-10-14T16:26:41+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=c6b9e74370210bbd14c8535e8457d85a26ddd945'/>
<id>c6b9e74370210bbd14c8535e8457d85a26ddd945</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use eunit.config instead of vm.args to silence error_logger</title>
<updated>2015-10-08T11:44:07+00:00</updated>
<author>
<name>Alexander Shorin</name>
<email>kxepal@apache.org</email>
</author>
<published>2015-10-08T11:43:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=af105532c1186b02c837cf1109e32a465ef4b982'/>
<id>af105532c1186b02c837cf1109e32a465ef4b982</id>
<content type='text'>
While both handles problem well, options in vm.args eventually becomes
overridden by some internal stuff and error_logger gets his tty handler
back.

Config-way is more reliable here and also prevents us to hit exotic
issues like race with test node start or warnings about bad node name
used in tests.

So far, to run specific test without distractive noise, use
the following template:

    BUILDDIR=`pwd` ERL_AFLAGS="-config `pwd`/rel/files/eunit.config` ./bin/rebar -r eunit ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While both handles problem well, options in vm.args eventually becomes
overridden by some internal stuff and error_logger gets his tty handler
back.

Config-way is more reliable here and also prevents us to hit exotic
issues like race with test node start or warnings about bad node name
used in tests.

So far, to run specific test without distractive noise, use
the following template:

    BUILDDIR=`pwd` ERL_AFLAGS="-config `pwd`/rel/files/eunit.config` ./bin/rebar -r eunit ...
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Merge branch 'reduce-log-noise-for-eunit'"</title>
<updated>2015-10-01T17:47:02+00:00</updated>
<author>
<name>Alexander Shorin</name>
<email>kxepal@apache.org</email>
</author>
<published>2015-10-01T17:47:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=5b95ae0fcfd79dfb2b334fad59bb10642c7aceb9'/>
<id>5b95ae0fcfd79dfb2b334fad59bb10642c7aceb9</id>
<content type='text'>
This reverts commit 57171e781c5cd0579ee81040ee47199affb79e84, reversing
changes made to 11b4fcd98bbebfea0eef4f5c18ecd2163bae2941.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 57171e781c5cd0579ee81040ee47199affb79e84, reversing
changes made to 11b4fcd98bbebfea0eef4f5c18ecd2163bae2941.
</pre>
</div>
</content>
</entry>
<entry>
<title>Turn off kernel error logger and sasl for eunit tests run</title>
<updated>2015-10-01T15:43:09+00:00</updated>
<author>
<name>Alexander Shorin</name>
<email>kxepal@apache.org</email>
</author>
<published>2015-09-29T15:03:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=abed24e1c2006118addd43b9cdda57af5e1cf2e7'/>
<id>abed24e1c2006118addd43b9cdda57af5e1cf2e7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
