Skip to content

Commit 2f6700b

Browse files
committed
HBASE-25476 Enable error prone check in pre commit (#2860)
Signed-off-by: Guanghao Zhang <[email protected]>
1 parent 51c55fc commit 2f6700b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dev-support/Jenkinsfile_GitHub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pipeline {
3838
YETUS_DRIVER_REL = "${SRC_REL}/dev-support/jenkins_precommit_github_yetus.sh"
3939
// Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
4040
YETUS_VERSION = 'rel/0.12.0'
41-
GENERAL_CHECK_PLUGINS = 'all,-compile,-javac,-javadoc,-jira,-shadedjars,-unit'
41+
GENERAL_CHECK_PLUGINS = 'all,-javadoc,-jira,-shadedjars,-unit'
4242
JDK_SPECIFIC_PLUGINS = 'compile,github,htmlout,javac,javadoc,maven,mvninstall,shadedjars,unit'
4343
// output from surefire; sadly the archive function in yetus only works on file names.
4444
ARCHIVE_PATTERN_LIST = 'TEST-*.xml,org.apache.h*.txt,*.dumpstream,*.dump'
@@ -168,6 +168,7 @@ pipeline {
168168
BUILD_URL_ARTIFACTS = "artifact/${WORKDIR_REL}/${PATCH_REL}"
169169
DOCKERFILE = "${WORKDIR}/${DOCKERFILE_REL}"
170170
YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
171+
SKIP_ERRORPRONE = true
171172
}
172173
steps {
173174
dir("${SOURCEDIR}") {
@@ -269,6 +270,7 @@ pipeline {
269270
BUILD_URL_ARTIFACTS = "artifact/${WORKDIR_REL}/${PATCH_REL}"
270271
DOCKERFILE = "${WORKDIR}/${DOCKERFILE_REL}"
271272
YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
273+
SKIP_ERRORPRONE = true
272274
}
273275
steps {
274276
dir("${SOURCEDIR}") {

dev-support/jenkins_precommit_github_yetus.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ YETUS_ARGS+=("--whitespace-tabs-ignore-list=.*/generated/.*")
122122
YETUS_ARGS+=("--tests-filter=${TESTS_FILTER}")
123123
YETUS_ARGS+=("--personality=${SOURCEDIR}/dev-support/hbase-personality.sh")
124124
YETUS_ARGS+=("--quick-hadoopcheck")
125-
YETUS_ARGS+=("--skip-errorprone")
125+
if [[ "${SKIP_ERRORPRONE}" = "true" ]]; then
126+
# skip error prone
127+
YETUS_ARGS+=("--skip-errorprone")
128+
fi
126129
# effectively treat dev-support as a custom maven module
127130
YETUS_ARGS+=("--skip-dirs=dev-support")
128131
# For testing with specific hadoop version. Activates corresponding profile in maven runs.

0 commit comments

Comments
 (0)