You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by xc...@apache.org on 2019/02/27 03:51:57 UTC
[flink-web] branch asf-site updated: [FLINK-11567] Translate "How
to Review a Pull Request" page into Chinese
This is an automated email from the ASF dual-hosted git repository.
xccui pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/flink-web.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 63af7e0 [FLINK-11567] Translate "How to Review a Pull Request" page into Chinese
63af7e0 is described below
commit 63af7e0c6fa4a87072f54fc6bf0cf4ebe5c56b25
Author: linjie <xu...@gmail.com>
AuthorDate: Sat Feb 16 07:56:35 2019 -0500
[FLINK-11567] Translate "How to Review a Pull Request" page into Chinese
This closes #171.
---
content/zh/reviewing-prs.html | 120 +++++++++++++++++++++---------------------
reviewing-prs.zh.md | 104 ++++++++++++++++++------------------
2 files changed, 112 insertions(+), 112 deletions(-)
diff --git a/content/zh/reviewing-prs.html b/content/zh/reviewing-prs.html
index 8137a1b..d3a56cd 100644
--- a/content/zh/reviewing-prs.html
+++ b/content/zh/reviewing-prs.html
@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <title>Apache Flink: 如何 Review 一个 Pull Request</title>
+ <title>Apache Flink: 如何审核 Pull Request</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
@@ -146,123 +146,123 @@
<div class="col-sm-9">
<div class="row-fluid">
<div class="col-sm-12">
- <h1>如何 Review 一个 Pull Request</h1>
+ <h1>如何审核 Pull Request</h1>
<hr />
-<p>This guide is for all committers and contributors that want to help with reviewing code contributions. Thank you for your effort - good reviews are one the most important and crucial parts of an open source project. This guide should help the community to make reviews such that:</p>
+<p>本指南适用于希望帮助审核代码的所有提交者和贡献者。感谢你的努力 - 良好的审核是开源项目中最重要也是最关键的部分之一。本文旨在协助社区开展代码审核工作,以达到下列目的:</p>
<ul>
- <li>Contributors have a good contribution experience.</li>
- <li>Our reviews are structured and check all important aspects of a contribution.</li>
- <li>We make sure to keep a high code quality in Flink.</li>
- <li>We avoid situations where contributors and reviewers spend a lot of time refining a contribution that gets rejected later.</li>
+ <li>让贡献者拥有良好的贡献体验。</li>
+ <li>将审核过程结构化,以涵盖所有需要检查的重要方面。</li>
+ <li>保持 Flink 代码的高质量。</li>
+ <li>避免贡献者和审核者花费大量时间完善代码却最终被拒绝提交的情况。</li>
</ul>
<hr />
<div class="page-toc">
<ul id="markdown-toc">
- <li><a href="#review-checklist" id="markdown-toc-review-checklist">Review Checklist</a> <ul>
- <li><a href="#is-the-contribution-well-described" id="markdown-toc-is-the-contribution-well-described">1. Is the Contribution Well-Described?</a></li>
- <li><a href="#is-there-consensus-that-the-change-or-feature-should-go-into-flink" id="markdown-toc-is-there-consensus-that-the-change-or-feature-should-go-into-flink">2. Is There Consensus that the Change or Feature Should Go into Flink?</a></li>
- <li><a href="#does-the-contribution-need-attention-from-some-specific-committers-and-is-there-time-commitment-from-these-committers" id="markdown-toc-does-the-contribution-need-attention-from-some-specific-committers-and-is-there-time-commitment-from-these-committers">3. Does the Contribution Need Attention from some Specific Committers and Is There Time Commitment from These Committers?</a></li>
- <li><a href="#does-the-implementation-follow-the-right-overall-approacharchitecture" id="markdown-toc-does-the-implementation-follow-the-right-overall-approacharchitecture">4. Does the Implementation Follow the Right Overall Approach/Architecture?</a></li>
- <li><a href="#is-the-overall-code-quality-good-meeting-standard-we-want-to-maintain-in-flink" id="markdown-toc-is-the-overall-code-quality-good-meeting-standard-we-want-to-maintain-in-flink">5. Is the Overall Code Quality Good, Meeting Standard we Want to Maintain in Flink?</a></li>
+ <li><a href="#section" id="markdown-toc-section">审核清单</a> <ul>
+ <li><a href="#section-1" id="markdown-toc-section-1">1.贡献的描述是否清晰?</a></li>
+ <li><a href="#flink" id="markdown-toc-flink">2.是否一致认为这一变更或者功能应该进入 Flink?</a></li>
+ <li><a href="#committer--committer-" id="markdown-toc-committer--committer-">3. 贡献是否需要一些特定的 committer 的关注,这些 committer 有时间投入吗?</a></li>
+ <li><a href="#section-2" id="markdown-toc-section-2">4. 实现的整体方案或架构是否正确?</a></li>
+ <li><a href="#flink-" id="markdown-toc-flink-">5.整体代码质量是否良好,是否符合我们希望在 Flink 中维护的标准?</a></li>
</ul>
</li>
- <li><a href="#review-with-the-flinkbot" id="markdown-toc-review-with-the-flinkbot">Review with the @flinkbot</a></li>
+ <li><a href="#flinkbot-" id="markdown-toc-flinkbot-">使用 @flinkbot 进行审核</a></li>
</ul>
</div>
-<h2 id="review-checklist">Review Checklist</h2>
+<h2 id="section">审核清单</h2>
-<p>Every review needs to check the following five aspects. We encourage to check these aspects in order, to avoid spending time on detailed code quality reviews when there is no consensus yet whether a feature or change should actually be added.</p>
+<p>每次审核都需要检查以下五个方面。我们建议按照以下顺序进行检查,以避免在还没有就是否添加某项功能或需要改动达成共识之前,就花费时间进行详细的代码质量审核。</p>
-<h3 id="is-the-contribution-well-described">1. Is the Contribution Well-Described?</h3>
+<h3 id="section-1">1.贡献的描述是否清晰?</h3>
-<p>Check whether the contribution is sufficiently well-described to support a good review. Trivial changes and fixes do not need a long description. Any pull request that changes functionality or behavior needs to describe the big picture of these changes, so that reviews know what to look for (and don’t have to dig through the code to hopefully understand what the change does).</p>
+<p>检查贡献是否有充分的描述以方便审核,不重要的更改和修复不需要很长的描述,任何改变功能或行为的 pull request 都需要描述这些改变的重点, 以便知道审核什么内容(并且不必钻研代码来了解更改的作用)。</p>
-<p>Changes that require longer descriptions are ideally based on a prior design discussion in the mailing list or in Jira and can simply link to there or copy the description from there.</p>
+<p>需要更长描述的更改,理想情况下基于邮件列表或 JIRA 中的事先设计讨论,可以简单地链接到那里或从那里复制描述。</p>
-<p><strong>A contribution is well-described if the following questions 2, 3, and 4 can be answered without looking at the code.</strong></p>
+<p><strong>如果在不查看代码的情况下能回答以下问题2、3、4,则该贡献得到了很好的描述。</strong></p>
<hr />
-<h3 id="is-there-consensus-that-the-change-or-feature-should-go-into-flink">2. Is There Consensus that the Change or Feature Should Go into Flink?</h3>
+<h3 id="flink">2.是否一致认为这一变更或者功能应该进入 Flink?</h3>
-<p>For bug fixes, this needs to be checked only in case it requires bigger changes or might break existing programs and setups.</p>
+<p>对于错误修复,只有在需要相对大量改动或可能破坏现有程序和设置时才需要检查。</p>
-<p>Ideally, this question can be directly answered from a Jira issue or a dev-list discussion, except in cases of bug fixes and small lightweight additions/extensions. In that case, this question can be immediately marked as resolved. For pull requests that are created without prior consensus, this question needs to be answered as part of the review.</p>
+<p>理想情况下, 除了错误修复和少量的添加或扩展的情况外,该问题可以从 Jira issue 或开发者邮件列表的讨论中找到答案。在这种情况下,此问题可以立即标记为已解决。对于未事先达成共识而创建的 pull requests,此问题需要作为审核的一部分予以回答。</p>
-<p>The decision whether the change should go into Flink needs to take the following aspects into consideration:</p>
+<p>需从以下几个方面判断是否应将改动引入Flink:</p>
<ul>
- <li>Does the contribution alter the behavior of features or components in a way that it may break previous users’ programs and setups? If yes, there needs to be a discussion and agreement that this change is desirable.</li>
- <li>Does the contribution conceptually fit well into Flink? Is it too much of a special case such that it makes things more complicated for the common case, or bloats the abstractions / APIs?</li>
- <li>Does the feature fit well into Flink’s architecture? Will it scale and keep Flink flexible for the future, or will the feature restrict Flink in the future?</li>
- <li>Is the feature a significant new addition (rather than an improvement to an existing part)? If yes, will the Flink community commit to maintaining this feature?</li>
- <li>Does the feature produce added value for Flink users or developers? Or does it introduce the risk of regression without adding relevant user or developer benefit?</li>
- <li>Could the contribution live in another repository, e.g., <a href="https://bahir.apache.org">Apache Bahir</a> or another external repository?</li>
+ <li>贡献中改变特征或组件行为的做法,是否会对先前用户的代码或设置造成影响?如果是,则需要进行讨论并同意这种变更是值得的。</li>
+ <li>这个贡献在概念上是否适合 Flink ?它是否是某种极端特例,反而会将普通场景复杂化或使抽象及 API 变得臃肿?</li>
+ <li>该功能是否适合 Flink 的架构?未来它是否会扩展并保持 Flink 的灵活性,或者该功能将来会限制 Flink 的发展吗?</li>
+ <li>该功能是一项重要的新增功能(而不是对现有部件的改进)吗?如果是,Flink 社区是否会承诺维护此功能?</li>
+ <li>该功能是否为 Flink 用户或开发人员带来了额外的利益?或者它是否会在相关用户或开发人员无法受益的情况下引入回归风险?</li>
+ <li>可以将贡献提交至其他仓库(例如 <a href="https://bahir.apache.org">Apache Bahir</a>)或外部仓库中吗?</li>
</ul>
-<p>All of these questions should be answerable from the description/discussion in Jira and Pull Request, without looking at the code.</p>
+<p>所有这些问题都应在不看代码的前提下从 Jira 和 pull request 中的描述或讨论中得到回答。</p>
-<p><strong>A feature, improvement, or bug fix is approved once one committer accepts it and no committer disagrees (lazy consensus).</strong></p>
+<p><strong>一旦有一个 committer 接受了某个功能、改进或者错误修复,并且没有其他 committer 不同意(lazy consensus 机制),那么就会批准它。</strong></p>
-<p>In case of diverging opinions, the discussion should be moved to the respective Jira issue or to the dev mailing list and continued until consensus is reached. If the change is proposed by a committer, it is best-practice to seek the approval of another committer.</p>
+<p>如果意见出现分歧,应将讨论转移到各自的 Jira issue 或开发邮件列表中继续进行,直到达成共识。如果变更是由一位 committer 提出的,那么寻求另一位 committer 的批准是最佳做法。</p>
<hr />
-<h3 id="does-the-contribution-need-attention-from-some-specific-committers-and-is-there-time-commitment-from-these-committers">3. Does the Contribution Need Attention from some Specific Committers and Is There Time Commitment from These Committers?</h3>
+<h3 id="committer--committer-">3. 贡献是否需要一些特定的 committer 的关注,这些 committer 有时间投入吗?</h3>
-<p>Some changes require attention and approval from specific committers. For example, changes in parts that are either very performance sensitive, or have a critical impact on distributed coordination and fault tolerance need input by a committer that is deeply familiar with the component.</p>
+<p>一些更改需要特定的 committer 的注意和批准。例如,对性能非常敏感或对分布式协调和容错有关键影响的部件中的更改,这需要一个对相应组件非常熟悉的 committer 的审核。</p>
-<p>As a rule of thumb, special attention is required when the Pull Request description answers one of the questions in the template section “Does this pull request potentially affect one of the following parts” with ‘yes’.</p>
+<p>根据经验,当 pull request 描述中对模板里问题 “Does this pull request potentially affect one of the following parts” 的回答为 “yes” 时,需要特别注意。</p>
-<p>This question can be answered with</p>
+<p>这个问题可以参考如下回答</p>
<ul>
<li><em>Does not need specific attention</em></li>
- <li><em>Needs specific attention for X (X can be for example checkpointing, jobmanager, etc.).</em></li>
+ <li><em>Needs specific attention for X (X 可以是例如 checkpointing、jobmanager 等)</em></li>
<li><em>Has specific attention for X by @commiterA, @contributorB</em></li>
</ul>
-<p><strong>If the pull request needs specific attention, one of the tagged committers/contributors should give the final approval.</strong></p>
+<p><strong>如果 pull request 需要特别关注,则其中一个标记的 committers 或 contributors 应该给出最终批准。</strong></p>
<hr />
-<h3 id="does-the-implementation-follow-the-right-overall-approacharchitecture">4. Does the Implementation Follow the Right Overall Approach/Architecture?</h3>
+<h3 id="section-2">4. 实现的整体方案或架构是否正确?</h3>
-<p>Is this the best approach to implement the fix or feature, or are there other approaches that would be easier, more robust, or more maintainable?
-This question should be answerable from the Pull Request description (or the linked Jira) as much as possible.</p>
+<p>所给出的修复或功能实施方案是最佳吗?还是有其他更容易,更健壮或更易于维护的方案?
+这个问题应该尽可能地从 pull request 描述(或链接的 Jira )中得到回答。</p>
-<p>We recommend to check this before diving into the details of commenting on individual parts of the change.</p>
+<p>我们建议你在深入了解更改的各个部分进行评论之前先检查这一点。</p>
<hr />
-<h3 id="is-the-overall-code-quality-good-meeting-standard-we-want-to-maintain-in-flink">5. Is the Overall Code Quality Good, Meeting Standard we Want to Maintain in Flink?</h3>
+<h3 id="flink-">5.整体代码质量是否良好,是否符合我们希望在 Flink 中维护的标准?</h3>
-<p>This is the detailed code review of the actual changes, covering:</p>
+<p>这是对实际变更的详细代码审核,包括:</p>
<ul>
- <li>Are the changes doing what is described in the design document or PR description?</li>
- <li>Does the code follow the right software engineering practices? Is the code correct, robust, maintainable, testable?</li>
- <li>Are the changes performance aware, when changing a performance sensitive part?</li>
- <li>Are the changes sufficiently covered by tests?</li>
- <li>Are the tests executing fast, i.e., are heavy-weight integration tests only used when necessary?</li>
- <li>Does the code format follow Flink’s checkstyle pattern?</li>
- <li>Does the code avoid to introduce additional compiler warnings?</li>
+ <li>变更是否按照设计文档或 pull request 说明中的描述进行?</li>
+ <li>代码是否遵循正确的软件工程实践?代码是否正确、健壮、可维护、可测试?</li>
+ <li>在更改性能敏感部分时,是否对性能进行了优化?</li>
+ <li>测试是否覆盖了全部改动?</li>
+ <li>测试执行速度是否够快?(是否仅在必要时才使用重量级集成测试?)</li>
+ <li>代码格式是否遵循 Flink 的 checkstyle 模式?</li>
+ <li>代码是否避免引入额外的编译器警告?</li>
</ul>
-<p>Some code style guidelines can be found in the <a href="/contribute-code.html#code-style">Flink Code Style Page</a></p>
+<p>可以在 <a href="/zh/contribute-code.html#code-style">Flink代码样式页面</a> 中找到一些代码样式指南。</p>
-<h2 id="review-with-the-flinkbot">Review with the @flinkbot</h2>
+<h2 id="flinkbot-">使用 @flinkbot 进行审核</h2>
-<p>The Flink community is using a service called <a href="https://github.com/flinkbot">@flinkbot</a> to help with the review of the pull requests.</p>
+<p>Flink 社区正在使用名为 <a href="https://github.com/flinkbot">@flinkbot</a> 的服务来帮助审核 pull request。</p>
-<p>The bot automatically posts a comment tracking the review progress for each new pull request:</p>
+<p>针对每个新的 pull request,机器人都会自动发表评论并跟踪审核进度:</p>
<div class="highlight"><pre><code>### Review Progress
@@ -275,13 +275,13 @@ This question should be answerable from the Pull Request description (or the lin
Please see the [Pull Request Review Guide](https://flink.apache.org/reviewing-prs.html) if you have questions about the review process.
</code></pre></div>
-<p>Reviewers can instruct the bot to tick off the boxes (in order) to indicate the progress of the review.</p>
+<p>审核人可以指示机器人(按顺序)勾选方框以指示审核的进度。</p>
-<p>For approving the description of the contribution, mention the bot with <code>@flinkbot approve description</code>. This works similarly with <code>consensus</code>, <code>architecture</code> and <code>quality</code>.</p>
+<p>用于批准贡献的描述,请使用 <code>@flinkbot approve description</code> @机器人。<code>consensus</code>、<code>architecture</code> 、 <code>quality</code> 情况的操作与之类似。</p>
-<p>For approving all aspects, put a new comment with <code>@flinkbot approve all</code> into the pull request.</p>
+<p>要批准全部方面,请在 pull request 中添加一条带有 <code>@flinkbot approve all</code> 的新评论。</p>
-<p>The syntax for requiring attention is <code>@flinkbot attention @username1 [@username2 ..]</code>.</p>
+<p>提醒他人关注的语法是 <code>@flinkbot attention @username1 [@username2 ..]</code>。</p>
diff --git a/reviewing-prs.zh.md b/reviewing-prs.zh.md
index d252adc..50caa90 100644
--- a/reviewing-prs.zh.md
+++ b/reviewing-prs.zh.md
@@ -1,101 +1,101 @@
---
-title: "如何 Review 一个 Pull Request"
+title: "如何审核 Pull Request"
---
<hr />
-This guide is for all committers and contributors that want to help with reviewing code contributions. Thank you for your effort - good reviews are one the most important and crucial parts of an open source project. This guide should help the community to make reviews such that:
+本指南适用于希望帮助审核代码的所有提交者和贡献者。感谢你的努力 - 良好的审核是开源项目中最重要也是最关键的部分之一。本文旨在协助社区开展代码审核工作,以达到下列目的:
-* Contributors have a good contribution experience.
-* Our reviews are structured and check all important aspects of a contribution.
-* We make sure to keep a high code quality in Flink.
-* We avoid situations where contributors and reviewers spend a lot of time refining a contribution that gets rejected later.
+* 让贡献者拥有良好的贡献体验。
+* 将审核过程结构化,以涵盖所有需要检查的重要方面。
+* 保持 Flink 代码的高质量。
+* 避免贡献者和审核者花费大量时间完善代码却最终被拒绝提交的情况。
----
{% toc %}
-## Review Checklist
+## 审核清单
-Every review needs to check the following five aspects. We encourage to check these aspects in order, to avoid spending time on detailed code quality reviews when there is no consensus yet whether a feature or change should actually be added.
+每次审核都需要检查以下五个方面。我们建议按照以下顺序进行检查,以避免在还没有就是否添加某项功能或需要改动达成共识之前,就花费时间进行详细的代码质量审核。
-### 1. Is the Contribution Well-Described?
+### 1.贡献的描述是否清晰?
-Check whether the contribution is sufficiently well-described to support a good review. Trivial changes and fixes do not need a long description. Any pull request that changes functionality or behavior needs to describe the big picture of these changes, so that reviews know what to look for (and don’t have to dig through the code to hopefully understand what the change does).
+检查贡献是否有充分的描述以方便审核,不重要的更改和修复不需要很长的描述,任何改变功能或行为的 pull request 都需要描述这些改变的重点, 以便知道审核什么内容(并且不必钻研代码来了解更改的作用)。
-Changes that require longer descriptions are ideally based on a prior design discussion in the mailing list or in Jira and can simply link to there or copy the description from there.
+需要更长描述的更改,理想情况下基于邮件列表或 JIRA 中的事先设计讨论,可以简单地链接到那里或从那里复制描述。
-**A contribution is well-described if the following questions 2, 3, and 4 can be answered without looking at the code.**
+**如果在不查看代码的情况下能回答以下问题2、3、4,则该贡献得到了很好的描述。**
-----
-### 2. Is There Consensus that the Change or Feature Should Go into Flink?
+### 2.是否一致认为这一变更或者功能应该进入 Flink?
-For bug fixes, this needs to be checked only in case it requires bigger changes or might break existing programs and setups.
+对于错误修复,只有在需要相对大量改动或可能破坏现有程序和设置时才需要检查。
-Ideally, this question can be directly answered from a Jira issue or a dev-list discussion, except in cases of bug fixes and small lightweight additions/extensions. In that case, this question can be immediately marked as resolved. For pull requests that are created without prior consensus, this question needs to be answered as part of the review.
+理想情况下, 除了错误修复和少量的添加或扩展的情况外,该问题可以从 Jira issue 或开发者邮件列表的讨论中找到答案。在这种情况下,此问题可以立即标记为已解决。对于未事先达成共识而创建的 pull requests,此问题需要作为审核的一部分予以回答。
-The decision whether the change should go into Flink needs to take the following aspects into consideration:
+需从以下几个方面判断是否应将改动引入Flink:
-* Does the contribution alter the behavior of features or components in a way that it may break previous users’ programs and setups? If yes, there needs to be a discussion and agreement that this change is desirable.
-* Does the contribution conceptually fit well into Flink? Is it too much of a special case such that it makes things more complicated for the common case, or bloats the abstractions / APIs?
-* Does the feature fit well into Flink's architecture? Will it scale and keep Flink flexible for the future, or will the feature restrict Flink in the future?
-* Is the feature a significant new addition (rather than an improvement to an existing part)? If yes, will the Flink community commit to maintaining this feature?
-* Does the feature produce added value for Flink users or developers? Or does it introduce the risk of regression without adding relevant user or developer benefit?
-* Could the contribution live in another repository, e.g., [Apache Bahir](https://bahir.apache.org) or another external repository?
+* 贡献中改变特征或组件行为的做法,是否会对先前用户的代码或设置造成影响?如果是,则需要进行讨论并同意这种变更是值得的。
+* 这个贡献在概念上是否适合 Flink ?它是否是某种极端特例,反而会将普通场景复杂化或使抽象及 API 变得臃肿?
+* 该功能是否适合 Flink 的架构?未来它是否会扩展并保持 Flink 的灵活性,或者该功能将来会限制 Flink 的发展吗?
+* 该功能是一项重要的新增功能(而不是对现有部件的改进)吗?如果是,Flink 社区是否会承诺维护此功能?
+* 该功能是否为 Flink 用户或开发人员带来了额外的利益?或者它是否会在相关用户或开发人员无法受益的情况下引入回归风险?
+* 可以将贡献提交至其他仓库(例如 [Apache Bahir](https://bahir.apache.org))或外部仓库中吗?
-All of these questions should be answerable from the description/discussion in Jira and Pull Request, without looking at the code.
+所有这些问题都应在不看代码的前提下从 Jira 和 pull request 中的描述或讨论中得到回答。
-**A feature, improvement, or bug fix is approved once one committer accepts it and no committer disagrees (lazy consensus).**
+**一旦有一个 committer 接受了某个功能、改进或者错误修复,并且没有其他 committer 不同意(lazy consensus 机制),那么就会批准它。**
-In case of diverging opinions, the discussion should be moved to the respective Jira issue or to the dev mailing list and continued until consensus is reached. If the change is proposed by a committer, it is best-practice to seek the approval of another committer.
+如果意见出现分歧,应将讨论转移到各自的 Jira issue 或开发邮件列表中继续进行,直到达成共识。如果变更是由一位 committer 提出的,那么寻求另一位 committer 的批准是最佳做法。
-----
-### 3. Does the Contribution Need Attention from some Specific Committers and Is There Time Commitment from These Committers?
+### 3. 贡献是否需要一些特定的 committer 的关注,这些 committer 有时间投入吗?
-Some changes require attention and approval from specific committers. For example, changes in parts that are either very performance sensitive, or have a critical impact on distributed coordination and fault tolerance need input by a committer that is deeply familiar with the component.
+一些更改需要特定的 committer 的注意和批准。例如,对性能非常敏感或对分布式协调和容错有关键影响的部件中的更改,这需要一个对相应组件非常熟悉的 committer 的审核。
-As a rule of thumb, special attention is required when the Pull Request description answers one of the questions in the template section “Does this pull request potentially affect one of the following parts” with ‘yes’.
+根据经验,当 pull request 描述中对模板里问题 “Does this pull request potentially affect one of the following parts” 的回答为 “yes” 时,需要特别注意。
-This question can be answered with
+这个问题可以参考如下回答
* *Does not need specific attention*
-* *Needs specific attention for X (X can be for example checkpointing, jobmanager, etc.).*
+* *Needs specific attention for X (X 可以是例如 checkpointing、jobmanager 等)*
* *Has specific attention for X by @commiterA, @contributorB*
-**If the pull request needs specific attention, one of the tagged committers/contributors should give the final approval.**
+**如果 pull request 需要特别关注,则其中一个标记的 committers 或 contributors 应该给出最终批准。**
----
-### 4. Does the Implementation Follow the Right Overall Approach/Architecture?
+### 4. 实现的整体方案或架构是否正确?
-Is this the best approach to implement the fix or feature, or are there other approaches that would be easier, more robust, or more maintainable?
-This question should be answerable from the Pull Request description (or the linked Jira) as much as possible.
+所给出的修复或功能实施方案是最佳吗?还是有其他更容易,更健壮或更易于维护的方案?
+这个问题应该尽可能地从 pull request 描述(或链接的 Jira )中得到回答。
-We recommend to check this before diving into the details of commenting on individual parts of the change.
+我们建议你在深入了解更改的各个部分进行评论之前先检查这一点。
----
-### 5. Is the Overall Code Quality Good, Meeting Standard we Want to Maintain in Flink?
+### 5.整体代码质量是否良好,是否符合我们希望在 Flink 中维护的标准?
-This is the detailed code review of the actual changes, covering:
+这是对实际变更的详细代码审核,包括:
-* Are the changes doing what is described in the design document or PR description?
-* Does the code follow the right software engineering practices? Is the code correct, robust, maintainable, testable?
-* Are the changes performance aware, when changing a performance sensitive part?
-* Are the changes sufficiently covered by tests?
-* Are the tests executing fast, i.e., are heavy-weight integration tests only used when necessary?
-* Does the code format follow Flink’s checkstyle pattern?
-* Does the code avoid to introduce additional compiler warnings?
+* 变更是否按照设计文档或 pull request 说明中的描述进行?
+* 代码是否遵循正确的软件工程实践?代码是否正确、健壮、可维护、可测试?
+* 在更改性能敏感部分时,是否对性能进行了优化?
+* 测试是否覆盖了全部改动?
+* 测试执行速度是否够快?(是否仅在必要时才使用重量级集成测试?)
+* 代码格式是否遵循 Flink 的 checkstyle 模式?
+* 代码是否避免引入额外的编译器警告?
-Some code style guidelines can be found in the [Flink Code Style Page]({{ site.baseurl }}/contribute-code.html#code-style)
+可以在 [Flink代码样式页面]({{ site.baseurl }}/zh/contribute-code.html#code-style) 中找到一些代码样式指南。
-## Review with the @flinkbot
+## 使用 @flinkbot 进行审核
-The Flink community is using a service called [@flinkbot](https://github.com/flinkbot) to help with the review of the pull requests.
+Flink 社区正在使用名为 [@flinkbot](https://github.com/flinkbot) 的服务来帮助审核 pull request。
-The bot automatically posts a comment tracking the review progress for each new pull request:
+针对每个新的 pull request,机器人都会自动发表评论并跟踪审核进度:
```
### Review Progress
@@ -109,12 +109,12 @@ The bot automatically posts a comment tracking the review progress for each new
Please see the [Pull Request Review Guide](https://flink.apache.org/reviewing-prs.html) if you have questions about the review process.
```
-Reviewers can instruct the bot to tick off the boxes (in order) to indicate the progress of the review.
+审核人可以指示机器人(按顺序)勾选方框以指示审核的进度。
-For approving the description of the contribution, mention the bot with `@flinkbot approve description`. This works similarly with `consensus`, `architecture` and `quality`.
+用于批准贡献的描述,请使用 `@flinkbot approve description` @机器人。`consensus`、`architecture` 、 `quality` 情况的操作与之类似。
-For approving all aspects, put a new comment with `@flinkbot approve all` into the pull request.
+要批准全部方面,请在 pull request 中添加一条带有 `@flinkbot approve all` 的新评论。
-The syntax for requiring attention is `@flinkbot attention @username1 [@username2 ..]`.
+提醒他人关注的语法是 `@flinkbot attention @username1 [@username2 ..]`。