ci: post gantt: ignore pipeline_summary message

The gantt chart script currently expect the pipeline url to be the last
line of marge-bot's comment on a failed pipeline. The pipeline summary
hook now adds additional information that was preventing the gantt chart
script from finding the pipeline url.

Change the regex for finding the pipeline url to account for pipeline
summary comments.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32637>
This commit is contained in:
Deborah Brouwer 2024-12-13 17:29:23 -08:00 committed by Deb_1543
parent 4ae2105fcb
commit 45ef1221a3

View file

@ -138,7 +138,9 @@ def main(
continue
last_event_at = event.created_at
match = re.search(r"https://[^ ]+", event.note["body"])
escaped_gitlab_url = re.escape(GITLAB_URL)
match = re.search(rf"{escaped_gitlab_url}/[^\s<]+", event.note["body"])
if match:
try:
log.info(f"Found message: {event.note['body']}")