You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/04/09 01:44:58 UTC

[GitHub] [hadoop-ozone] iamabug opened a new pull request #794: HDDS-2804. tools/TestTools.md

iamabug opened a new pull request #794: HDDS-2804. tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794
 
 
   ## What changes were proposed in this pull request?
   
   doc translation
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2804
   
   ## How was this patch tested?
   
   hugo server -D

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794#discussion_r410481408
 
 

 ##########
 File path: hadoop-hdds/docs/content/tools/TestTools.zh.md
 ##########
 @@ -0,0 +1,229 @@
+---
+title: "测试工具"
+summary: Ozone 提供了负载生成、分片测试、验收测试等多种测试工具。
 
 Review comment:
   分片测试 (partitioning test)is not very clear to me。 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794#discussion_r410484231
 
 

 ##########
 File path: hadoop-hdds/docs/content/tools/TestTools.zh.md
 ##########
 @@ -0,0 +1,229 @@
+---
+title: "测试工具"
+summary: Ozone 提供了负载生成、分片测试、验收测试等多种测试工具。
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+测试是开发分布式系统中最重要的部分,我们提供了以下类型的测试。
+
+本页面给出了 Ozone 自身的测试工具。
+
+注意:我们还进行了其它测试(比如通过 Spark 或 Hive 进行的 TCP-DS、TCP-H),但因为它们是外部工具,所以没有在此列出。
+
+## 单元测试
+
+和每个 java 项目一样,我们的每个项目都包含传统的单元测试。
+
+## 集成测试(JUnit)
+
+传统的单元测试只能测试一个单元,但我们也有更高层次的单元测试。它们使用 `MiniOzoneCluster` 辅助方法在单元测试中启动守护进程(SCM、OM、数据节点)。
+
+从 maven 或 java 的角度来看,集成测试也只是普通的单元测试而已(使用了 JUnit 库),但为了将它们分开(同时解决一些依赖问题),我们将集成测试移到了 `hadoop-ozone/integration-test` 目录下。
+
+## 冒烟测试
+
+我们使用基于 docker-compose 的伪集群来运行不同配置的 Ozone,为了确保这些配置可用,我们在 https://robotframework.org/ 的帮助下实现了 _验收_ 测试。
+
+冒烟测试包含在发行包中(`./smoketest`),但 robot 文件只定义了运行命令行然后检查输出的测试。
+
+为了在不同环境(docker-compose、kubernetes)下运行冒烟测试,你需要定义如何启动容器,然后在正确的容器中执行正确的测试。
+
+这部分的测试包含在 `compose` 目录中(查看 `./compose/*/test.sh` 或者 `./compose/test-all.sh`)。
+
+例如,一种测试分发包的简单方法是:
+
+```
+cd compose/ozonze
 
 Review comment:
   ozonze=》ozone,please fix the typo in English version as well

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] iamabug commented on a change in pull request #794: HDDS-2804. tools/TestTools.md

Posted by GitBox <gi...@apache.org>.
iamabug commented on a change in pull request #794: HDDS-2804. tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794#discussion_r410678308
 
 

 ##########
 File path: hadoop-hdds/docs/content/tools/TestTools.zh.md
 ##########
 @@ -0,0 +1,229 @@
+---
+title: "测试工具"
+summary: Ozone 提供了负载生成、分片测试、验收测试等多种测试工具。
 
 Review comment:
   According to the context, I would say it refers to network partition.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794#discussion_r410482425
 
 

 ##########
 File path: hadoop-hdds/docs/content/tools/TestTools.zh.md
 ##########
 @@ -0,0 +1,229 @@
+---
+title: "测试工具"
+summary: Ozone 提供了负载生成、分片测试、验收测试等多种测试工具。
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+测试是开发分布式系统中最重要的部分,我们提供了以下类型的测试。
+
+本页面给出了 Ozone 自身的测试工具。
+
+注意:我们还进行了其它测试(比如通过 Spark 或 Hive 进行的 TCP-DS、TCP-H),但因为它们是外部工具,所以没有在此列出。
+
+## 单元测试
+
+和每个 java 项目一样,我们的每个项目都包含传统的单元测试。
+
+## 集成测试(JUnit)
+
+传统的单元测试只能测试一个单元,但我们也有更高层次的单元测试。它们使用 `MiniOzoneCluster` 辅助方法在单元测试中启动守护进程(SCM、OM、数据节点)。
+
+从 maven 或 java 的角度来看,集成测试也只是普通的单元测试而已(使用了 JUnit 库),但为了将它们分开(同时解决一些依赖问题),我们将集成测试移到了 `hadoop-ozone/integration-test` 目录下。
 
 Review comment:
   但为了解决一些依赖问题,我们将它们分开放在集成测试 `hadoop-ozone/integration-test` 目录下。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org


[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md

Posted by GitBox <gi...@apache.org>.
xiaoyuyao commented on a change in pull request #794: HDDS-2804. tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794#discussion_r410480981
 
 

 ##########
 File path: hadoop-hdds/docs/content/tools/TestTools.zh.md
 ##########
 @@ -0,0 +1,229 @@
+---
+title: "测试工具"
+summary: Ozone 提供了负载生成、分片测试、验收测试等多种测试工具。
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+测试是开发分布式系统中最重要的部分,我们提供了以下类型的测试。
+
+本页面给出了 Ozone 自身的测试工具。
 
 Review comment:
   自身=》自带

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org