You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/08 01:46:42 UTC
[GitHub] [arrow] pachadotdev commented on a change in pull request #10650: Update reports.py
pachadotdev commented on a change in pull request #10650:
URL: https://github.com/apache/arrow/pull/10650#discussion_r665812147
##########
File path: dev/archery/archery/crossbow/reports.py
##########
@@ -160,6 +160,29 @@ def url(self, query):
repo_url = self.job.queue.remote_url.strip('.git')
return '{}/branches/all?query={}'.format(repo_url, query)
+ def todayStr(self):
+ date = datetime.now()
+ return "{}-{}-{}".format(date.year, date.month, date.day)
+
+ def tasksToDict(self, date, tasks):
+ jsonTasks = []
+ for task_name, task in tasks.items():
+ jsonTasks.append({
+ "build" : task_name,
+ "link" : self.url(task.branch),
+ "status" : task.status().combined_state.upper(),
+ "timestamp" : date})
+
+ return jsonTasks
+
+ def getJsonTasks(self):
+ tasks = self.tasksToDict(self, self.todayStr(), self.job.tasks.items())
Review comment:
sure ! I'll edit, my python knowledge is as good as my latin knowledge
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org