dianaclarke commented on a change in pull request #10650:
URL: https://github.com/apache/arrow/pull/10650#discussion_r669128039
##########
File path: dev/archery/archery/crossbow/reports.py
##########
@@ -121,6 +121,61 @@ def show(self, outstream, asset_callback=None):
asset))
+class JsonReport(Report):
+
+ HEADER = textwrap.dedent("""
+ Arrow Build Report for Job {job_name}
+
+ All tasks: {all_tasks_url}
+ """)
+
+ TASK = textwrap.dedent("""
+ - {name}:
+ URL: {url}
+ """).strip()
+
+ STATUS_HEADERS = {
+ # from CombinedStatus
+ 'error': 'Errored Tasks:',
+ 'failure': 'Failed Tasks:',
+ 'pending': 'Pending Tasks:',
+ 'success': 'Succeeded Tasks:',
+ }
+
+ def __init__(self, job):
Review comment:
You can remove this method since this is the default behaviour and your
not extending it.
##########
File path: dev/archery/archery/crossbow/reports.py
##########
@@ -121,6 +121,61 @@ def show(self, outstream, asset_callback=None):
asset))
+class JsonReport(Report):
+
+ HEADER = textwrap.dedent("""
+ Arrow Build Report for Job {job_name}
+
+ All tasks: {all_tasks_url}
+ """)
+
+ TASK = textwrap.dedent("""
+ - {name}:
+ URL: {url}
+ """).strip()
+
+ STATUS_HEADERS = {
+ # from CombinedStatus
+ 'error': 'Errored Tasks:',
+ 'failure': 'Failed Tasks:',
+ 'pending': 'Pending Tasks:',
+ 'success': 'Succeeded Tasks:',
+ }
+
+ def __init__(self, job):
Review comment:
You can remove this method since this is the default behaviour and
you're not extending it.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]