You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue appears to be random, if I change something in my PR and push again, the Jenkins will merge without problems. Since this happened pretty often I think someone should take a look and investigate...
My fears were around the same image being used in two separate test files (comment), although each test is run in separate process and tests are run sequentially (comment) we are using under the cover only one etcd deamon. In that case using exactly the same image name in the same namespace results in unexpected behavior. Apparently @mfojtik was lucky enough to hit a situation when those two tests were modifying that image so that tests were failing. I'm hoping the referenced PR will fix this.
My fears were around the same image being used in two separate test files (comment, although each test is run in separate process and tests are run sequentially (comment) we are using under the cover only one etcd deamon. In that case using exactly the same image name in the same namespace results in unexpected behavior. Apparently @mfojtik was lucky enough to hit a situation when those two tests were modifying that image so that tests were failing. I'm hoping the referenced PR will fix this.
—
Reply to this email directly or view it on GitHub.
Just double checked, we are calling deleteAllEtcdKeys in all the tests wherever we require etcd, especially the ones mentioned in this issue. I guess we'll wait for the other occurrence of the problem.
I have a theory on what is happening here... @ironcladlou you're most familiar w/ the watch logic so maybe you can confirm.
we create the image repo with the "ref-1" tag
we create the buildconfig w/ the imagechangetrigger
the image change controller gets the event for the imagerepo creation after the buildconfig was created
the image change controller triggers a build using the "ref-1" tag from the imagerepo event it got.
the test fails
(unseen by the test): we update the imagerepo with the ref-2 tag
another build is run using the ref-2 tag.
to fix this we need to ensure the buildconfig doesn't get created until after the imagerepo event is delivered, or we need to ensure the buildconfig is created first and ignore the first build event.
either way if i'm right, it's a test case problem and not a product problem, so that's good.
Activity
soltysh commentedon Feb 26, 2015
My fears were around the same image being used in two separate test files (comment), although each test is run in separate process and tests are run sequentially (comment) we are using under the cover only one etcd deamon. In that case using exactly the same image name in the same namespace results in unexpected behavior. Apparently @mfojtik was lucky enough to hit a situation when those two tests were modifying that image so that tests were failing. I'm hoping the referenced PR will fix this.
smarterclayton commentedon Feb 26, 2015
We should be deleting everything in etcd before each test. If not, that's something to be fixed in the test case
soltysh commentedon Feb 27, 2015
Just double checked, we are calling
deleteAllEtcdKeysin all the tests wherever we require etcd, especially the ones mentioned in this issue. I guess we'll wait for the other occurrence of the problem.soltysh commentedon Mar 2, 2015
Still applicable, see https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/1081/,
this is one of merge failures from #1195.
bparees commentedon Mar 6, 2015
I have a theory on what is happening here... @ironcladlou you're most familiar w/ the watch logic so maybe you can confirm.
to fix this we need to ensure the buildconfig doesn't get created until after the imagerepo event is delivered, or we need to ensure the buildconfig is created first and ignore the first build event.
either way if i'm right, it's a test case problem and not a product problem, so that's good.