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

Flaky test in DeploymentWorkflowSpec #642

Open
holmesjr opened this issue Mar 6, 2015 · 0 comments
Open

Flaky test in DeploymentWorkflowSpec #642

holmesjr opened this issue Mar 6, 2015 · 0 comments

Comments

@holmesjr
Copy link

holmesjr commented Mar 6, 2015

The test "should not rollback if previous ASG has disappeared" in DeploymentWorkflowSpec seems to be flaky. Something in the interaction of the mock throwing the exception:

then: 1 * mockActivities.reasonAsgIsNotOperational(userContext, 'the_seaward-v003', 1) >> {
            throw new IllegalStateException('Something really went wrong!')
        }

and the code in DeploymentWorkflowImpl at scaleAsg():

DoTry<Void> asgIsOperational = doTry {
            retry(retryPolicy) {
                waitFor(activities.reasonAsgIsNotOperational(userContext, asgName, capacity)) { String reason ->
                    if (reason) {
                        throw new PushException(reason)
                    }
                    Promise.Void()
                }
            }
        }

causes the test to hang on some occasions at line 232:

waitFor(anyPromises(startupTimeout.result, asgIsOperational.result)) {...

Sometimes the test passes fine. We see this pass/fail behaviour in subsequent runs of the test.

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

No branches or pull requests

1 participant