@@ -30,7 +30,7 @@ pub struct Worker {
30
30
extract_config : rla:: extract:: Config ,
31
31
github : rla:: github:: Client ,
32
32
queue : crossbeam:: channel:: Receiver < QueueItem > ,
33
- seen : VecDeque < u64 > ,
33
+ notified : VecDeque < u64 > ,
34
34
ci : Box < dyn CiPlatform + Send > ,
35
35
repo : String ,
36
36
secondary_repos : Vec < String > ,
@@ -66,7 +66,7 @@ impl Worker {
66
66
index_file,
67
67
extract_config : Default :: default ( ) ,
68
68
github : rla:: github:: Client :: new ( ) ?,
69
- seen : VecDeque :: new ( ) ,
69
+ notified : VecDeque :: new ( ) ,
70
70
queue,
71
71
ci,
72
72
repo,
@@ -133,8 +133,8 @@ impl Worker {
133
133
134
134
info ! ( "started processing" ) ;
135
135
136
- if self . seen . contains ( & build_id) {
137
- info ! ( "ignoring recently seen id " ) ;
136
+ if self . notified . contains ( & build_id) {
137
+ info ! ( "ignoring recently notified build " ) ;
138
138
return Ok ( ( ) ) ;
139
139
}
140
140
let query_from = if self . query_builds_from_primary_repo {
@@ -159,15 +159,15 @@ impl Worker {
159
159
}
160
160
161
161
// Avoid processing the same build multiple times.
162
- info ! ( "marked as seen" ) ;
163
- self . seen . push_front ( build_id) ;
164
- if self . seen . len ( ) > KEEP_IDS {
165
- self . seen . pop_back ( ) ;
166
- }
167
-
168
162
if !outcome. is_passed ( ) {
169
163
info ! ( "preparing report" ) ;
170
164
self . report_failed ( build. as_ref ( ) ) ?;
165
+
166
+ info ! ( "marked as notified" ) ;
167
+ self . notified . push_front ( build_id) ;
168
+ if self . notified . len ( ) > KEEP_IDS {
169
+ self . notified . pop_back ( ) ;
170
+ }
171
171
}
172
172
if build. pr_number ( ) . is_none ( ) && build. branch_name ( ) == "auto" {
173
173
info ! ( "learning from the log" ) ;
0 commit comments