cockroachdb / cockroachdb/cockroach

testserver: lower unit test costs (+increase perf) by using the loopback listener for SQL conns to TestServer

Open
#107,747 3 comments 1 reaction 0 assignees View on GitHub
A-testeng-foundations A-testing C-enhancement db-cy-23 T-testeng
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

(Followup to #107659)

Inside a crdb server there is a "loopback listener" (`*netutil.Listener`) which can be used to establish SQL connections to the server without using the OS TCP stack nor TLS.

Currently this is not used in tests; instead tests go through the overhead of setting up all the client parameters (including placing TLS certs on disk) to establish a connection.

We should explore the use of the loopback listener for better test performance.

Jira issue: CRDB-30182
Epic: CRDB-28893

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.