-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Remove FailedResourceType and return custom error #19296
Conversation
@hongchaodeng Thanks! I wanted to remove this a while ago. |
GCE e2e build/test failed for commit f23ad8329c2124dab404e4bbbe434bbfe99bb9d8. |
Labelling this PR as size/M |
Labelling this PR as size/L |
GCE e2e test build/test passed for commit da61b4d026fa824a277c60fc4847c0f4a777b8c0. |
@lavalamp |
If I understand what you're doing with this--please make a custom error type and encode this information in the error. Don't add an additional return parameter for this. |
@lavalamp |
Labelling this PR as size/M |
|
||
import "fmt" | ||
|
||
type ResourceUnFitError struct { |
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.
type ErrResourceUnfit?
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.
Fixed
0735b16
to
4f6cf41
Compare
GCE e2e test build/test passed for commit bb6492bee7b60f789b4963bd5dcbfac47d268164. |
GCE e2e test build/test passed for commit 3234379a524df929e69a883a203ba95b72146bb4. |
GCE e2e test build/test passed for commit fbb9f07ee184d51ea136463109a0d0168c44507d. |
GCE e2e test build/test passed for commit 4f6cf41bd83c361ab9ede13f90521e3525d75282. |
GCE e2e test build/test passed for commit a91c1696dd615ea5f093f664bdde3dab55002fa4. |
LGTM, thanks |
k8s bot test this please |
@k8s-bot unit test this please |
@k8s-bot unit test this |
@k8s-bot test this Tests are more than 48 hours old. Re-running tests. |
GCE e2e test build/test passed for commit 40e5e68. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit 40e5e68. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
I believe this broke our tests:
I'll try reverting it locally to confirm. |
@gmarek
If so, it looks like there is terrible logical error in pods (listing, whatever).. |
Can we revert the PR to unblock the builds if the test/pr cannot be fixed immediately? |
Can we wait for @gmarek 's confirmation? |
I too suspect that #19487 is caused by this PR. This is blocking the merge queue and is a P0 issue, so I will roll back this PR (it can be re-merged if it is not problematic). |
After revert it was still failing. Sorry - I had to run home:/ |
It's better if @saad-ali would take it from here. |
Ok, I'll hold off on rolling back this PR then. I'll look into some of the other PRs that went in at the same time, if nothing looks promising I'll roll back anyway. |
This PR still looks the most suspicious to me. I'm going to roll it back to be safe. If it is not the cause of the issue we can re-merge when everything is green again. |
Confirmed revert of this PR fixed #19487 |
Currently in Fit predicate it uses a global variable
FailedResourceType
to pass information:We should use custom error to pass it instead:
This PR adds a new custom type of error to predicates