You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "David Knupp (Code Review)" <ge...@cloudera.org> on 2018/08/06 16:44:40 UTC

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

David Knupp has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11128


Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/jenkins/impala_junitxml_logger.py
A lib/python/requirements.txt
A lib/python/setup.py
3 files changed, 237 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/2
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 2
Gerrit-Owner: David Knupp <dk...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 10: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 10
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 20:52:26 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Philip Zeyliger (Code Review)" <ge...@cloudera.org>.
Philip Zeyliger has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 2:

(11 comments)

Thanks.

This largely looks fine. I've got some nits below, and a question about the naming, but nothing really interesting.

The only thing I'm worried about is the dependencies. The goal here, I suspect, is to make it so that if various "interesting" parts of the build fail, we can generate a JUnit XML file for them. If the build fails before we can install this tool, we're out of luck. So, the question is whether we make this tool simpler, by just templating over a fixed XML file, and using Python's built-in capabilities to quote XML (I'm pretty sure there are some) as opposed to using the junit-xml library. I don't think this is a blocking worry. If we find we want this capability earlier in the build, we can write the poor man's shell script that does that or remove the dependency later.

http://gerrit.cloudera.org:8080/#/c/11128/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/11128/2//COMMIT_MSG@11
PS2, Line 11: python library for Impala development that can be pip installed into
You're going to update bootstrap* in a separate commit? This doesn't currently get installed anywhere, I think.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py
File lib/python/jenkins/impala_junitxml_logger.py:

http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@1
PS2, Line 1: #!/usr/bin/env python
Bike shed on the naming of "jenkins_junitxml_logger.py"

I don't think this has anything to do with Jenkins. I.e., it largely makes sense (and will get invoked) even outside of Jenkins. I think this could just be "generate-junitxml" as a script name. (I.e., I don't think we need to prefix things with "impala-".


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@36
PS2, Line 36: # The equivalent of mkdir -p
            : try:
            :   os.makedirs(JUNITXML_LOGDIR)
            : except OSError as e:
            :   if e.errno == errno.EEXIST and os.path.isdir(JUNITXML_LOGDIR):
            :     pass
            :   else:
            :     raise
Please put this into main().


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@60
PS2, Line 60:     with open(file_or_string, 'r') as f:
            :       content = f.read()
This is shorter:

"return open(file_or_string).read()"


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@82
PS2, Line 82:     raise OSError("File already exists: {}".format(junit_log_file))
There are scenarios where this is too picky. When I run unit tests over and over on my laptop, I don't have to clean up the intermediate outputs. JUnit either overwrites them or adds new ones. I think the behavior here should be similarly permissive, either by creating a unique filename (if one already exists) or simply overwriting. Either is fine by me.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@97
PS2, Line 97:                       help="General build phase or script [default = buildall.")
nit: [default = buildall].

Secondary nit:

