[
https://issues.apache.org/jira/browse/HADOOP-8918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raja Aluri updated HADOOP-8918:
-------------------------------
Description:
dev-support/test-patch.sh is parsing modified files wrong from the patch.
In test-patch.sh script, for running findbugs command, it is trying to find out
the modified files by doing the following command
{code}
$GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort |
uniq > $TMP
{code}
A patch file can have an entry with xml comments removed, which would match
that to be a filename. If you look at the last line of the below text, it would
match the filename to be '^M'
{code}
-<?xml version="1.0"?>^M
-<!--^M
- Licensed to the Apache Software Foundation (ASF) under one or more^M-
contributor license agreements. See the NOTICE file distributed with^M
- this work for additional information regarding copyright ownership.^M
- The ASF licenses this file to You under the Apache License, Version 2.0^M-
(the "License"); you may not use this file except in compliance with^M
- the License. You may obtain a copy of the License at^M
-^M
- http://www.apache.org/licenses/LICENSE-2.0^M
-^M
- Unless required by applicable law or agreed to in writing, software^M
- distributed under the License is distributed on an "AS IS" BASIS,^M
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.^M
- See the License for the specific language governing permissions and^M
- limitations under the License.^M
--->^M
{code}
was:
dev-setup/test-patch.sh is parsing modified files wrong from the patch.
In test-patch.sh script, for running findbugs command, it is trying to find out
the modified files by doing the following command
{code}
$GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort |
uniq > $TMP
{code}
A patch file can have an entry with xml comments removed, which would match
that to be a filename. If you look at the last line of the below text, it would
match the filename to be '^M'
{code}
-<?xml version="1.0"?>^M
-<!--^M
- Licensed to the Apache Software Foundation (ASF) under one or more^M-
contributor license agreements. See the NOTICE file distributed with^M
- this work for additional information regarding copyright ownership.^M
- The ASF licenses this file to You under the Apache License, Version 2.0^M-
(the "License"); you may not use this file except in compliance with^M
- the License. You may obtain a copy of the License at^M
-^M
- http://www.apache.org/licenses/LICENSE-2.0^M
-^M
- Unless required by applicable law or agreed to in writing, software^M
- distributed under the License is distributed on an "AS IS" BASIS,^M
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.^M
- See the License for the specific language governing permissions and^M
- limitations under the License.^M
--->^M
{code}
> dev-support/test-patch.sh is parsing modified files wrong
> ---------------------------------------------------------
>
> Key: HADOOP-8918
> URL: https://issues.apache.org/jira/browse/HADOOP-8918
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 2.0.2-alpha
> Reporter: Raja Aluri
> Fix For: 2.0.3-alpha
>
>
> dev-support/test-patch.sh is parsing modified files wrong from the patch.
> In test-patch.sh script, for running findbugs command, it is trying to find
> out the modified files by doing the following command
> {code}
> $GREP '^+++\|^---' $PATCH_DIR/patch | cut -c '5-' | $GREP -v /dev/null | sort
> | uniq > $TMP
> {code}
> A patch file can have an entry with xml comments removed, which would match
> that to be a filename. If you look at the last line of the below text, it
> would match the filename to be '^M'
> {code}
> -<?xml version="1.0"?>^M
> -<!--^M
> - Licensed to the Apache Software Foundation (ASF) under one or more^M-
> contributor license agreements. See the NOTICE file distributed with^M
> - this work for additional information regarding copyright ownership.^M
> - The ASF licenses this file to You under the Apache License, Version
> 2.0^M- (the "License"); you may not use this file except in compliance
> with^M
> - the License. You may obtain a copy of the License at^M
> -^M
> - http://www.apache.org/licenses/LICENSE-2.0^M
> -^M
> - Unless required by applicable law or agreed to in writing, software^M
> - distributed under the License is distributed on an "AS IS" BASIS,^M
> - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.^M
> - See the License for the specific language governing permissions and^M
> - limitations under the License.^M
> --->^M
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira