loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'ci: use more `tmpfs` and `noatime` for faster CI' (#6046) from viceice/ci/test-perf into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6046
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

+18 -6
+3
.forgejo/workflows-composite/setup-env/action.yaml
··· 1 + # TODO: 2 + # - [ ] prepare a forgejo ci image with the necessary tools and forgejo user 1 3 runs: 2 4 using: "composite" 3 5 steps: ··· 7 9 # ignore if the user already exists (like with the playwright image) 8 10 adduser --quiet --comment forgejo --disabled-password forgejo || true 9 11 chown -R forgejo:forgejo . 12 + 10 13 - uses: https://codeberg.org/fnetx/setup-cache-go@b2214eaf6fb44c7e8512c0f462a2c3ec31f86a73 11 14 with: 12 15 username: forgejo
+15 -6
.forgejo/workflows/testing.yml
··· 14 14 runs-on: docker 15 15 container: 16 16 image: 'code.forgejo.org/oci/node:20-bookworm' 17 + options: --tmpfs /tmp:exec,noatime 17 18 steps: 18 19 - name: event info 19 20 run: | ··· 30 31 runs-on: docker 31 32 container: 32 33 image: 'code.forgejo.org/oci/node:20-bookworm' 34 + options: --tmpfs /tmp:exec,noatime 33 35 steps: 34 36 - uses: https://code.forgejo.org/actions/checkout@v4 35 37 - run: make deps-frontend ··· 54 56 needs: [backend-checks, frontend-checks] 55 57 container: 56 58 image: 'code.forgejo.org/oci/node:20-bookworm' 59 + options: --tmpfs /tmp:exec,noatime 57 60 services: 58 61 elasticsearch: 59 62 image: code.forgejo.org/oci/bitnami/elasticsearch:7 ··· 64 67 minio: 65 68 image: code.forgejo.org/oci/bitnami/minio:2024.8.17 66 69 options: >- 67 - --hostname gitea.minio --tmpfs /bitnami/minio/data 70 + --hostname gitea.minio --tmpfs /bitnami/minio/data:noatime 68 71 env: 69 72 MINIO_DOMAIN: minio 70 73 MINIO_ROOT_USER: 123456 ··· 94 97 needs: [backend-checks, frontend-checks] 95 98 container: 96 99 image: 'code.forgejo.org/oci/playwright:latest' 100 + options: --tmpfs /tmp:exec,noatime 97 101 steps: 98 102 - uses: https://code.forgejo.org/actions/checkout@v4 99 103 with: ··· 135 139 needs: [backend-checks, frontend-checks, test-unit] 136 140 container: 137 141 image: 'code.forgejo.org/oci/node:20-bookworm' 142 + options: --tmpfs /tmp:exec,noatime 138 143 name: ${{ format('test-remote-cacher ({0})', matrix.cacher.name) }} 139 144 strategy: 140 145 matrix: 141 146 cacher: 142 147 - name: redis 143 148 image: code.forgejo.org/oci/bitnami/redis:7.2 144 - options: --tmpfs /bitnami/redis/data 149 + options: --tmpfs /bitnami/redis/data:noatime 145 150 - name: redict 146 151 image: registry.redict.io/redict:7.3.0-scratch 147 - options: --tmpfs /data 152 + options: --tmpfs /data:noatime 148 153 - name: valkey 149 154 image: code.forgejo.org/oci/bitnami/valkey:7.2 150 - options: --tmpfs /bitnami/redis/data 155 + options: --tmpfs /bitnami/redis/data:noatime 151 156 - name: garnet 152 157 image: ghcr.io/microsoft/garnet-alpine:1.0.14 153 - options: --tmpfs /data 158 + options: --tmpfs /data:noatime 154 159 services: 155 160 cacher: 156 161 image: ${{ matrix.cacher.image }} ··· 176 181 needs: [backend-checks, frontend-checks] 177 182 container: 178 183 image: 'code.forgejo.org/oci/node:20-bookworm' 184 + options: --tmpfs /tmp:exec,noatime 179 185 services: 180 186 mysql: 181 187 image: 'code.forgejo.org/oci/bitnami/mysql:8.4' ··· 186 192 # See also https://codeberg.org/forgejo/forgejo/issues/976 187 193 # 188 194 MYSQL_EXTRA_FLAGS: --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 --disable-log-bin 189 - options: --tmpfs /bitnami/mysql/data 195 + options: --tmpfs /bitnami/mysql/data:noatime 190 196 steps: 191 197 - uses: https://code.forgejo.org/actions/checkout@v4 192 198 - uses: ./.forgejo/workflows-composite/setup-env ··· 206 212 needs: [backend-checks, frontend-checks] 207 213 container: 208 214 image: 'code.forgejo.org/oci/node:20-bookworm' 215 + options: --tmpfs /tmp:exec,noatime 209 216 services: 210 217 minio: 211 218 image: code.forgejo.org/oci/bitnami/minio:2024.8.17 ··· 244 251 needs: [backend-checks, frontend-checks] 245 252 container: 246 253 image: 'code.forgejo.org/oci/node:20-bookworm' 254 + options: --tmpfs /tmp:exec,noatime 247 255 steps: 248 256 - uses: https://code.forgejo.org/actions/checkout@v4 249 257 - uses: ./.forgejo/workflows-composite/setup-env ··· 271 279 - test-unit 272 280 container: 273 281 image: 'code.forgejo.org/oci/node:20-bookworm' 282 + options: --tmpfs /tmp:exec,noatime 274 283 steps: 275 284 - uses: https://code.forgejo.org/actions/checkout@v4 276 285 - uses: ./.forgejo/workflows-composite/setup-env