0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-10 09:41:52 +02:00

ci: bump test-unit-shards from 3 to 4

The 3-shard combined unit run came in at 11:42 wall (slowest shard),
slightly worse than the prior parallel-jobs setup (10:55). The
per-shard race-instrumented compile happens cold for each job and
doesn't shard, so per-shard test work was ~67% higher than a clean
3-way split would suggest. N=4 amortizes that overhead across more
runners.

Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-05-09 06:24:56 +02:00
parent 8337e1c5f3
commit 5c2bcdb64c
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -134,7 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3]
shard: [1, 2, 3, 4]
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.19.15
@ -189,7 +189,7 @@ jobs:
run: make test-backend-shard test-check
env:
TEST_SHARD: ${{ matrix.shard }}
TEST_TOTAL_SHARDS: 3
TEST_TOTAL_SHARDS: 4
GOTEST_FLAGS: -race -timeout=20m
TAGS: bindata
GITHUB_READ_TOKEN: ${{ secrets.GITHUB_READ_TOKEN }}
@ -197,7 +197,7 @@ jobs:
run: make test-backend-gogit-shard test-check
env:
TEST_SHARD: ${{ matrix.shard }}
TEST_TOTAL_SHARDS: 3
TEST_TOTAL_SHARDS: 4
GOTEST_FLAGS: -race -timeout=20m
TAGS: bindata gogit
GOEXPERIMENT: