Skip to content

RFE: func WaitForXXXX should print last state of the resource when failed #996

@nak3

Description

@nak3

/area test-and-release

When func WaitForXXXX in test/kube_checks.go failed, it just prints the error as timed out waiting for the condition.

(e.g.) autoscale_test.go

    autoscale_test.go:231: Unable to observe the Deployment named autoscale-up-down-up-tvuqkpaq-bjqz2-deployment scaling down: timed out waiting for the condition

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.

Metadata

Metadata

Assignees

Labels

area/test-and-releasegood first issueDenotes 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.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions