You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the webhook test fails, the server log is not dumped:
Running TestWebhook...
failed TestWebhook
=== RUN TestWebhook
masterAddr: "127.0.0.1:12000"
--- FAIL: TestWebhook (7.82s)
webhook_test.go:123: Created build not found in cluster: builds.build.openshift.io "pushbuild-12" not found
etcd.go:126: dumping etcd to "/tmp/openshift/test-integration/etcd-dump-runtime.call32.json"
Running TestWebhookGitHubPing...
It's also worth nothing that "etcd-dump-runtime.call32.json" does not appear in the s3 artifacts, not sure if that needs a separate issue or if @enj is fixing that with his other changes.
@stevekuznetsov assigning to you because @smarterclayton says you changed the log behavior for integration tests recently.
In fact it was @jhadvig that made the recent changes -- the server log should be in the same process as the test, right? Unclear why it's not getting put anywhere.
// GetBaseDir returns the base directory used for test.funcGetBaseDir() string {
returncmdutil.Env("BASETMPDIR", path.Join(os.TempDir(), "openshift-"+Namespace()))
}
We should probably separate the $BASETMPDIR -- actual temporary things and $BASEOUTDIR -- things that get saved as output from a test run. Right now @bparees that etcd thing is put into the tmp directory, which does not get persisted.
Activity
stevekuznetsov commentedon May 26, 2017
In fact it was @jhadvig that made the recent changes -- the server log should be in the same process as the test, right? Unclear why it's not getting put anywhere.
smarterclayton commentedon May 26, 2017
enj commentedon May 26, 2017
I still have not gotten #14145 working so no etcd dump...
stevekuznetsov commentedon May 26, 2017
We also have this code in
test/util/client.go:We should probably separate the
$BASETMPDIR-- actual temporary things and$BASEOUTDIR-- things that get saved as output from a test run. Right now @bparees that etcd thing is put into the tmp directory, which does not get persisted.