0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-01 23:32:34 +02:00

ci: stabilize Elasticsearch tests (#37906)

At a 512m heap the CI Elasticsearch GC-thrashes under the jobs' memory
pressure and goes unresponsive, flaking `test-unit` (ES indexer tests
time out) and `test-mysql` (the ES-backed issue indexer blocks the
per-test queue flush). Raise the heap to 1g and disable ML + the startup
GeoIP download.

Co-authored-by: Claude (Opus 4.8) <noreply@anthropic.com>
This commit is contained in:
silverwind 2026-05-30 03:08:57 +02:00 committed by GitHub
parent a342206a21
commit 2960d6889c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,7 +119,9 @@ jobs:
env:
discovery.type: single-node
xpack.security.enabled: false
ES_JAVA_OPTS: "-Xms512m -Xmx512m" # reduce from ES default of 50%
xpack.ml.enabled: false
ingest.geoip.downloader.enabled: false
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
ports:
- "9200:9200"
meilisearch:
@ -193,7 +195,9 @@ jobs:
env:
discovery.type: single-node
xpack.security.enabled: false
ES_JAVA_OPTS: "-Xms512m -Xmx512m" # reduce from ES default of 50%
xpack.ml.enabled: false
ingest.geoip.downloader.enabled: false
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
ports:
- "9200:9200"
smtpimap: