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

Flake in test/cmd/builds.sh: oc cancel-build build/ruby-sample-build-1 #6339

Closed
liggitt opened this issue Dec 16, 2015 · 6 comments
Closed
Assignees
Labels
area/tests kind/test-flake Categorizes issue or PR as related to test flakes.

Comments

@liggitt
Copy link
Contributor

liggitt commented Dec 16, 2015

seen in https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7860 run from #6330:

Running hack/../test/cmd/builds.sh:113: executing 'oc cancel-build build/ruby-sample-build-1' expecting any result and text 'A cancellation event was already triggered for the build ruby-sample-build-1.'; re-trying every 0.2s until completion or 60.000s...
FAILURE after 59.535s: hack/../test/cmd/builds.sh:113: executing 'oc cancel-build build/ruby-sample-build-1' expecting any result and text 'A cancellation event was already triggered for the build ruby-sample-build-1.'; re-trying every 0.2s until completion or 60.000s: the output content test failed
Standard output from the command:
A build can be cancelled only if it has new/pending/running status.
A build can be cancelled only if it has new/pending/running status.
A build can be cancelled only if it has new/pending/running status.
A build can be cancelled only if it has new/pending/running status.
A build can be cancelled only if it has new/pending/running status.
A build can be cancelled only if it has new/pending/running status.
@liggitt liggitt added area/tests kind/test-flake Categorizes issue or PR as related to test flakes. labels Dec 16, 2015
@smarterclayton
Copy link
Contributor

I thought we had a known flake here @bparees on cancelling builds too fast.

@bparees
Copy link
Contributor

bparees commented Dec 16, 2015

doesn't ring a bell, and the above code is retrying for 60s, so it seems like the build never got created or got created and immediately failed, making it non-cancellable.

oc cancel-build should probably dump the current state of the build as part of the error message, that would tell us more about why cancel is failing.

@smarterclayton
Copy link
Contributor

The error message is also scarier than it should be.

On Wed, Dec 16, 2015 at 1:47 PM, Ben Parees [email protected]
wrote:

doesn't ring a bell, and the above code is retrying for 60s, so it seems
like the build never got created or got created and immediately failed,
making it non-cancellable.

oc cancel-build should probably dump the current state of the build as
part of the error message, that would tell us more about why cancel is
failing.


Reply to this email directly or view it on GitHub
#6339 (comment).

@bparees
Copy link
Contributor

bparees commented Dec 16, 2015

The error message is also scarier than it should be.

how so?

@smarterclayton
Copy link
Contributor

"A build can be cancelled only if it has new/pending/running status." ->
"Build %s is complete and cannot be cancelled". Also, I'm not sure that's
an error - that a no-op (like deleting something that doesn't exist).

On Wed, Dec 16, 2015 at 2:03 PM, Ben Parees [email protected]
wrote:

The error message is also scarier than it should be.

how so?


Reply to this email directly or view it on GitHub
#6339 (comment).

@liggitt
Copy link
Contributor Author

liggitt commented Dec 16, 2015

was a race condition... if the cancellation was acted on quickly enough, the message would change to "must be in pending/running state"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests kind/test-flake Categorizes issue or PR as related to test flakes.
Projects
None yet
Development

No branches or pull requests

4 participants