Release 1 (dates) closed out: controller 0.352.1, hub 0.181.0 live, golden 0.352.1 vouched; R-1392 closed, R-1393 filed, R-1391 narrowed; evidence and report
gates / gates (push) Successful in 2m11s
gates / gates (push) Successful in 2m11s
This commit is contained in:
1 parent
63f69b99ce
commit
a2173830c1
36 files changed
+1084
-11
No files matched your search
@@ -53,6 +53,20 @@ type Resolver struct {
|
||||
|
||||
mu sync.Mutex
|
||||
cache map[string]entry
|
||||
said map[string]bool
|
||||
}
|
||||
|
||||
func (r *Resolver) firstSight(pair string) bool {
|
||||
r.mu.Lock()
|
||||
defer r.mu.Unlock()
|
||||
if r.said[pair] {
|
||||
return false
|
||||
}
|
||||
if r.said == nil {
|
||||
r.said = map[string]bool{}
|
||||
}
|
||||
r.said[pair] = true
|
||||
return true
|
||||
}
|
||||
|
||||
func (r *Resolver) now() time.Time {
|
||||
@@ -135,8 +149,8 @@ func (r *Resolver) Same(boxVersion, boxSHA, vouchedVersion, vouchedSHA string) b
|
||||
}
|
||||
b := r.digest(boxVersion, boxSHA)
|
||||
same := b != "" && a == b
|
||||
if same {
|
||||
r.logf("[DEBUG] [bundlefiles] bundle %s holds the same files as the vouched %s (only the label differs)", boxVersion, vouchedVersion)
|
||||
if same && r.firstSight(boxSHA+"="+vouchedSHA) { // once per pair: the System page asks on every view
|
||||
r.logf("[INFO] [bundlefiles] bundle %s holds the same files as the vouched %s (only the label differs)", boxVersion, vouchedVersion)
|
||||
}
|
||||
return same
|
||||
}
|
||||
Reference in new issue
Block a user