Skip to content

extended tests: dump registry logs - #13557

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
miminar:extended-dump-registry-logs
Mar 28, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
miminar:extended-dump-registry-logs

Conversation

@miminar

@miminar miminar commented Mar 28, 2017

Copy link
Copy Markdown

Since the build' start time.

This allows us to debug extended test failures on GCE instances.

Since the build' start time.

Signed-off-by: Michal Minář <[email protected]>
@miminar

ghost commented Mar 28, 2017 •

Copy link
Copy Markdown
Author

[testextended][extended:core(builds)]

@stevekuznetsov would you please take a look? Shall we limit the registry dumps just to GCE instances?

What's the best way to determine that the test runs on GCE? It seems like this:

func ProviderIs(providers ...string) bool {

@miminar miminar changed the title extended tests: dump registry logs [DO NOT MERGE] extended tests: dump registry logs Mar 28, 2017
@miminar

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Author

The debug commit will cause a failure in order to get some sample output. I'll remove the commit once it fails.

@miminar
miminar force-pushed the extended-dump-registry-logs branch from f62cf0d to 4e32b5f Compare March 28, 2017 10:49
@miminar

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Author

Update: the dump is done only when running on GCE now.


since := time.Now().Sub(*buildStarted)
oadm := t.oc.AsAdmin().SetNamespace("default")
out, err := oadm.Run("logs").Args("dc/docker-registry", "--since="+since.String()).Output()

ghost Mar 28, 2017

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, we could do this for all providers as it would add value to the e2e test captures. Registry log size is about 1M for our test runs. This would effectively double it, which I think is a reasonable thing to do for now as we don't really have any better log viewing front-ends.

ghost Mar 28, 2017

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you say so, I'll make it provider unspecific. The log is pretty verbose though. There's cca 1100 lines per failed test. Hopefully, there won't be that many test failures. So the registry log shouldn't be doubled.

@miminar
miminar force-pushed the extended-dump-registry-logs branch from 4e32b5f to d7fd52d Compare March 28, 2017 12:38
@miminar miminar changed the title [DO NOT MERGE] extended tests: dump registry logs extended tests: dump registry logs Mar 28, 2017
@miminar

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Author

Dumping the registry logs for all providers now.

@openshift-bot

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

Evaluated for origin testextended up to d7fd52d

@openshift-bot

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/testextended Running (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/99/) (Base Commit: dae0037) (Extended Tests: core(builds))

@stevekuznetsov

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

Seems reasonable to me [merge]

@openshift-bot

ghost commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to d7fd52d

@openshift-bot

ghost commented Mar 28, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/214/) (Base Commit: dae0037) (Image: devenv-rhel7_6104)

@openshift-bot
openshift-bot merged commit 37a5b46 into openshift:master Mar 28, 2017
@miminar
miminar deleted the extended-dump-registry-logs branch April 29, 2017 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants