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

Test-hang fix: Wait for ready + timeout on connect. #11979

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

cevich
Copy link
Member

@cevich cevich commented Oct 14, 2021

What this PR does / why we need it:

It was observed during initial F35 testing, this test can cause Ginkgo
to "hang" by attempting to connect before the redis is up/listening.
Fix this by confirming the ready-state before attempting to connect.
Also, force IPv4 and timeout on any connection fault - to allow other
tests to run.

Thanks to Adrian Reber for help on this and related fixes.

How to verify it

CI on this PR will pass and CI in #11795 will no-longer hang.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

@cevich cevich requested review from jwhonce and adrianreber October 14, 2021 19:01
@cevich
Copy link
Member Author

cevich commented Oct 14, 2021

@jwhonce PTAL, this is loosely related to #11955

It was observed during initial F35 testing, this test can cause Ginkgo
to "hang" by attempting to connect before the redis is up/listening.
Fix this by confirming the ready-state before attempting to connect.
Also, force IPv4 and timeout on any connection fault - to allow other
tests to run.

Thanks to Adrian Reber for help on this and related fixes.

Signed-off-by: Chris Evich <[email protected]>
@TomSweeneyRedHat
Copy link
Member

LGTM
and happy green test buttons

@jwhonce
Copy link
Member

jwhonce commented Oct 14, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 14, 2021
@rhatdan
Copy link
Member

rhatdan commented Oct 15, 2021

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 15, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cevich, rhatdan

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

The pull request process is described here

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 15, 2021
@openshift-merge-robot openshift-merge-robot merged commit a5c13bb into containers:main Oct 15, 2021
@cevich cevich deleted the more_criu_fix branch April 18, 2023 14:45
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants