[
https://issues.apache.org/jira/browse/HADOOP-19857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080125#comment-18080125
]
ASF GitHub Bot commented on HADOOP-19857:
-----------------------------------------
pan3793 commented on code in PR #8452:
URL: https://github.com/apache/hadoop/pull/8452#discussion_r3221972148
##########
.github/gha-tests/README.md:
##########
@@ -0,0 +1,63 @@
+<!--
+ 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.
+-->
+
+### Excluded tests for GitHub Actions (GHA)
+
+Initial excluded tests: run the GHA workflow, if a test fails or aborts, add it
+to `exclude-tests.txt`. Repeat until 5 consecutive successes.
+
+Contributors are encouraged to diagnose and improve the excluded tests, and
remove
+them from the excluded list once they are stable. Stability assessment: when
deleting
+tests from `exclude-tests.txt`, the GHA workflow was successfully executed 5
times
+consecutively.
+
+### Slow tests
+
+Test classes takes more than 60s to complete in module
`hadoop-hdfs-project/hadoop-hdfs`
+are marked as slow tests, by adding JUnit5 annotation `@Tag("slow")` to the
test class.
+
+Slow tests are executed in a dedicated GHA job and roughly take 2.5 hours to
complete.
+Contributors are encouraged to diagnose and improve the slow tests to speed up
the CI.
+
+### Run test locally
+
+Create a standard build environment using Docker.
+```
+$ cd <hadoop source code directory>
+$ ./start-build-env.sh
+... (wait for the container to start)
+```
+
+Run single test suite inside container
+```
+$ export MAVEN_ARGS="-Pnative -Drequire.fuse -Drequire.openssl
-Drequire.snappy -Drequire.valgrind -Drequire.test.libhadoop"
+$ ./mvnw $MAVEN_ARGS -pl :hadoop-common -am clean install -DskipTests
Review Comment:
with a few more tests, `mvn` picks `MAVEN_ARGS` automatically, but `./mvnw`
does not ...
> Set up CI on GitHub Actions
> ---------------------------
>
> Key: HADOOP-19857
> URL: https://issues.apache.org/jira/browse/HADOOP-19857
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build
> Reporter: Cheng Pan
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]