-
Notifications
You must be signed in to change notification settings - Fork 342
RFE: func WaitForXXXX should print last state of the resource when failed #996
Copy link
Copy link
Closed
Labels
area/test-and-releasegood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
Metadata
Metadata
Assignees
Labels
area/test-and-releasegood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.
/area test-and-release
When
func WaitForXXXXin test/kube_checks.go failed, it just prints the error astimed out waiting for the condition.(e.g.) autoscale_test.go
So, it is still difficult to know why it fails. It would be useful if we can get the last state of the resource.
Actually serving project implements it in
WaitForConfigurationState()for their resources as:https://github.com/knative/serving/blob/4505ff00396d4acd85cd079ce7f20d815927d157/test/v1beta1/configuration.go#L119-L137
so test/kube_checks.go could be changed as same manner.