Skip to content

Commit e596a3b

Browse files
committed
Prevent import-examples to fail
The mariadb images seems to now allow a smaller maximum packet by default. This resulted in problems for the boolfind problem which we didn't detect as all checks would still pass correctly. We now also capture the SQL logs to detect this easier and increase the maximum packetsize (1G).
1 parent a3f6898 commit e596a3b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/jobs/baseinstall.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ mysql_root "show databases"
6464
mysql_root "SELECT CURRENT_USER();"
6565
mysql_root "SELECT USER();"
6666
mysql_root "SELECT user,host FROM mysql.user"
67+
mysql_root "SET max_allowed_packet=1073741824"
6768
echo "unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret
6869
mysql_user "SELECT CURRENT_USER();"
6970
mysql_user "SELECT USER();"

.github/workflows/chroot-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
check-chroot-arch:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
1212
container:
1313
image: domjudge/gitlabci:24.04
1414
options: --privileged --cgroupns=host --init

.github/workflows/integration.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ jobs:
8888
with:
8989
name: DB-dump
9090
path: /tmp/db.sql
91+
- name: Get SQL logs
92+
run: docker logs "${{ job.services.sqlserver.id }}"
93+
- name: Collect docker logs on failure
94+
if: ${{ !cancelled() }}
95+
uses: jwalton/gh-docker-logs@v1
96+
with:
97+
dest: '/tmp/docker-logs'
9198
- name: Upload all logs/artifacts
9299
if: ${{ !cancelled() }}
93100
uses: actions/upload-artifact@v4
@@ -96,6 +103,8 @@ jobs:
96103
path: |
97104
/var/log/nginx
98105
/opt/domjudge/domserver/webapp/var/log/*.log
106+
/tmp/docker-logs
107+
/tmp/artifacts
99108
- name: Verifying submissions
100109
shell: bash
101110
run: |

0 commit comments

Comments
 (0)