Files
awoooi/.gitignore
OG T 9913f5dc6d
Some checks failed
CD Pipeline / build-and-deploy (push) Successful in 6m52s
E2E Health Check / e2e-health (push) Successful in 17s
CD Pipeline (Dev) / build-and-deploy-dev (push) Failing after 9s
feat(infra): 開發環境分離 + BuildKit cache 修復 + circuit breaker 優化
1. k8s/awoooi-dev/: 新建 dev namespace (01-05 配置)
   - Namespace + ResourceQuota (cpu 2/4, mem 4Gi/8Gi)
   - ConfigMap: ENVIRONMENT=dev, LOG_LEVEL=DEBUG, SHADOW_MODE=false
   - Deployment: 1 replica, NodePort 32344, image dev-latest
   - RBAC: awoooi-executor-dev ServiceAccount

2. .gitea/workflows/cd-dev.yaml: dev branch CD pipeline
   - 觸發: dev branch push
   - Build: --no-cache (防 cache poisoning)
   - Tag: dev-{sha} / dev-latest
   - Deploy: awoooi-dev namespace, health check 32344
   - Telegram: [DEV] 前綴通知

3. apps/api/Dockerfile: ARG CACHE_BUST=none (防 BuildKit cache 毒化)
   - deps 層 (pip install) 仍可 cache
   - src/ 和 models.json 層每次重建

4. .gitea/workflows/cd.yaml: 正式環境 API build 加入 CACHE_BUST=git_sha
   - 確保 models.json 等配置變更正確進入 image

5. apps/api/src/services/nvidia_provider.py: timeout 不計入 circuit breaker
   - TimeoutException → 只 log,不 record_failure()
   - 只有硬性錯誤 (auth/rate limit/exception) 才斷路

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 16:22:21 +08:00

83 lines
1.2 KiB
Plaintext

# =============================================================================
# AWOOOI - .gitignore
# =============================================================================
# 依賴套件
node_modules/
.pnp
.pnp.js
yarn.lock
package-lock.json
# 測試與建置產物
coverage/
.next/
out/
build/
dist/
.turbo/
# Playwright 測試產物 (動態生成,不需版本控制)
**/playwright-report/
**/test-results/
**/.auth/
# 保留 Phase 19 參考截圖
!apps/web/test-results/phase19/
# Python
__pycache__/
*.py[cod]
*$py.class
.Python
*.so
.venv/
venv/
ENV/
# 環境變數與機密 (絕對不能進 Git)
.env
.env.*
.env.local
.env.*.local
*.pem
*.key
secrets/
# 日誌
npm-debug.log*
yarn-debug.log*
.pnpm-debug.log*
*.log
# 編輯器設定
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea/
*.swp
*.swo
# 系統檔案
.DS_Store
Thumbs.db
# Workspace 檔案 (本地使用,不需提交)
*.code-workspace
# Kubernetes 機密
*-secret.yaml
*-secrets.yaml
# 暫存檔案
tmp/
temp/
*.tmp
# AI Tools & Agents (本地使用,不需提交到 Git)
# 防止 Claude Code worktrees 干擾 CI/CD checkout
.claude/worktrees/
.claude/scheduled_tasks.lock
.cursor/
.agents/memory/
playwright-mcp/