Skip to content

Commit 58959e1

Browse files
author
Michael Vasseur
committed
Test with different SQL isolation levels
To detect potential race conditions it's good to try to restructure the queries to fit in a higher level. Some companies/universities might run with this setting.
1 parent ccb5ae3 commit 58959e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
integration:
1212
runs-on: ubuntu-24.04
1313
timeout-minutes: 20
14+
strategy:
15+
matrix:
16+
SQL_ISOLATION: ['REPEATABLE-READ', 'SERIALIZABLE']
1417
container:
1518
image: domjudge/gitlabci:24.04
1619
options: --privileged --cgroupns=host --init
@@ -39,6 +42,8 @@ jobs:
3942
run: pstree -p
4043
- name: Install DOMjudge
4144
run: .github/jobs/baseinstall.sh all
45+
- name: Set SQL isolation
46+
run: echo "SET GLOBAL transaction_isolation=${{ matrix.SQL_ISOLATION }};" mysql -uroot -proot -hsqlserver
4247
- name: Set up chroot
4348
run: sudo misc-tools/dj_make_chroot -a amd64
4449
- name: Check nginx

0 commit comments

Comments
 (0)