[
https://issues.apache.org/jira/browse/HDDS-2030?focusedWorklogId=302619&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-302619
]
ASF GitHub Bot logged work on HDDS-2030:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Aug/19 07:57
Start Date: 28/Aug/19 07:57
Worklog Time Spent: 10m
Work Description: adoroszlai commented on pull request #1348: HDDS-2030.
Generate simplifed reports by the dev-support/checks/*.sh scripts
URL: https://github.com/apache/hadoop/pull/1348#discussion_r318440151
##########
File path: hadoop-ozone/dev-support/checks/_mvn_unit_report.sh
##########
@@ -0,0 +1,58 @@
+#!/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.
+
+## generate summary txt file
+find "." -name 'TEST*.xml' -print0 \
+ | xargs -n1 -0 "grep" -l -E "<failure|<error" \
+ | awk -F/ '{sub("'"TEST-JUNIT_TEST_OUTPUT_DIR"'",""); sub(".xml","");
print $NF}' \
Review comment:
Is `JUNIT_TEST_OUTPUT_DIR` part of the filename in some environment? In PR
runs it is not, hence, `TEST-` [prefix is
retained](https://github.com/elek/ozone-ci/blob/master/pr/pr-hdds-1950-pfqf7/integration/summary.txt):
```
TEST-org.apache.hadoop.ozone.client.rpc.TestOzoneRpcClient
TEST-org.apache.hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
TEST-org.apache.hadoop.ozone.client.rpc.TestSecureOzoneRpcClient
TEST-org.apache.hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
TEST-org.apache.hadoop.ozone.scm.node.TestQueryNode
```
```suggestion
| awk -F/ '{sub("'"TEST-"'",""); sub(".xml",""); print $NF}' \
```
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 302619)
Time Spent: 5h 10m (was: 5h)
> Generate simplifed reports by the dev-support/checks/*.sh scripts
> -----------------------------------------------------------------
>
> Key: HDDS-2030
> URL: https://issues.apache.org/jira/browse/HDDS-2030
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Components: build
> Reporter: Elek, Marton
> Assignee: Elek, Marton
> Priority: Major
> Labels: pull-request-available
> Time Spent: 5h 10m
> Remaining Estimate: 0h
>
> hadoop-ozone/dev-support/checks directory contains shell scripts to execute
> different type of code checks (findbugs, checkstyle, etc.)
> Currently the contract is very simple. Every shell script executes one (and
> only one) check and the shell response code is set according to the result
> (non-zero code if failed).
> To have better reporting in the github pr build, it would be great to improve
> the scripts to generate simple summary files and save the relevant files for
> archiving.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]