* add staging ios app build script * feat(api): add OpenTelemetry LGTM stack for local observability Wire OTel traces, metrics, and logs through a collector to Tempo, Prometheus, and Loki, with custom LLM instrumentation, dev compose overlay, Grafana provisioning, env templates, and development.sh auto-start. Co-authored-by: Cursor <cursoragent@cursor.com> * feat: expand observability, harden dev tooling, and fix expo staging UX Add business and LLM Prometheus metrics with Grafana dashboards, alerting, and a metrics verification script. Wire telemetry through adapters and core LLM paths, and document the local LGTM workflow. Fix development.sh for macOS bash 3.2, open Grafana and eval-web in Chrome, and repair eval-web auto-open (unbound EVAL_WEB_BROWSER_SCHEDULED). Merge internal-eval into the main dev script with improved compose handling. Require EXPO_PUBLIC_* at build time, improve iOS HTTP ATS for staging IPs, show memoir empty state instead of load errors when no chapters exist, and add jest env setup plus chapter list response normalization. Co-authored-by: Cursor <cursoragent@cursor.com> * chore: enable Grafana Assistant Cursor plugin Co-authored-by: Cursor <cursoragent@cursor.com> * fix: memoir empty state and repair withdrawn 0020_chapters_book_id stamp Show empty memoir UI when the chapter list succeeds with no items; treat auth/404 as non-fatal. Extend alembic revision repair so local dev DBs stamped with the removed 0020_chapters_book_id migration can roll back and upgrade to 0019. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Kevin <kevin@brighteng.org> Co-authored-by: Cursor <cursoragent@cursor.com>
1.5 KiB
1.5 KiB
GitHub Actions 说明
API:Docker Build and Deploy
- 工作流文件: docker-build-deploy.yml
- 测试 job:在构建镜像前于
api/下执行uv sync --dev与pytest。 - Secrets:预发无前缀
SSH_*/DEPLOY_PATH、生产PROD_*、镜像ALIYUN_CR_*— 详见 SETUP.md。 - 分支 / Tag:
main→ Staging 服务器;语义化 tagv*.*.*→ Production 服务器;路径过滤为api/**与本 workflow。 - 手动补跑:
workflow_dispatch仅支持main/master(Staging)或vMAJOR.MINOR.PATCHtag(Production)。其它 ref 会在测试与构建前失败。
头部注释与 docker-build-deploy.yml 内说明为最新权威描述。
Android Release
构建签名 APK:见本文件历史版本中 Android 小节或仓库内 app 模块文档(若已迁移)。
App Expo Deploy
- 工作流文件:app-expo-deploy.yml
- 自动触发:
main→stage,use-env staging(app-expo/env/staging→.env)构建 APK artifact;v*.*.*tag →prod,env/production并创建 GitHub Release。 - 手动触发:
dev可用于内部测试包;stage只允许在main/master上补跑;prod需要选择vMAJOR.MINOR.PATCHtag,或在main/master上填写语义化version。 - 产物规则:Staging APK 仅上传为 GitHub Actions artifact;Production APK 才创建正式 GitHub Release。