Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@wgahnagl
Copy link
Contributor

@wgahnagl wgahnagl commented Feb 1, 2021

What type of PR is this?

/kind api-change
/kind bug
/kind ci
/kind cleanup
/kind dependency-change
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake
/kind other

What this PR does / why we need it:

allows the stream timeout to be set by config

Which issue(s) this PR fixes:

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1920300

Special notes for your reviewer:

Does this PR introduce a user-facing change?

allows users to set stream timeout from config

allows users to set stream timeout from config

@openshift-ci-robot openshift-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: no Indicates the PR's author has not DCO signed all their commits. labels Feb 1, 2021
@openshift-ci-robot
Copy link

Hi @wgahnagl. Thanks for your PR.

I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@openshift-ci-robot openshift-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 1, 2021
@openshift-ci-robot openshift-ci-robot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. and removed dco-signoff: no Indicates the PR's author has not DCO signed all their commits. labels Feb 1, 2021
@haircommander
Copy link
Member

/ok-to-test

@openshift-ci-robot openshift-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 1, 2021
@codecov
Copy link

codecov bot commented Feb 1, 2021

Codecov Report

Merging #4529 (6f096c5) into master (c75afa5) will increase coverage by 0.00%.
The diff coverage is 41.66%.

@@           Coverage Diff           @@
##           master    #4529   +/-   ##
=======================================
  Coverage   40.18%   40.18%           
=======================================
  Files         115      115           
  Lines        9327     9339   +12     
=======================================
+ Hits         3748     3753    +5     
- Misses       5161     5168    +7     
  Partials      418      418           

docs/crio.8.md Outdated
**--root, -r**="": The CRI-O root directory (default: /var/lib/containers/storage)

**--runroot**="": The CRI-O state directory (default: /run/containers/storage)
**--runroot**="": The CRI-O state directory (default: /var/run/containers/storage)
Copy link
Member

Choose a reason for hiding this comment

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

The changes in the file that aren't related to stream-idle-timeout should be dropped.

@mrunalp mrunalp changed the title allows stream timeout to be set from config Bug 1920300: allows stream timeout to be set from config Feb 1, 2021
@mrunalp mrunalp changed the title Bug 1920300: allows stream timeout to be set from config Bug 1920300: Allow stream timeout to be set from config Feb 1, 2021
@wgahnagl wgahnagl force-pushed the idletimeout branch 2 times, most recently from d0488d3 to 6b888af Compare February 1, 2021 18:28
@openshift-ci-robot openshift-ci-robot added dco-signoff: no Indicates the PR's author has not DCO signed all their commits. and removed dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Feb 1, 2021
@openshift-ci-robot openshift-ci-robot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. and removed dco-signoff: no Indicates the PR's author has not DCO signed all their commits. labels Feb 1, 2021
@wgahnagl wgahnagl force-pushed the idletimeout branch 2 times, most recently from aa9b20f to 7b74edc Compare February 1, 2021 19:09
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Just one nit, otherwise LGTM

server/server.go Outdated
if config.StreamIdleTimeout != "" {
idleTimeout, err := time.ParseDuration(config.StreamIdleTimeout)
if err != nil {
return nil, fmt.Errorf("unable to parse timeout as duration")
Copy link
Member

Choose a reason for hiding this comment

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

There is no format included and we'd like to stick to the github.com/pkg/errors package rather than fmt:

Suggested change
return nil, fmt.Errorf("unable to parse timeout as duration")
return nil, errors.New("unable to parse timeout as duration")

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert, wgahnagl

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2021
@wgahnagl wgahnagl force-pushed the idletimeout branch 7 times, most recently from 8674ad2 to 7738b39 Compare February 2, 2021 20:26
@mrunalp
Copy link
Member

mrunalp commented Feb 2, 2021

@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 3, 2021

/retest

@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 3, 2021

/retest

5 similar comments
@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 3, 2021

/retest

@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 4, 2021

/retest

@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 8, 2021

/retest

@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 9, 2021

/retest

@wgahnagl
Copy link
Contributor Author

wgahnagl commented Feb 9, 2021

/retest

@haircommander
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 9, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 9, 2021

@wgahnagl: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-gcp 6f096c5 link /test e2e-gcp
ci/prow/e2e-agnostic 6f096c5 link /test e2e-agnostic

Full PR test history. Your PR dashboard.

Details

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.

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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants