[
https://issues.apache.org/jira/browse/AMBARI-16043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15254649#comment-15254649
]
Hadoop QA commented on AMBARI-16043:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12800236/AMBARI-16043.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:red}-1 tests included{color}. The patch doesn't appear to include
any new or modified tests.
Please justify why no new tests are needed for this
patch.
Also please list what manual steps were performed to
verify this patch.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in .
Test results:
https://builds.apache.org/job/Ambari-trunk-test-patch/6618//testReport/
Console output:
https://builds.apache.org/job/Ambari-trunk-test-patch/6618//console
This message is automatically generated.
> version_builder.py fails to run against Python 2.6
> --------------------------------------------------
>
> Key: AMBARI-16043
> URL: https://issues.apache.org/jira/browse/AMBARI-16043
> Project: Ambari
> Issue Type: Bug
> Components: contrib
> Affects Versions: trunk
> Reporter: Di Li
> Assignee: Di Li
> Fix For: trunk
>
> Attachments: AMBARI-16043.patch
>
>
> version_builder.py uses the new xpath syntax only supported by ElementTree in
> Python 2.7 and newer. So running the example.py to invoke version_builder.py
> to create version XML fails with the following error when Python is version
> 2.6.x
> [root@myserver version-builder]$ python example.py
> Traceback (most recent call last):
> File "example.py", line 38, in <module>
> main(sys.argv)
> File "example.py", line 29, in main
> vb.add_manifest("HDFS-271", "HDFS", "2.7.1.2.4.0")
> File
> "/home/otto/dev/oss/ambari/trunk/ambari_trunk/contrib/version-builder/version_builder.py",
> line 122, in add_manifest
> service_element = manifest_element.find("./service[@id='{0}']".format(id))
> File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 330, in find
> return ElementPath.find(self, path)
> File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
> return _compile(path).find(element)
> File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
> p = Path(path)
> File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in __init__
> "expected path separator (%s)" % (op or tag)
> SyntaxError: expected path separator ([)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)