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

Make image trigger test more reliable #5167

Merged
merged 1 commit into from
Oct 17, 2015

Conversation

ironcladlou
Copy link
Contributor

This trigger test only expected a single update to the deploymentConfig
during the test, which is not reliable. Refactor the test to be tolerant
of multiple updates to the deploymentConfig.

Fixes #5161

This trigger test only expected a single update to the deploymentConfig
during the test, which is not reliable. Refactor the test to be tolerant
of multiple updates to the deploymentConfig.
@ironcladlou
Copy link
Contributor Author

cc @Kargakis @liggitt

@ironcladlou
Copy link
Contributor Author

[test]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/5875/)

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to f652134

break waitForNewConfig
// Multiple updates to the config can be expected (e.g. status
// updates), so wait for a significant update (e.g. version).
if newConfig.LatestVersion > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

if we never see it, the test will just timeout, right? do we want to set a timeout on that earlier than the integration test timeout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The previous factoring also relied on watch or integration test timeouts, so it's no worse off. Makes sense to me to rely on the global timeout. Otherwise you have to choose arbitrary values or make config per test.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. you still sweeping for other similar tests or ready to merge this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haven't found anything yet, will make followups as necessary. I'd like to knock this one out now.

@liggitt
Copy link
Contributor

liggitt commented Oct 16, 2015

LGTM

@pmorie
Copy link
Contributor

pmorie commented Oct 16, 2015

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3660/) (Image: devenv-fedora_2484)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to f652134

openshift-bot pushed a commit that referenced this pull request Oct 17, 2015
@openshift-bot openshift-bot merged commit 35c6ee2 into openshift:master Oct 17, 2015
@ironcladlou ironcladlou deleted the trigger-test-flake branch October 19, 2015 13:49
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.

4 participants