Add on demand checks for Codra dependencies
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 38/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- docker, node.js, postgresql, typescript
Piste de recherche
Start by reading the existing setup and runtime adapter code, then find where dependency checks can be started and how shared results are represented. Implement checks for the listed dependencies while preserving the stated on-demand PostgreSQL behavior and secret handling; verify success, failure, unavailable, and database cold start or timeout cases in both runtimes. Done means the requested checks and tests work and typecheck, test, and lint pass.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Goal
Build the backend checks used by Codra's manual setup and dependency check. The dashboard will start these checks and display their results in a separate subissue, #158.
Checks to support
Check the dependencies Codra can verify: GitHub App configuration and access, available webhook delivery information, model provider credentials, the configured queue or worker, and PostgreSQL. If the current runtime cannot verify a dependency, return an unavailable result instead of reporting a failure.
Important database behavior
PostgreSQL checks must happen only after an operator asks for them or when a normal Codra operation needs the database. A connection attempt may wake a suspended serverless database. Do not add scheduled probes, keep alive connections, or other behavior that prevents it from suspending. If a cold start or timeout occurs, report it clearly where possible.
Implementation guidance
Keep the check result format in shared code, and use the existing runtime adapters to perform checks that depend on Cloudflare or Node/Docker services. Do not expose API keys, private keys, or other secrets in results or logs. Check the current setup and permission state without changing it.
Done when
- Each supported dependency returns passed, failed, or unavailable with a short explanation and next step.
- PostgreSQL is checked on demand and is not kept awake.
- The behavior works in both Cloudflare Workers and Node/Docker. Runtime specific checks may be unavailable when a runtime lacks the needed access.
- Tests cover success, failure, unavailable results, and database cold start or timeout behavior.
-
npm run typecheck,npm test, andnpm run lintall pass.
- Langage dominant
- TypeScript
- Étoiles
- 125
- Forks
- 23
- Merge moyen
- 2 j 13 h
- PR mergées (30 j)
- 12
Préparer son environnement
- Fournit un Dockerfile ou un 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 devarshishimpi/codra
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
devarshishimpi/codra#178 ·
Les mainteneurs répondent en général sous 1 jour
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
devarshishimpi/codra#176 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
devarshishimpi/codra#186 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
devarshishimpi/codra#185 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 4/5 3-5 jours Accessibilité débutants 58/100
devarshishimpi/codra#184 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de devarshishimpi/codra
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 83/100
gofish-graphics/gofish-graphics#1384 ·
Les mainteneurs répondent en général sous 1 jour
-
adapter bug
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
Olanetsoft/agent-lookout#353 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
vicharanashala/vibe#1542 ·
Les mainteneurs répondent en général sous 1 jour
-
bug chore P2 size:XS
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
josephfung/curia#2666 ·
Les mainteneurs répondent en général sous 1 jour
-
area: batch
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
inabagumi/shinju-date#7294 ·
Les mainteneurs répondent en général sous 1 jour