You can possibly use argparse.ArgumentParser(formatter=argparse.ArgumentDefaultsHelpFormatter) to avoid this.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@107
PS2, Line 107:                       help="If known, the amount of elapsed time for this step.")
Mention that this is in seconds.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@112
PS2, Line 112:                           either a plain string, or the path to a file print out.""")
nit: "Can be either a string or the path to a file."


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@140
PS2, Line 140:   equivalent to a "test case", must be unique.
If an output file already exists because this is invalid, do you want to create a unique file anyway? (Given the context, I don't think failing this script is very useful.)


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@160
PS2, Line 160:   xml_report = generate_xml_file(testsuite)
I would pass in the root directory here too instead of having a global. You're only saving yourself an argument in two places in exchange for a global; I think not having the global is probably better.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@161
PS2, Line 161:   print("Generated: {}".format(xml_report))
Does this need a "from future import print_function" thingy?



-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 2
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Mon, 06 Aug 2018 17:01:06 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#8).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
5 files changed, 282 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/8
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 8
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 7:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/11128/7/lib/python/impala_py_lib/__init__.py
File lib/python/impala_py_lib/__init__.py:

http://gerrit.cloudera.org:8080/#/c/11128/7/lib/python/impala_py_lib/__init__.py@16
PS7, Line 16: 
flake8: W292 no newline at end of file


http://gerrit.cloudera.org:8080/#/c/11128/7/lib/python/impala_py_lib/jenkins/__init__.py
File lib/python/impala_py_lib/jenkins/__init__.py:

http://gerrit.cloudera.org:8080/#/c/11128/7/lib/python/impala_py_lib/jenkins/__init__.py@16
PS7, Line 16: 
flake8: W292 no newline at end of file



-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 7
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 17:36:45 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 8:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/269/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 8
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 18:35:05 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Philip Zeyliger (Code Review)" <ge...@cloudera.org>.
Philip Zeyliger has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 8: Code-Review+2

I've not looked what gerrit-code-review-checks is complaining about. Please do take a look before pushing.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 8
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 18:10:51 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 10: Verified+1


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 10
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 20:52:43 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#9).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
M bin/rat_exclude_files.txt
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
6 files changed, 252 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/9
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 9
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 4:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/212/ : Initial code review checks failed. See linked job for details on the failure.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 4
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Mon, 06 Aug 2018 22:16:51 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 6:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/267/ : Initial code review checks failed. See linked job for details on the failure.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 6
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 18:05:57 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#6).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
5 files changed, 250 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/6
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 6
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#3).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/jenkins/__init__.py
A lib/python/jenkins/impala_junitxml_logger.py
A lib/python/requirements.txt
A lib/python/setup.py
4 files changed, 237 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/3
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 3
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 10:

Carrying Phil's +2 after rebase.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 10
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 20:52:15 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 2:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/200/ : Initial code review checks failed. See linked job for details on the failure.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 2
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Mon, 06 Aug 2018 17:17:59 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Reviewed-on: http://gerrit.cloudera.org:8080/11128
Reviewed-by: David Knupp <dk...@cloudera.com>
Tested-by: David Knupp <dk...@cloudera.com>
---
M bin/rat_exclude_files.txt
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
6 files changed, 252 insertions(+), 0 deletions(-)

Approvals:
  David Knupp: Looks good to me, approved; Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 11
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 7:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/268/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 7
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 18:11:42 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 5:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py
File lib/python/impala_py_lib/jenkins/generate_junitxml.py:

http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@49
PS5, Line 49:   elif os.path.isfile(file_or_string):
> This is funky, but you want "os.path.exists" here. It breaks magic things l
Done


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@89
PS5, Line 89:                           """[Required] Specific build step or child script being run.
> I tend to find the [Required] as a bit redundant given the existing usage:
Done


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@99
PS5, Line 99:                           either a plain string, or the path to a file print out.""")
> nit: "either a plain string or a path"
I'm not sure what happened here. This was some kind of copy/paste error, and I was sure I'd changed this per your previous comment. Sigh.

Really sorry about that.


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@104
PS5, Line 104:                           either a string, or the path to a file.""")
> same nit: I don't think you need the comma here.
Done



-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 5
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 17:31:53 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 3:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/201/ : Initial code review checks failed. See linked job for details on the failure.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 3
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Mon, 06 Aug 2018 17:29:57 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 3:

(11 comments)

http://gerrit.cloudera.org:8080/#/c/11128/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/11128/2//COMMIT_MSG@11
PS2, Line 11: python library for Impala development that can be pip installed into
> You're going to update bootstrap* in a separate commit? This doesn't curren
I think we have some options with regard to usage. I was undecided about which to pursue. I can see doing one of two things. One option would be to set up a separate parallel virtualenv purely for doing jenkinsy things in our Jenkins scripts, and call this explicitly.

  $ virtualenv jenkins_venv
  New python executable in /home/<user>/jenkins_venv/bin/python
  Installing setuptools, pip, wheel...done.
  $ ./jenkins_venv/bin/pip install -e $IMPALA_HOME/lib/python
  [...snip...]
  Successfully installed impala-py-lib junit-xml-1.8 pytz-2018.5 six-1.11.0
  $ ./jenkins_venv/bin/python $IMPALA_HOME/lib/python/impala_py_lib/jenkins/generate-junitxml.py
  usage: generate-junitxml.py [-h] [--phase PHASE] --step STEP [-t TIME]
                              [--stdout STDOUT] [--stderr STDERR]
                              [--error ERROR]
  generate-junitxml.py: error: argument --step is required

The other option would be to install stuff directly into the Impala python infra env, but you're right -- we'd run the risk of failing before this script could be employed. I realize that the given example might feel a bit cumbersome, but it does protect us from failing in the build before bootstrap runs, and it gives access to this script from the very start.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py
File lib/python/jenkins/impala_junitxml_logger.py:

