@@ -12,7 +12,7 @@ open Lwt.Syntax
12
12
13
13
type coq_job_info =
14
14
{ docker_image : string
15
- ; build_dependency : string
15
+ ; dependencies : string list
16
16
; compiler : string
17
17
; opam_variant : string }
18
18
@@ -77,27 +77,33 @@ let send_status_check ~bot_info job_info ~pr_num (gh_owner, gh_repo)
77
77
if string_match ~regexp line then Some (Str. matched_group 1 line)
78
78
else None ) )
79
79
in
80
+ let find_all regexps =
81
+ List. filter_map trace_lines ~f: (fun line ->
82
+ List. find_map regexps ~f: (fun regexp ->
83
+ if string_match ~regexp line then Some (Str. matched_group 1 line)
84
+ else None ) )
85
+ in
80
86
find
81
87
[ " ^Using Docker executor with image \\ ([^ ]+\\ )"
82
88
; " options=Options(docker='\\ ([^']+\\ )')" ]
83
89
>> = fun docker_image ->
84
- find [" ^Downloading artifacts for \\ (build:[^ ]+\\ )" ]
85
- >> = fun build_dependency ->
90
+ let dependencies = find_all [" ^Downloading artifacts for \\ ([^ ]+\\ )" ] in
86
91
find [" ^COMPILER=\\ (.*\\ )" ]
87
92
>> = fun compiler ->
88
93
find [" ^OPAM_VARIANT=\\ (.*\\ )" ]
89
94
>> = fun opam_variant ->
90
- Some {docker_image; build_dependency ; compiler; opam_variant}
95
+ Some {docker_image; dependencies ; compiler; opam_variant}
91
96
in
92
97
let * summary_tail_prefix =
93
98
match coq_job_info with
94
- | Some {docker_image; build_dependency ; compiler; opam_variant} ->
99
+ | Some {docker_image; dependencies ; compiler; opam_variant} ->
95
100
let switch_name = compiler ^ opam_variant in
101
+ let dependencies = String. concat ~sep: " ` `" dependencies in
96
102
Lwt. return
97
103
(f
98
- " This job ran on the Docker image `%s`, depended on the build job \
99
- `%s` with OCaml `%s` .\n\n "
100
- docker_image build_dependency switch_name )
104
+ " This job ran on the Docker image `%s` with OCaml `%s` and depended on jobs \
105
+ `%s` .\n\n "
106
+ docker_image switch_name dependencies )
101
107
| None ->
102
108
Lwt. return " "
103
109
in
0 commit comments