fix(monitor): retry transient seeded checks
This commit is contained in:
1 parent
a997baa553
commit
1b660a0435
2 files changed
+9
-3
No files matched your search
@@ -41,8 +41,14 @@ func runBlockcheck(ctx context.Context, binary, domain string, stdout, stderr io
|
||||
func runManagedBlockcheck(ctx context.Context, binary, domain string, stdout, stderr io.Writer) (string, error) {
|
||||
domain = strings.ToLower(domain)
|
||||
if args := managedSeedArgs(domain); args != "" {
|
||||
path, err := runBlockcheckWithConflictCleanupAndSeed(ctx, binary, domain, stdout, stderr, true, args)
|
||||
if err == nil {
|
||||
// A transient endpoint timeout can invalidate one protocol's strict 3/3
|
||||
// check even when the seeded scan found it; retry this tiny corpus before
|
||||
// spending an hour on the full built-in corpus.
|
||||
for attempt := 0; attempt < 5; attempt++ {
|
||||
path, err := runBlockcheckWithConflictCleanupAndSeed(ctx, binary, domain, stdout, stderr, true, args)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
report, readErr := os.ReadFile(path + ".check.json")
|
||||
group := "frontend"
|
||||
if domain == "googlevideo.com" || strings.HasSuffix(domain, ".googlevideo.com") {
|
||||
|
||||
Reference in new issue
Block a user