Allow `XCSkipTests` to run Gradle without `--rerun-tasks`
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- swift
- Ambito
- build-system, testing
Direzione di ricerca
Start by reading XCGradleHarness and compare its Gradle invocation with gradleExec, which already sets rerunTasks: false; also check how the harness selects test tasks. Determine whether incremental compilation handles changes in symlinked peer modules, while ensuring tests still run when Gradle would mark them UP-TO-DATE. Done when an opt-in setting controls task reruns and the tests execute without forcing library recompilation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
XCGradleHarness always passes --rerun-tasks to Gradle. So every swift test compiles SkipLib, SkipFoundation, SkipModel and SkipUI again from scratch, even when I only changed one file in my app.
In my app (about 320 tests, Skip 1.9.20, Gradle 9.8):
| Run | Time |
|---|---|
XCSkipTests |
125 s |
Same gradle testDebug command without --rerun-tasks, after a one-file change |
32 s |
About 30 s of each run is the tests themselves. The rest is compiling the Skip libraries again.
gradleExec already uses rerunTasks: false, so the switch exists. The test harness just doesn't use it.
Two questions:
- Is there a reason the tests need
--rerun-tasks? Maybe Gradle misses changes in the symlinked peer modules? - How about an opt-in env var, like
SKIP_GRADLE_RERUN_TASKS=NO, next toSKIP_GRADLE_VERBOSE? Happy to send a PR.
One catch: with no changes, Gradle marks the test task UP-TO-DATE and doesn't run it. So the harness would still need to force the tests themselves, for example with :Module:testDebugUnitTest --rerun, and keep the compiling incremental.
- Lingua principale
- Swift
- Stelle
- 3.3k
- Fork
- 115
- Merge medio
- 1g 15h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di skiptools/skip
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Comments in functionsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement project
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
skiptools/skip#673 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di skiptools/skip
Issue simili
-
Switch to new string APIApertafxios-coreexperience
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
mozilla-mobile/firefox-ios#36661 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
manaflow-ai/cmux#45713 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Webseite unter iOSApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
playback
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno