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

TestTriggerController is racy #17472

Closed
mfojtik opened this issue Nov 27, 2017 · 7 comments
Closed

TestTriggerController is racy #17472

mfojtik opened this issue Nov 27, 2017 · 7 comments
Assignees
Labels
component/image kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1

Comments

@mfojtik
Copy link
Contributor

mfojtik commented Nov 27, 2017

Seen here: https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/17469/test_pull_request_origin_unit/6070/

Not going to paste the 2k+ lines in output, but the race detector detected a race in that test.

@smarterclayton not sure if this is something I broke in DeepCopy() PR or something that is broken for long time...

@mfojtik mfojtik added component/image kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1 labels Nov 27, 2017
@smarterclayton
Copy link
Contributor

So I have never seen a race here, so my guess is deep copy isn’t actually copying, or we’re using it incorrectly.

@mfojtik
Copy link
Contributor Author

mfojtik commented Nov 27, 2017

@smarterclayton i switched the trigger controller from interface{} to runtime.Object, wonder if that messed it up...

But I never seen this failure in that PR.

@smarterclayton
Copy link
Contributor

smarterclayton commented Nov 27, 2017 via email

@smarterclayton
Copy link
Contributor

Found it - i think a bug in the test, never triggered before because everything ran faster/slower

openshift-merge-robot added a commit that referenced this issue Nov 29, 2017
Automatic merge from submit-queue (batch tested with PRs 17476, 17143, 15115, 17094, 17500).

Image trigger test was mutating the wrong object

Fixes #17472
@mfojtik
Copy link
Contributor Author

mfojtik commented Nov 29, 2017

@smarterclayton
Copy link
Contributor

smarterclayton commented Nov 29, 2017 via email

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

No branches or pull requests

3 participants