Skip to content

Commit afa224e

Browse files
committed
Restore ram disk for mysql integration tests. Time to run them in CI more than doubled and in some cases more than tripled
1 parent dd087c1 commit afa224e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/tasks/test-rake-task.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ start_db() {
4040

4141
export MYSQL_ROOT=/var/lib/mysql
4242
if [ ! -d /var/lib/mysql-src ]; then # Set up MySQL if it's the first time
43-
mkdir /var/lib/mysql-src
43+
mv "${MYSQL_ROOT}" /var/lib/mysql-src
44+
mkdir -p "${MYSQL_ROOT}"
45+
mount -t tmpfs -o size=512M tmpfs "${MYSQL_ROOT}"
46+
mv /var/lib/mysql-src/* "${MYSQL_ROOT}/"
4447

4548
echo "Copy 'src/spec/assets/sandbox/database/database_server/{private_key,certificate.pem}' to '${MYSQL_ROOT}/'"
4649
cp bosh/src/spec/assets/sandbox/database/database_server/private_key "${MYSQL_ROOT}/server.key"

0 commit comments

Comments
 (0)