Add on demand checks for Codra dependencies

未关闭
#157 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, node.js, postgresql, typescript

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

enhancement good first issue help wanted

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, and npm run lint all pass.
主要语言
TypeScript
星标
125
派生
23
平均合并
2 天 13 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

devarshishimpi/codra 的其他 Issue

查看 devarshishimpi/codra 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。