Run the CpuAffinity JVM tests in the Android workflow
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 88/100
Piste de recherche
Lisez .github/workflows/android.yml et les étapes de test JVM existantes, puis examinez CpuAffinity.kt et CpuAffinityTest.kt pour confirmer la tâche Gradle. Exécutez ./gradlew :hermit-notifications:testDebugUnitTest depuis apps/mobile/android, puis ajoutez cette tâche comme une étape du workflow après le test de la demande d’approbation. Le travail est terminé lorsque la nouvelle étape réussit les quatre tests et qu’aucun autre contenu du workflow ne change.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 11
- Forks
- 0
- Merge moyen
- 10 min
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DojoCodingLabs/hermit
-
docs good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
DojoCodingLabs/hermit#73 ·
Les mainteneurs répondent en général sous 1 jour
-
device-lab
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
DojoCodingLabs/hermit#45 ·
Les mainteneurs répondent en général sous 1 jour
-
device-lab
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
DojoCodingLabs/hermit#44 ·
Les mainteneurs répondent en général sous 1 jour
-
device-lab
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
DojoCodingLabs/hermit#43 ·
Les mainteneurs répondent en général sous 1 jour
-
agent-friendly docs good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
DojoCodingLabs/hermit#39 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de DojoCodingLabs/hermit
Issues similaires
-
bug zoo
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
software-mansion/runntime#151 ·
Les mainteneurs répondent en général sous 4 jours
-
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
sidebandstudio/clawtrate#728 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement github_actions help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tranquilo-art/tranquilo-app#254 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Les mainteneurs répondent en général sous 1 jour
-
bug tooling
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
endora-commerce/endora-commerce#1978 ·
Les mainteneurs répondent en général sous 1 jour