Run the CpuAffinity JVM tests in the Android workflow
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
Línea de trabajo
Lee .github/workflows/android.yml y los pasos existentes para las pruebas JVM; después, revisa CpuAffinity.kt y CpuAffinityTest.kt para confirmar la tarea de Gradle. Ejecuta ./gradlew :hermit-notifications:testDebugUnitTest desde apps/mobile/android y añade esa tarea como un paso del workflow después de la prueba del mensaje de aprobación. El trabajo estará listo cuando el nuevo paso supere las cuatro pruebas y no cambie ningún otro contenido del workflow.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 11
- Forks
- 0
- Merge medio
- 10 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DojoCodingLabs/hermit
-
docs good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
DojoCodingLabs/hermit#73 ·
Los mantenedores suelen responder en 1 día
-
device-lab
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
DojoCodingLabs/hermit#45 ·
Los mantenedores suelen responder en 1 día
-
device-lab
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
DojoCodingLabs/hermit#44 ·
Los mantenedores suelen responder en 1 día
-
device-lab
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DojoCodingLabs/hermit#43 ·
Los mantenedores suelen responder en 1 día
-
agent-friendly docs good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DojoCodingLabs/hermit#39 ·
Los mantenedores suelen responder en 1 día
Todos los issues de DojoCodingLabs/hermit
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
superlinked/sie#1033 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
remix-run/react-router#15838 ·
Los mantenedores suelen responder en 1 día
-
area/ci bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
melgarafael/DeskcommCRM#5290 ·
Los mantenedores suelen responder en 1 día