-
Notifications
You must be signed in to change notification settings - Fork 558
chore: add more to for debugging kube test flake #7083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
9af6990
to
d408611
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7083 +/- ##
=======================================
Coverage 71.09% 71.09%
=======================================
Files 228 228
Lines 40602 40602
=======================================
Hits 28867 28867
+ Misses 10044 10042 -2
- Partials 1691 1693 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1e41132
to
84b84e6
Compare
} | ||
|
||
// Scheduled=True condition not found. | ||
t.Logf("Accepted=True condition not found in Gateway %s/%s conditions: %+v", gw.Namespace, gw.Name, gw.Status.Conditions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but the test is for Scheduled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for _, cond := range gw.Status.Conditions {
fmt.Printf("Condition: %v\n", cond)
if cond.Type == string(gwapiv1.GatewayConditionAccepted) && cond.Status == metav1.ConditionTrue {
return true
}
}
Was the previous comment accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was broken before :( , can we make this Scheduled ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, Scheduled
is deprecated.
// Deprecated: use "Accepted" instead.
GatewayConditionScheduled GatewayConditionType = "Scheduled"
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
84b84e6
to
2965b9a
Compare
d33b825
to
52a1de0
Compare
improve the log output