Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing test

Chiusa Adatta ai principianti
#138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, kotlin

Direzione di ricerca

Inizia da maddi-inspection-kotlin/build.gradle.kts, dove il task test imposta jvmArgs ma non maxHeapSize, e confrontalo con i task test dei moduli più pesanti. Esegui ./gradlew :maddi-inspection-kotlin:test misurando il picco di heap della JVM di test per scegliere un valore. È completato quando il task test del modulo imposta un maxHeapSize esplicito ricavato da questa misurazione e un ./gradlew --continue test completo non perde più i risultati del modulo per esaurimento dell'heap.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

build/ci front-end:kotlin
What happens

A full ./gradlew --continue test of maddi can exit 1 with no failing test in the reports: the test JVM of :maddi-inspection-kotlin runs out of heap, so that module writes no results and the totals simply come out lower.

Execution failed for task ':maddi-inspection-kotlin:test' (registered by plugin 'org.gradle.jvm-test-suite').
> Test process encountered an unexpected problem.
   > Could not complete execution for Gradle Test Executor 21.
      > Java heap space

Seen twice on laser1 on 2026-10-15 (lab run --mb 16g, full maddi then maddi-mod test): once at 2638 tests, once at 2648 (maddi at 444789a5b). Rerun alone, :maddi-inspection-kotlin:test passes: 30 tests, 0 failures.

Why it matters

A reader who sums the test reports sees "0 failures" and a green-looking run; only the exit code and the lower test count tell otherwise.

Likely fix

maddi-inspection-kotlin/build.gradle.kts sets jvmArgs but no maxHeapSize, so the test JVM gets Gradle's default (512m) while K2 and javac share it. Give the test task an explicit maxHeapSize, as the heavier modules do, sized from a measured peak. Not verified which test reaches the limit.

Lingua principale
Java
Stelle
1
Fork
1
Merge medio
2h 22m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodeLaser/maddi

Tutte le issue di CodeLaser/maddi

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.