@@ -120,10 +120,10 @@ impl Worker {
120
120
} ,
121
121
} ;
122
122
123
- info ! ( "Processing build #{}... " , build_id) ;
123
+ info ! ( "build {}: started processing " , build_id) ;
124
124
125
125
if self . seen . contains ( & build_id) {
126
- info ! ( "Ignore recently seen build id" ) ;
126
+ info ! ( "build {}: ignoring recently seen id" , build_id ) ;
127
127
return Ok ( ( ) ) ;
128
128
}
129
129
self . seen . push_front ( build_id) ;
@@ -143,8 +143,12 @@ impl Worker {
143
143
_ => build. outcome ( ) ,
144
144
} ;
145
145
146
+ debug ! ( "build {}: current outcome: {:?}" , build_id, outcome) ;
147
+ debug ! ( "build {}: PR number: {:?}" , build_id, build. pr_number( ) ) ;
148
+ debug ! ( "build {}: branch name: {:?}" , build_id, build. pr_number( ) , ) ;
149
+
146
150
if !outcome. is_finished ( ) {
147
- info ! ( "Ignoring in-progress build." ) ;
151
+ info ! ( "build {}: ignoring in-progress build" , build_id ) ;
148
152
if let Some ( idx) = self . seen . iter ( ) . position ( |id| * id == build_id) {
149
153
// Remove ignored builds, as we haven't reported anything for them and the
150
154
// in-progress status might be misleading (e.g., leading edge of a group of
@@ -154,10 +158,17 @@ impl Worker {
154
158
return Ok ( ( ) ) ;
155
159
}
156
160
if !outcome. is_passed ( ) {
161
+ info ! ( "build {}: preparing report" , build_id) ;
157
162
self . report_failed ( build. as_ref ( ) ) ?;
158
163
}
159
164
if build. pr_number ( ) . is_none ( ) && build. branch_name ( ) == "auto" {
165
+ info ! ( "build {}: learning from the log" , build_id) ;
160
166
self . learn ( build. as_ref ( ) ) ?;
167
+ } else {
168
+ info ! (
169
+ "build {}: did not learn as it's not an auto build" ,
170
+ build_id
171
+ ) ;
161
172
}
162
173
163
174
Ok ( ( ) )
0 commit comments