http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@1
PS2, Line 1: #!/usr/bin/env python
> Bike shed on the naming of "jenkins_junitxml_logger.py"
I think you meant impala_junitxml_logger.py? In any event, done.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@36
PS2, Line 36: # The equivalent of mkdir -p
            : try:
            :   os.makedirs(JUNITXML_LOGDIR)
            : except OSError as e:
            :   if e.errno == errno.EEXIST and os.path.isdir(JUNITXML_LOGDIR):
            :     pass
            :   else:
            :     raise
> Please put this into main().
Done


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@60
PS2, Line 60:     with open(file_or_string, 'r') as f:
            :       content = f.read()
> This is shorter:
True. I tend to slavishly follow the convention of always wrapping calls to open() within a with-block, even though I know it doesn't matter in this case because the process ends immediately anyway. If you feel strongly, I'll change this.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@82
PS2, Line 82:     raise OSError("File already exists: {}".format(junit_log_file))
> There are scenarios where this is too picky. When I run unit tests over and
OK, I'll generate a new file.

See my reply to another comment for an explanation as to why I decided to enforce uniqueness.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@97
PS2, Line 97:                       help="General build phase or script [default = buildall.")
> nit: [default = buildall].
Done


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@107
PS2, Line 107:                       help="If known, the amount of elapsed time for this step.")
> Mention that this is in seconds.
Done


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@112
PS2, Line 112:                           either a plain string, or the path to a file print out.""")
> nit: "Can be either a string or the path to a file."
Hmm. That looks like a copy paste error. Thanks for pointing it out.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@140
PS2, Line 140:   equivalent to a "test case", must be unique.
> If an output file already exists because this is invalid, do you want to cr
Not useful in the general Jenkins context, but I think failing the script is useful when *adding* new junit xml output to the build sequence. For example:

Patch 1. Someone decides we want to generate a junit step for step foo during the data load phase.
Patch 2. Later on, someone else decides to add junit xml output elsewhere during data load for step bar.

When testing patch 2 before submitting a review, if there was a copy/paste error in the name of the step, or if both step names were poorly chosen (e.g., maybe too generic, like "load"), then the second patch should fail to force that person to change the name of the step.

Otherwise, the first file could be silently overwritten, and we may not realize until we need it to triage some build.


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@160
PS2, Line 160:   xml_report = generate_xml_file(testsuite)
> I would pass in the root directory here too instead of having a global. You
Done


http://gerrit.cloudera.org:8080/#/c/11128/2/lib/python/jenkins/impala_junitxml_logger.py@161
PS2, Line 161:   print("Generated: {}".format(xml_report))
> Does this need a "from future import print_function" thingy?
Turns out, no. (I was surprised too.)

I should probably confirm that's the case on python 2.6 as well.



-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 3
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Mon, 06 Aug 2018 21:43:13 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Philip Zeyliger (Code Review)" <ge...@cloudera.org>.
Philip Zeyliger has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 5: Code-Review+2

(5 comments)

I was able to cherrypick this change and run the tool. It looked to me like it was doing what it was promising to do. I think it's fine as is, though I have a few minor things that you could fix below.

http://gerrit.cloudera.org:8080/#/c/11128/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/11128/2//COMMIT_MSG@11
PS2, Line 11: python library for Impala development that can be pip installed into
> I think we have some options with regard to usage. I was undecided about wh
Ok. I'm not overly fond of having multiple virtualenvs around (it's very confusing), but we could probably also seed a virtualenv with this stuff first, and then add the rest of impala-python to it during the build.

Anyway, it's not particularly germane here yet.


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py
File lib/python/impala_py_lib/jenkins/generate_junitxml.py:

http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@49
PS5, Line 49:   elif os.path.isfile(file_or_string):
This is funky, but you want "os.path.exists" here. It breaks magic things like /dev/fd/63 here, and you probably don't want that.

$z/bin/generate-junitxml  --step hey --error hey --stdout <(echo hi)
Generated: ./logs/extra_junit_xml_logs/generate_junitxml.buildall.hey.20180807_22_33_01.xml
15:33:01 mystery impala [master ?] ~/src/impala
$cat ./logs/extra_junit_xml_logs/generate_junitxml.buildall.hey.20180807_22_33_01.xml
<?xml version="1.0" ?>
<testsuites disabled="0" errors="1" failures="0" tests="1" time="0.0">
	<testsuite disabled="0" errors="1" failures="0" file="None" log="None" name="generate_junitxml.buildall.hey" skipped="0" tests="1" time="0" timestamp="2018-08-07 22:33:01.010852+00:00" url="None">
		<testcase classname="generate_junitxml.buildall" name="hey">
			<error message="hey" type="error"/>
			<system-out>/dev/fd/63</system-out>
		</testcase>
	</testsuite>
</testsuites>


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@89
PS5, Line 89:                           """[Required] Specific build step or child script being run.
I tend to find the [Required] as a bit redundant given the existing usage:

