Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce context timeout on build log streaming #15944

Merged
merged 1 commit into from
Aug 30, 2017

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Aug 23, 2017

No description provided.

@openshift-merge-robot openshift-merge-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 23, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2017
@bparees
Copy link
Contributor Author

bparees commented Aug 23, 2017

@smarterclayton ptal

@bparees bparees changed the title default oc set image to --source=docker enforce context timeout on build log streaming. Aug 24, 2017
@bparees bparees changed the title enforce context timeout on build log streaming. enforce context timeout on build log streaming Aug 24, 2017
@bparees
Copy link
Contributor Author

bparees commented Aug 24, 2017

/retest

1 similar comment
@bparees
Copy link
Contributor Author

bparees commented Aug 24, 2017

/retest

@bparees
Copy link
Contributor Author

bparees commented Aug 24, 2017

@openshift/devex ptal

@@ -186,6 +186,12 @@ func (r *REST) Get(ctx apirequest.Context, name string, opts runtime.Object) (ru
// until they have all run, unless we see one of them fail.
// If we aren't following the logs, we will run through all the init containers exactly once.
for waitForInitContainers {
select {
case <-ctx.Done():
glog.V(4).Infof("timed out while iterating on build init containers for build pod %s/%s", build.Namespace, buildPodName)
Copy link
Member

@coreydaley coreydaley Aug 24, 2017

Choose a reason for hiding this comment

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

iterating through build init ...
to be consistent with the wording in line 195

Copy link
Contributor Author

Choose a reason for hiding this comment

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

log level 4....

glog.V(4).Infof("timed out while iterating on build init containers for build pod %s/%s", build.Namespace, buildPodName)
return
default:
}
Copy link
Member

Choose a reason for hiding this comment

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

I feel like line 195 should be before the select?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we shouldn't log that we're iterating through the containers if we aren't going to iterate through the containers because the context timed out.

@bparees
Copy link
Contributor Author

bparees commented Aug 25, 2017

@jim-minter ptal

@bparees
Copy link
Contributor Author

bparees commented Aug 30, 2017

@openshift/devex bump

@bparees bparees added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2017
@openshift-merge-robot openshift-merge-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 30, 2017
@openshift-merge-robot
Copy link
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@openshift-ci-robot
Copy link

openshift-ci-robot commented Aug 30, 2017

@bparees: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/extended_conformance_gce d873f17 link /test extended_conformance_gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 15862, 15781, 15944)

@openshift-merge-robot openshift-merge-robot merged commit 248fa76 into openshift:master Aug 30, 2017
@bparees
Copy link
Contributor Author

bparees commented Aug 30, 2017

/retest

@bparees bparees deleted the logstream_timeout branch September 15, 2017 01:27
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.

None yet

7 participants