Skip to content

Commit 6178688

Browse files
jshacpu
authored andcommitted
Remove background subprocess for DB migrations. (letsencrypt#3226)
We started running our DB migrations in the background to speed up CI. However, the semantics of subprocesses and `wait` mean that if a migration fails, the overall `create_db.sh` doesn't fail. That means, for instance, tests continue to run, and it's hard to find the resulting error. This change runs the migrations in serial again so that we can catch such errors more easily.
1 parent 5928a06 commit 6178688

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/create_db.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ fi
1515
mysql $dbconn -e "SET GLOBAL binlog_format = 'MIXED';"
1616

1717
for dbenv in $DBENVS; do
18-
(
1918
db="boulder_sa_${dbenv}"
2019

2120
if mysql $dbconn -e 'show databases;' | grep $db > /dev/null; then
@@ -62,8 +61,6 @@ for dbenv in $DBENVS; do
6261
mysql $dbconn -D $db -f < $USERS_SQL || die "unable to add users to ${db}"
6362
fi
6463
echo "added users to ${db}"
65-
) &
6664
done
67-
wait
6865

6966
echo "created all databases"

0 commit comments

Comments
 (0)