Repository navigation
ci: add pull request validation workflow - #113
Merged
Merged
Conversation
xiwangly2
force-pushed
the
feat/ci-cd-workflows
branch
from
October 1, 2026 12:06
9f251eb to
eb23f4e
Compare
Contributor
Author
|
Rebased this CI PR onto upstream Validation performed locally after rebase:
No workflow conflicts were required; this keeps the CI changes current with upstream's latest build artifact naming changes. |
Collaborator
PR #113 审查报告:ci: add pull request validation workflow
结论:暂不可合并理由:平台报告
需要作者 rebase 解决冲突后复审。除此之外,在已审查范围内未发现阻塞缺陷;PR 在 GitHub 上触发的 3 个必需检查全部成功。 按模块改动汇总1. 新增
|
| 项目 | 命令 / 来源 | 结果 |
|---|---|---|
| head SHA 一致性 | git fetch origin pull/113/head + git rev-parse |
✅ FETCH_HEAD == eb23f4e |
| base 祖先关系 | git merge-base --is-ancestor bb66efb 3f82101 |
✅ 通过(base 是 main 历史前缀) |
| 合并兼容性 | 本地 git merge --no-commit 3f82101(已 abort 还原) |
❌ preservation.test.ts 内容冲突(与平台 dirty 一致) |
| GitHub CI(head eb23f4e) | check-runs API | ✅ Project scripts / Server test and build / Client test and build 全部 success |
| 相关单元测试(本地) | npx vitest run src/utils/__tests__/chunkUpload.fault.test.ts src/utils/__tests__/chunkUpload.preservation.test.ts(Node v24.16.0,vitest 5.x) |
✅ 2 文件 10 测试全通过(23.16s) |
| client 构建(本地) | npm run build --prefix client |
✅ 成功(14.74s,既有 chunk 体积警告,PR 描述已披露) |
| 脚本语法(本地) | node --check scripts/package.js / scripts/resolve-build-version.js;node scripts/resolve-build-version.js |
✅ 全部 exit 0(版本解析 3.13.32-2-geb23f4e) |
| 依赖安装(本地) | npm ci --prefix client |
✅ exit 0(npm audit 报既有依赖告警,非本 PR 引入) |
| server 测试/构建(本地) | 未执行 | PR 无 server 改动;平台 CI 已通过,风险低 |
未验证项与剩余风险
- 本地 Node 为 v24.16.0,CI 固定 22.16.0,存在小版本差异(无 Node 版本相关代码改动,风险低)。
- workflow 在合并到 main 后的 push 触发路径(
push: branches: [main])无法在 PR 上预演,需合并后观察首轮运行。 - 未运行 server 本地测试(PR 无 server 改动,以平台 CI 为准)。
- 合并冲突解决后的 rebase 结果未审查(尚未产生新提交)。
结论绑定的提交快照
- 本结论仅对 base
bb66efb+ headeb23f4e有效。head 更新(含 rebase 解决冲突后)需要重新审查并更新本报告。
审查资源与清理状态
- 审查分支:
review/pr-113-eb23f4e-r1(本地,未推送) - 审查 worktree:
C:\Users\17737\Code\Opensource\GameServerManager3\dsh-pr-review-wt\pr-113-eb23f4e - 状态记录:
.git/dsh-pr-reviews/pr-113-eb23f4e-r1/state.json - 合并状态:未合并;worktree 与分支保留,待作者 rebase 后复审或确认合并后清理。
- 备注:worktree 中因本地验证产生
client/node_modules、client/dist等未跟踪产物,清理时若见异常文件应先确认(这些是验证产物,非 PR 内容)。
xiwangly2
force-pushed
the
feat/ci-cd-workflows
branch
from
October 2, 2026 06:23
eb23f4e to
8e00a27
Compare
Contributor
Author
|
Rebased this CI PR onto upstream Conflict resolution followed the review suggestion:
Validation after rebase:
|
xiwangly2
force-pushed
the
feat/ci-cd-workflows
branch
from
October 2, 2026 11:06
8e00a27 to
3d36b99
Compare
Contributor
Author
|
Rebased this CI PR onto upstream Validation after rebase:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a separate CI workflow for regular contribution validation, based on
upstream/mainand independent from the current riscv64 Draft PR.Changes
.github/workflows/ci.ymlfor PR,mainpush, and manual validation.npm ci,npm test, andnpm run build.npm ci,npm test, andnpm run build.npm installtonpm ciand cache all lockfiles.Validation
git diff --check.github/workflows/ci.ymland.github/workflows/build.ymlnode --check scripts/package.jsnode --check scripts/resolve-build-version.jsnode scripts/resolve-build-version.jscd server && npm testcd server && npm run buildcd client && npm testcd client && npm run buildNote: client build still reports the existing Vite chunk/static-dynamic import warnings, but the build exits successfully.