You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e2e.Logf("Scraping target %s of pod %s/%s/%s without auth returned %d, err: %v (skip=%t)", target.ScrapeUrl, ns, job, pod, statusCode, execError, namespacesToSkip.Has(ns))
e2e.Logf("scraping target %s of pod %s/%s/%s without auth returned %d, err: %v (skip=%t)", targetScrapeURL, targetNs, targetJob, targetPod, statusCode, err, namespacesToSkip.Has(targetNs))
130
141
ifexpectedStatusCodes.Has(statusCode) {
131
142
returntrue, nil
132
143
}
133
-
// retry on those cases
134
-
ifexecError!=nil||
144
+
145
+
// retry
146
+
iferr!=nil||
135
147
statusCode/100==5||
136
148
statusCode==http.StatusRequestTimeout||
137
149
statusCode==http.StatusTooManyRequests {
@@ -140,12 +152,25 @@ var _ = g.Describe("[sig-instrumentation][Late] Platform Prometheus targets", fu
140
152
returnfalse, fmt.Errorf("expecting status code %v but returned %d", expectedStatusCodes.UnsortedList(), statusCode)
141
153
})
142
154
143
-
// Decided to ignore targets that Prometheus itself failed to scrape; may be leftovers from earlier tests.
e2e.Logf("refreshing state of target %s of pod %s/%s/%s failed, err: %v (skip=%t)", targetScrapeURL, targetNs, targetJob, targetPod, err, namespacesToSkip.Has(targetNs))
0 commit comments