Skip to content

Commit

Permalink
update comment body as fast as we can
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Apr 10, 2024
1 parent 95ebdf0 commit e668240
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions snapshot_manager/snapshot_manager/snapshot_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ def check_todays_builds(self):
state.build_id for state in states if state.chroot == chroot
]

# Immediately update issue comment and maybe later we update it again:
logging.info("Update issue comment body")
comment_body = f"""
{self.github.initial_comment}
{build_status_matrix}
{tf.TestingFarmRequest.dict_to_html_comment(requests)}
"""
issue.edit(body=comment_body)

logging.info("Filter testing-farm requests by chroot of interest")
new_requests = dict()
for chroot in requests:
Expand Down

0 comments on commit e668240

Please sign in to comment.