Skip to content

Dump kubectl stderr when it fails in TestHelloWorldFromShell#1587

Merged
google-prow-robot merged 1 commit intoknative:masterfrom
adrcunha:verbose-kubectl-in-hello-world
Jul 23, 2018
Merged

Dump kubectl stderr when it fails in TestHelloWorldFromShell#1587
google-prow-robot merged 1 commit intoknative:masterfrom
adrcunha:verbose-kubectl-in-hello-world

Conversation

@adrcunha
Copy link
Copy Markdown
Contributor

Error doesn't contain this useful debugging information.

Fixes #1530.

`Error` doesn't contain this useful debugging information.

Fixes #1530.
@google-prow-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 12, 2018
@adrcunha
Copy link
Copy Markdown
Contributor Author

Example of test failure:

$ go test -v -tags=e2e -count=1 ./test/e2e -run ^TestHelloWorldFromShell$
info	logging/config.go:90	Successfully created the logger.	{"knative.dev/jsonconfig": "{\n\t  \"level\": \"info\",\n\t  \"encoding\": \"console\",\n\t  \"outputPaths\": [\"stdout\"],\n\t  \"errorOutputPaths\": [\"stderr\"],\n\t  \"encoderConfig\": {\n\t    \"messageKey\": \"message\",\n\t\t\t\"levelKey\": \"level\",\n\t\t\t\"nameKey\": \"logger\",\n\t\t\t\"callerKey\": \"caller\",\n\t\t\t\"messageKey\": \"msg\",\n      \"stacktraceKey\": \"stacktrace\",\n      \"lineEnding\": \"\",\n      \"levelEncoder\": \"\",\n      \"timeEncoder\": \"\",\n      \"durationEncoder\": \"\",\n      \"callerEncoder\": \"\"\n\t  }\n\t}"}
info	logging/config.go:91	Logging level set to info
=== RUN   TestHelloWorldFromShell
info	TestHelloWorldFromShell	e2e/helloworld_shell_test.go:68	Creating manifest
info	TestHelloWorldFromShell	e2e/helloworld_shell_test.go:92	Manifest file is '/tmp/helloworld226820215'
info	TestHelloWorldFromShell	e2e/helloworld_shell_test.go:93	Deploying using kubectl
info	TestHelloWorldFromShell	e2e/helloworld_shell_test.go:58	Sleeping for 20 seconds after Route deletion to avoid hitting issue in #1376
--- FAIL: TestHelloWorldFromShell (23.05s)
	helloworld_shell_test.go:97: Error running kubectl: unable to recognize "/tmp/helloworld226820215": no matches for serving.knative.dev/, Kind=Configuration
		unable to recognize "/tmp/helloworld226820215": no matches for serving.knative.dev/, Kind=Route
FAIL
FAIL	github.com/knative/serving/test/e2e	23.179s

@adrcunha
Copy link
Copy Markdown
Contributor Author

/hold

Wait until after we cut first release.

@google-prow-robot google-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 12, 2018
@jessiezcc
Copy link
Copy Markdown
Contributor

/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2018
@srinivashegde86
Copy link
Copy Markdown
Contributor

/lgtm

@adrcunha
Copy link
Copy Markdown
Contributor Author

/hold cancel

@google-prow-robot google-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 23, 2018
@google-prow-robot google-prow-robot merged commit a0511e4 into knative:master Jul 23, 2018
bbrowning pushed a commit to bbrowning/serving that referenced this pull request Oct 5, 2018
…#1587)

`Error` doesn't contain this useful debugging information.

Fixes knative#1530.
creydr pushed a commit to creydr/knative-serving that referenced this pull request Feb 12, 2026
Co-authored-by: serverless-qe <serverless-support@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants