gerrit/gerrit-acceptance-tests
Dave Borowitz f893c4f87c Use TestProtocol to clone in-process for AbstractDaemonTest
This new JGit feature associates a particular request object with a
URL and processes all git protocol requests in-memory in a separate
thread. For acceptance tests, this request object also describes a
request scope context, such that each connection runs in its own
connection thread with its own Guice request context.

The TestProtocol instance uses custom Upload/ReceivePackFactory
implementations that parallel the implementations within the HTTP and
SSH code paths. On the one hand, this is yet another implementation
that must be modified when changing the git filter stack, but on the
other hand, there were already multiple stacks to begin with. In this
case, I think the performance improvement is also worth the cost.

With this change, single acceptance test methods can run in about
100ms even on my Macbook Air. Startup cost is still relatively high
due to server initialization, but this change opens the door to
reducing that well by removing HTTP and SSH servers from tests
entirely.

Change-Id: Icddd7d2ac448ea3f59909f8ef61f95feb1d67b64
2015-04-13 08:24:21 -04:00
..
src/test/java/com/google/gerrit/acceptance Use TestProtocol to clone in-process for AbstractDaemonTest 2015-04-13 08:24:21 -04:00
BUCK Use TestProtocol to clone in-process for AbstractDaemonTest 2015-04-13 08:24:21 -04:00
tests.defs tests: Use insecure random for acceptance tests 2014-04-24 08:30:43 +02:00