From 15d4d612ebec712e0fc9b5131ea73d805f831fd3 Mon Sep 17 00:00:00 2001 From: qiyinxi Date: Fri, 4 Dec 2026 11:02:33 +0100 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E4=B8=8E=E5=BC=80=E5=8F=91=EF=BC=9A?= =?UTF-8?q?=E5=88=AB=E4=BA=BA=E7=9A=84=20PR=20=E5=90=88=E5=B9=B6=E5=89=8D?= =?UTF-8?q?=E8=A6=81=E6=B5=8B=E5=AE=8C=E6=95=B4=EF=BC=8CP2=20=E4=B9=9F?= =?UTF-8?q?=E6=8C=A1=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 别人提的 PR 要在合并前测完整,发版回归不专门测;审查问题 P2 也挡合并,中英两份同步改。 --- docs/develop/index.md | 9 +++++++-- docs/en/develop/index.md | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/develop/index.md b/docs/develop/index.md index 55ba803..4cbbf2e 100644 --- a/docs/develop/index.md +++ b/docs/develop/index.md @@ -61,9 +61,14 @@ issue、PR、评论和提交说明用中文或英文都可以。 - **更新说明**:用户看得见的改动,在同一个 PR 里加一个 `changelog.d/<名字>..md`,写两行给用户看的话:第一行中文,第二行英文,说的是同一件事,写法见各仓库的 `changelog.d/README.md`。中文那行进发版公告的中文部分(也同步到 Mirror 酱和 AUTO-MAS),英文那行进 GitHub 发布页的英文部分。不会写中文就只写英文那行,在 PR 里说一声(检查会报少了中文那行),由维护者补上中文。 - **检查**:PR 上的 CI 全绿才能合。CI 跑什么见各分区的页面,本地能跑的先在本地跑过。 - **审查**:动了高风险路径的 PR,GitHub 会自动请负责人审查,审过再合。高风险路径列在各仓库的 `.github/CODEOWNERS`:workflow、CI 检查和隐私扫描本身、发版和签名、组件下载和整包更新、推进客体的程序、数据盘、模拟器补丁。其余的 PR 不要求审批,CI 绿了就能合。 -- **问题分级**:审查里提出的问题按 P0–P3 分。P0、P1 合并前修完;P2、P3 不挡合并,合并后挂 issue。 +- **问题分级**:审查里提出的问题按 P0–P3 分。P0、P1、P2 合并前修完;P3 不挡合并,合并后挂 issue。 - **合并**:点「Merge when ready」把 PR 放进合并队列。队列在最新的 `main` 上再跑一遍检查,过了自动 squash 合并,所以分支不用自己追 `main`。有写权限的人自己点;没有的,CI 绿了以后由维护者点。PR 标题会成为 `main` 上那个提交的标题,要能单独看懂。 -- **实机测试按版本做**:不逐个 PR 测。发版前的回归在真实实例上把这一版的改动一起测;查出问题按 PR 去找,必要时先 revert 那个合并提交,修好再提。 +- **实机测试**:发版前的回归只测维护者自己这一版的改动和固定的回归套件,不会专门测别人 PR 里的改动,所以**维护者以外的人提的 PR,要在合并前测完整**: + - 「怎么验证的」写实际跑过的命令和结果(比如 `go test ./...`、`ctest`、某个测试脚本)。 + - 改动会在实例上表现出来的(界面、开关机、游戏、截图、输入等),再写上机测试:Windows 版本和显卡、基于哪个 ModAVD 版本、实例配置(分辨率、内存、核数)、测了哪些场景、结果,附上日志或截图。 + - 没写,或者只写一句「测过了」,维护者会请你补上,补齐前不合。 + - 动了核心路径的(数据盘、整包更新和换包、模拟器补丁、所有实例都走的开机 / 关机),维护者合并前还会在自己的实例上再测一遍。 + - 维护者自己的改动照旧在发版回归里一起测;回归查出问题按 PR 去找,必要时先 revert 那个合并提交,修好再提。 - **没做完的大功能**可以分几个 PR 进 `main`,前提是有开关、默认关着;做完、实机测过再默认打开。 ## 署名与许可 diff --git a/docs/en/develop/index.md b/docs/en/develop/index.md index b1fbed6..c225fde 100644 --- a/docs/en/develop/index.md +++ b/docs/en/develop/index.md @@ -61,9 +61,14 @@ Changes reach `main` in every repository only through a PR, and PRs are merged t - **Release note line**: for a change users can see, add a file `changelog.d/..md` in the same PR with two lines written for users: Chinese first, then English, both saying the same thing; how to write them is in each repository's `changelog.d/README.md`. The Chinese line goes into the Chinese part of the release notes (also shown on MirrorChyan and in AUTO-MAS), the English line into the English part on the GitHub release page. If you do not write Chinese, write only the English line and say so in the PR (the check will report the missing Chinese line); the maintainer will add the Chinese. - **Checks**: a PR can be merged only when all of its CI checks are green. What CI runs is on each area's page; run locally first whatever you can. - **Review**: for a PR that touches a high-risk path, GitHub asks the code owner for a review automatically; wait for that review before merging. The high-risk paths are listed in each repository's `.github/CODEOWNERS`: workflows, the CI checks and the privacy scan themselves, release and signing, component download and package update, programs pushed into the guest, data disks, and emulator patches. Other PRs need no approval and can be merged once CI is green. -- **Severity**: problems raised in review are graded P0 to P3. P0 and P1 are fixed before merging; P2 and P3 do not block the merge and become issues afterwards. +- **Severity**: problems raised in review are graded P0 to P3. P0, P1 and P2 are fixed before merging; P3 does not block the merge and becomes an issue afterwards. - **Merging**: click **Merge when ready** to put the PR into the merge queue. The queue runs the checks again on top of the latest `main` and then squash-merges, so you do not have to keep your branch up to date with `main`. If you have write access, click it yourself; otherwise the maintainer does once CI is green. The PR title becomes the title of the commit on `main`, so it should make sense on its own. -- **Testing on real instances is done per release**, not per PR. The pre-release regression tests the release's changes together on real instances; when it finds a problem, the PR that caused it is tracked down and, if needed, its merge commit is reverted first and the fix comes in a new PR. +- **Testing on real instances**: the pre-release regression covers the maintainer's own changes for that release and the fixed regression suite; it does not test the changes in other people's pull requests specifically. So **a pull request from anyone other than the maintainer has to be fully tested before it is merged**: + - Under "How it was verified", list the commands you actually ran and their results (for example `go test ./...`, `ctest`, a test script). + - If the change shows on an instance (UI, start and shutdown, games, capture, input and so on), also describe the test on a real instance: Windows version and GPU, the ModAVD version it is based on, the instance settings (resolution, memory, cores), the scenarios you tested and the results, with logs or screenshots. + - If this is missing, or just says "tested", the maintainer will ask you to add it, and the pull request is not merged until it is there. + - For a change to a core path (data disks, full-package updates and package swaps, emulator patches, the start / shutdown path every instance goes through), the maintainer tests it again on their own instance before merging. + - The maintainer's own changes are still tested together in the pre-release regression; when it finds a problem, the pull request that caused it is tracked down and, if needed, its merge commit is reverted first and the fix comes in a new pull request. - **A large feature that is not finished** can go into `main` over several PRs as long as it is behind a switch that is off; it is turned on by default once it is finished and tested on a real instance. ## Credit and licensing