Run the CpuAffinity JVM tests in the Android workflow
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 88/100
Direzione di ricerca
Leggi .github/workflows/android.yml e i passaggi esistenti dei test JVM, poi esamina CpuAffinity.kt e CpuAffinityTest.kt per confermare il task Gradle. Esegui ./gradlew :hermit-notifications:testDebugUnitTest da apps/mobile/android, quindi aggiungi quel task come passaggio del workflow dopo il test della richiesta di approvazione. Il lavoro è completato quando il nuovo passaggio supera tutti e quattro i test e non cambia nessun altro contenuto del workflow.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Why
CpuAffinity.kt reads which cores Android lets Hermit use; the device-adaptive runtime plans the model's threads from it, and the Device lab reports it as allowedCpus. Its JVM tests exist, but no CI job runs them (ROADMAP.md, Now: the Device lab).
What to do
Today .github/workflows/android.yml runs the JVM tests of hermit-autofill and hermit-approval-key only.
-
Read
apps/mobile/modules/hermit-notifications/android/src/main/java/io/dojocoding/hermit/notifications/CpuAffinity.ktand its test,apps/mobile/modules/hermit-notifications/android/src/test/java/io/dojocoding/hermit/notifications/CpuAffinityTest.kt.apps/mobile/modules/hermit-notifications/android/build.gradlealready declares JUnit for it. -
Build the app once as CONTRIBUTING.md says in "Build the Android app", then run the tests on your machine:
(cd apps/mobile/android && ./gradlew :hermit-notifications:testDebugUnitTest)The name follows the two existing steps. If Gradle doesn't know it,
./gradlew projectslists the real one. -
In
android.yml, add one step after "Approval prompt text from the signed payload on the JVM" that runs the same task with--no-daemon, inapps/mobile/android, named in the same style, for example "Allowed cores from Cpus_allowed_list on the JVM".
Done when
- The Android workflow on your pull request runs the new step, and it passes with the four tests in
CpuAffinityTest. - Nothing else in the workflow changes.
How to check
- On your machine: the Gradle command above ends with BUILD SUCCESSFUL.
- On GitHub: the Android workflow runs for pull requests that are ready for review (not drafts) and that touch
apps/mobile/**or the workflow file. Mark yours ready once the step is in.
Keep in mind
- AGENTS.md says to leave CI workflows alone unless the issue is about them. This one is: change only this step.
- Keep actions pinned to commit SHAs and the token read-only. Add no secret and no permission.
- Don't change
CpuAffinity.kthere. If a test fails, open a bug report with what you saw.
- Lingua principale
- TypeScript
- Stelle
- 11
- Fork
- 0
- Merge medio
- 10m
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 DojoCodingLabs/hermit
-
docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
DojoCodingLabs/hermit#73 ·
I maintainer di solito rispondono entro 1 giorno
-
device-lab
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DojoCodingLabs/hermit#45 ·
I maintainer di solito rispondono entro 1 giorno
-
device-lab
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
DojoCodingLabs/hermit#44 ·
I maintainer di solito rispondono entro 1 giorno
-
device-lab
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DojoCodingLabs/hermit#43 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-friendly docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
DojoCodingLabs/hermit#39 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DojoCodingLabs/hermit
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
superlinked/sie#1033 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
remix-run/react-router#15838 ·
I maintainer di solito rispondono entro 1 giorno
-
area/ci bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
melgarafael/DeskcommCRM#5290 ·
I maintainer di solito rispondono entro 1 giorno