Skip to content

Commit

Permalink
Post a comment when the bug minimizer fails to start, even when not i…
Browse files Browse the repository at this point in the history
…n CI mode (#319)
  • Loading branch information
JasonGross authored Oct 14, 2024
2 parents d0300d7 + 0ed5c81 commit 7db6b5a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/actions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2086,8 +2086,17 @@ let run_coq_minimizer ~bot_info ~script ~comment_thread_id ~comment_author
comment_author )
~bot_info
>>= GitHub_mutations.report_on_posting_comment
| Error f ->
Lwt_io.printf "Error: %s\n" f
| Error e ->
Lwt_io.printf "Error: %s\n" e
>>= fun () ->
GitHub_mutations.post_comment ~id:comment_thread_id
~message:
(f
"Error encountered when attempting to start the coq bug minimizer:\n\
%s\n\n\
cc @JasonGross" e)
~bot_info
>>= GitHub_mutations.report_on_posting_comment

let coq_bug_minimizer_results_action ~bot_info ~ci ~key ~app_id body =
if string_match ~regexp:"\\([^\n]+\\)\n\\([^\r]*\\)" body then
Expand Down

0 comments on commit 7db6b5a

Please sign in to comment.