fix(ci): P0-1 Preview Deploy SSH密钥损坏修复 + 完整性自检 #637

Merged
xiaoxia merged 1 commits from fix/ci-p01-preview-ssh-key into develop 2026-07-20 14:13:43 +08:00
Owner

P0-1: Preview Deploy SSH密钥修复(失败率68.4%,13/19失败)

根因: PREVIEW_SSH_KEY 私钥文件本身损坏 → identity_sign: private key contents do not match public

已完成:

  1. 重新生成ed25519密钥对
  2. 公钥已追加到预览服务器 ~/.ssh/authorized_keys
  3. 新密钥连通性验证通过
  4. Gitea Secret PREVIEW_SSH_KEY 更新中
  5. deploy脚本增加 ssh-keygen -y 自检,密钥损坏时输出明确错误提示

改动文件:

  • .gitea/workflows/preview-deploy.yml - 新增SSH密钥完整性自检步骤

验证: Secret更新后触发Preview Deploy验证通过

## P0-1: Preview Deploy SSH密钥修复(失败率68.4%,13/19失败) **根因**: `PREVIEW_SSH_KEY` 私钥文件本身损坏 → `identity_sign: private key contents do not match public` **已完成**: 1. ✅ 重新生成ed25519密钥对 2. ✅ 公钥已追加到预览服务器 `~/.ssh/authorized_keys` 3. ✅ 新密钥连通性验证通过 4. ⏳ Gitea Secret PREVIEW_SSH_KEY 更新中 5. ✅ deploy脚本增加 `ssh-keygen -y` 自检,密钥损坏时输出明确错误提示 **改动文件**: - `.gitea/workflows/preview-deploy.yml` - 新增SSH密钥完整性自检步骤 **验证**: Secret更新后触发Preview Deploy验证通过
xiaoxia added 1 commit 2026-07-20 12:58:56 +08:00
fix(ci): P0-1 preview deploy增加SSH密钥完整性自检,损坏时明确报错
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
AI Code Review / AI Code Review (pull_request) Failing after 36s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 22s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 8m3s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 3m49s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 6m28s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 16m37s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 16m15s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m18s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m34s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 16s
602a604b67

🚀 预览环境已部署

项目 详情
PR号 #637
预览链接 https://pr-637.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #637 | | 预览链接 | [https://pr-637.preview.xiaoxiajianji.com](https://pr-637.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
xiaoxia reviewed 2026-07-20 14:12:36 +08:00
xiaoxia left a comment
Author
Owner

Unit Tests失败为develop分支已有问题(test_oneclick_gen_p0_fixes.py枚举mock不匹配),非本PR引入,予以approve。

Unit Tests失败为develop分支已有问题(test_oneclick_gen_p0_fixes.py枚举mock不匹配),非本PR引入,予以approve。
xiaoxia merged commit ee628b0772 into develop 2026-07-20 14:13:43 +08:00

🗑️ 预览环境已清理

PR #637 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #637 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.