usage: generate-junitxml [-h] [--phase PHASE] --step STEP [-t TIME]
                         [--stdout STDOUT] [--stderr STDERR] [--error ERROR]

optional arguments:
  -h, --help            show this help message and exit
  --phase PHASE         General build phase or script. (default: buildall)
  --step STEP           [Required] Specific build step or child script being
                        run. Each step must be unique for the given build
                        phase. (default: None)
  -t TIME, --time TIME  If known, the elapsed time in seconds for this step.
                        (default: 0)
  --stdout STDOUT       Standard output to include in the XML report. Can be
                        either a plain string, or the path to a file print
                        out. (default: None)
  --stderr STDERR       Standard error to include in the XML report. Can be
                        either a string, or the path to a file. (default:
                        None)
  --error ERROR         If specified, the XML report will mark this as an
                        error. This should be a brief explanation for the
                        error. (default: None)


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@99
PS5, Line 99:                           either a plain string, or the path to a file print out.""")
nit: "either a plain string or a path"

You don't need the comma before "," I think.


http://gerrit.cloudera.org:8080/#/c/11128/5/lib/python/impala_py_lib/jenkins/generate_junitxml.py@104
PS5, Line 104:                           either a string, or the path to a file.""")
same nit: I don't think you need the comma here.



-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 5
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Tue, 07 Aug 2018 22:37:01 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#5).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
5 files changed, 250 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/5
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 5
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#7).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
5 files changed, 282 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/7
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 7
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 9:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/271/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 9
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 18:49:12 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 10:

Since this code interacts with nothing in our repo yet, I'm just going to commit it.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 10
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Thu, 09 Aug 2018 20:53:27 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 5:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/228/ : Initial code review checks failed. See linked job for details on the failure.


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 5
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Tue, 07 Aug 2018 22:58:14 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "Philip Zeyliger (Code Review)" <ge...@cloudera.org>.
Philip Zeyliger has posted comments on this change. ( http://gerrit.cloudera.org:8080/11128 )

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................


Patch Set 5:

Ah rat, annoyed about empty files.

22:34:16 + bin/check-rat-report.py bin/rat_exclude_files.txt rat.xml
22:34:17 UNAPPROVED: lib/python/impala_py_lib/__init__.py
22:34:17 UNAPPROVED: lib/python/impala_py_lib/jenkins/__init__.py


-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 5
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>
Gerrit-Comment-Date: Tue, 07 Aug 2018 23:08:27 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-7399: Add script in lib/python to generate junit XML.

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
Hello Michael Brown, Philip Zeyliger, Joe McDonnell, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11128

to look at the new patch set (#4).

Change subject: IMPALA-7399: Add script in lib/python to generate junit XML.
......................................................................

IMPALA-7399: Add script in lib/python to generate junit XML.

This patch adds a script to generate junit XML reports for arbitrary
build steps. It's also being used to seed the creation of an internal
python library for Impala development that can be pip installed into
a development environment.

Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
---
A lib/python/impala_py_lib/__init__.py
A lib/python/impala_py_lib/jenkins/__init__.py
A lib/python/impala_py_lib/jenkins/generate_junitxml.py
A lib/python/requirements.txt
A lib/python/setup.py
5 files changed, 233 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/28/11128/4
-- 
To view, visit http://gerrit.cloudera.org:8080/11128
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If6024d74075ea69b8ee20d1fc3cc9c1ff821ba5b
Gerrit-Change-Number: 11128
Gerrit-PatchSet: 4
Gerrit-Owner: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Brown <mi...@cloudera.com>
Gerrit-Reviewer: Philip Zeyliger <ph...@cloudera.com>