From b4b8c489e6e9fe36349eced5d4249467b25df2a7 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 8 Jul 2023 11:35:00 +0200 Subject: [PATCH] [CI] Forgejo Actions based release process (squash) MySQL optimization Refs: https://codeberg.org/forgejo/forgejo/issues/976 --- .forgejo/workflows/testing.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/testing.yml b/.forgejo/workflows/testing.yml index 22e73f5378..eb1958528a 100644 --- a/.forgejo/workflows/testing.yml +++ b/.forgejo/workflows/testing.yml @@ -62,12 +62,16 @@ jobs: image: codeberg.org/forgejo/test_env:main services: mysql8: - image: mysql:8 + image: mysql:8-debian env: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: testgitea ports: - "3306:3306" + # + # See also https://codeberg.org/forgejo/forgejo/issues/976 + # + cmd: ['mysqld', '--innodb-adaptive-flushing=OFF', '--innodb-buffer-pool-size=4G', '--innodb-log-buffer-size=128M', '--innodb-flush-log-at-trx-commit=0', '--innodb-flush-log-at-timeout=30', '--innodb-flush-method=nosync', '--innodb-fsync-threshold=1000000000'] steps: - uses: https://code.forgejo.org/actions/checkout@v3 - uses: https://code.forgejo.org/actions/setup-go@v4