Commit Graph

2 Commits

Author SHA1 Message Date
kjh2064 f0e8ef9b4f docs: Harness Gitea Actions debugging methodology
Document the two-stage debugging pattern discovered while fixing
prepare-release.yml (Run #1996-2000):

1. PowerShell harness for workflow_dispatch trigger + poll-to-completion
   - Working pattern for POST .../dispatches (204 = success)
   - Known PowerShell/HttpClient limitation: cannot read error response
     body via GetResponseStream() in PS7

2. SSH log-reading harness for when the Gitea API has no working
   /logs endpoint (404 on job logs):
   - Match runner container logs (task ID) to the triggered run
   - Locate actions_log/{owner}/{repo}/{shard}/{taskId}.log.zst
   - Stream-decompress with 'zstd -dc' and grep for 'Failure'/'exitcode'

3. Network debugging commands for dispatch 500s / stuck runners
   (docker network inspect, restart timing, exec connectivity test)

4. Table of real failure patterns hit and their fixes (YAML multiline
   notes, unset git identity, missing gh CLI in runner image)
2026-07-12 00:20:53 +09:00
kjh2064 e0af3c3d34 docs: Finalize Phase 4-5 CI/CD (Manual SSH deployment strategy, Gitea Actions reference)
Deploy to Production / Build Release (push) Failing after 39s
Deploy to Production / Pre-Deployment Verification (push) Has been skipped
Deploy to Production / Deploy to Production (push) Has been skipped
Deploy to Production / Post-Deployment Reporting (push) Successful in 1s
- Add Phase 4: CI/CD Pipeline Hardening status (80% complete)
  • deploy-prod.yml 4-stage pipeline (223 lines) ✓
  • Workflow consolidation (ci.yml + deploy-prod.yml) ✓
  • SSH_KEY secret registered ✓
  • Note: Act runner network limitation (workaround: manual SSH) ⚠️

- Add Phase 5: Admin UI & Deployment Optimization (complete)
  • Tabler redesign (dashboard, sidebar, responsive) ✓
  • Build: 0 errors, 0 warnings ✓
  • E2E tests: 8/8 passing ✓
  • Production: commit 30fb702 active since 21:00:55 KST ✓

- Update Deployment & Operations section:
  • Add complete manual SSH deployment procedure
  • Add rollback instructions
  • Document Gitea Actions limitation + workaround
  • Add health check and monitoring commands
  • Reference docs/GITEA_ACTIONS_API_GUIDE.md

- Add docs/GITEA_ACTIONS_API_GUIDE.md:
  • Gitea API reference (Run/Job queries)
  • PowerShell/Bash examples
  • Troubleshooting guide
  • FAQ

Decision: Option A (Current State Maintained) — Stable manual SSH deployment, infrastructure-limited auto-deployment.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-11 22:49:29 +09:00