aboutsummaryrefslogtreecommitdiff
path: root/dev/run-tests-codes.sh
diff options
context:
space:
mode:
authorNicholas Chammas <nicholas.chammas@gmail.com>2014-10-06 14:19:06 -0700
committerJosh Rosen <joshrosen@apache.org>2014-10-06 14:19:06 -0700
commit69c3f441a9b6e942d6c08afecd59a0349d61cc7b (patch)
treeab86b2ae7d03d55eae6c6d1a622fd0f8b945421b /dev/run-tests-codes.sh
parent2300eb58ae79a86e65b3ff608a578f5d4c09892b (diff)
downloadspark-69c3f441a9b6e942d6c08afecd59a0349d61cc7b.tar.gz
spark-69c3f441a9b6e942d6c08afecd59a0349d61cc7b.tar.bz2
spark-69c3f441a9b6e942d6c08afecd59a0349d61cc7b.zip
[SPARK-3479] [Build] Report failed test category
This PR allows SparkQA (i.e. Jenkins) to report in its posts to GitHub what category of test failed, if one can be determined. The failure categories are: * general failure * RAT checks failed * Scala style checks failed * Python style checks failed * Build failed * Spark unit tests failed * PySpark unit tests failed * MiMa checks failed This PR also fixes the diffing logic used to determine if a patch introduces new classes. Author: Nicholas Chammas <nicholas.chammas@gmail.com> Closes #2606 from nchammas/report-failed-test-category and squashes the following commits: d67df03 [Nicholas Chammas] report what test category failed
Diffstat (limited to 'dev/run-tests-codes.sh')
-rw-r--r--dev/run-tests-codes.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev/run-tests-codes.sh b/dev/run-tests-codes.sh
new file mode 100644
index 0000000000..1348e0609d
--- /dev/null
+++ b/dev/run-tests-codes.sh
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+#
+# 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.
+#
+
+readonly BLOCK_GENERAL=10
+readonly BLOCK_RAT=11
+readonly BLOCK_SCALA_STYLE=12
+readonly BLOCK_PYTHON_STYLE=13
+readonly BLOCK_BUILD=14
+readonly BLOCK_SPARK_UNIT_TESTS=15
+readonly BLOCK_PYSPARK_UNIT_TESTS=16
+readonly BLOCK_MIMA=17