Repository navigation
Fix extended tests - #11922
Fix extended tests#11922
Conversation
|
@oatmealraisin may be of interest to you. |
|
@ncdc ❤️ |
|
How long was this broken? Also, you're going to fail a unit test which give instructions for updating the yaml that corresponds to the role. |
|
@deads2k yeah this is a WIP. I'm not going to run it through jenkins until I feel like most or all of the issues are resolved. Extended tests have been broken for a while. |
| { | ||
| APIGroups: []string{""}, | ||
| Verbs: sets.NewString("get", "list", "watch"), | ||
| Verbs: sets.NewString("get", "list", "watch", "update"), |
There was a problem hiding this comment.
this really seems like controlling the wrong layer :(
do we want to open an issue about it upstream?
There was a problem hiding this comment.
I thought you'd say that. How would you prefer to do it?
There was a problem hiding this comment.
We need the permission to enable adoption of replica sets (pods may be relabeled).
There was a problem hiding this comment.
Do you think that a label or relabel subresource on the replica set that would make the replica set controller relabel itself and then the pods would make any sense? It's not possible now so we need to handle it in deployments.
There was a problem hiding this comment.
I think a subresource is the way to go
|
LGTM |
|
@Kargakis do you think you can take over this work? |
Not sure if I can make it to the rest of the test flakes today. Is there anything else that needs to be done for the deployment flakes? |
469150e to
4f90801
Compare
|
All the deployment test failures pass with the added "update pods" permission for the deployment controller. I believe the other 3 commits should address most if not all of the remaining actual failures (not flakes). |
aedaace to
6e3b007
Compare
|
[testextended][extended:core] |
|
While we're here we might want to lint these lists... a lot of the literal whitelist for conformance matches nothing... ~$ cat /tmp/test.sh
#!/bin/bash
source /home/skuznets/Documents/go/src/github.com/openshift/origin/test/extended/setup.sh
for test in "${CONFORMANCE_TESTS[@]}"; do
matches="$(grep -nrE "${test}" /home/skuznets/Documents/go/src/github.com/openshift/origin/test/extended /home/skuznets/Documents/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test | grep -v 'setup.sh' )"
if ! grep -q "It(" <<<"${matches}" && ! grep -q "g.Describe(" <<<"${matches}" && ! grep -q "framework.KubeDescribe" <<<"${matches}" ; then
echo "Test \`${test}\` matches no actual tests!"
echo "Matches found: "
echo "${matches:-none}"
echo
fi
done |
|
Still need to fix: This passes for me locally, so something must be weird with the devenv: |
|
@gabemontero can look at the jenkins failure, i think it's already on our radar because we run our extended tests nightly. |
|
@bparees thanks, that would be helpful. It's not a flake. |
|
@bparees @ncdc the kubernetes_plugin.go failure noted above does not make sense to me, given that file still exists in origin's master branch: And I've seen that test pass as recently as https://ci.openshift.redhat.com/jenkins/job/origin_extended_image_tests/754/consoleFull and that file has not changed since Oct 31. side bar: that test is going away once #11844 merges, though that should have no bearing on why the above failures are occuring, and why a file which does exist is found in our nightly runs but not in these runs. |
|
@bparees I have been scanning a few of our nightly runs and have seen no indication of this file not found issue. |
|
That would be my guess |
@gabemontero do we not have historical jUnit for it? |
|
Only 3 test failures now! |
|
@oatmealraisin and @gabemontero are looking into the 3 remaining failures (2 tests failing to pull scratch, 1 file not found). Any objections to merging this? [test] |
@mfojtik we definitely want the first commit. |
|
Corresponding PR for 1.4: #11942 |
|
Comparing https://ci.openshift.redhat.com/jenkins/job/origin_extended_image_tests/configure with https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/configure there are differences in how the extended tests are launched. Assuming those differences result in changes in the relative dir, the old kubernetes_plugin.go test builds the file path with @bparees - can we just wait until #11844 merges and kubernetes_plugin.go goes away? Or do you want kubernetes_plugin.go updated in the interim? |
|
@gabemontero it can wait, but i'm surprised there's a meaningful difference between the two test jobs. the only difference should be the focus being passed to the bucket, so we should consider reconciling the jobs. |
Quite a lot of our jobs are almost identical with small config changes, if we had a way to describe them that way we would be much better off. |
|
Sounds like it's time to move to jjb |
|
A way that doesn't involve having one job and passing it parameters, since that is not very nice for aggregate data, etc. |
|
Fixing the unit test failure from my policy change... |
We don't have the kube garbage collector enabled yet, so we need to disable these tests for now.
OVS tests need special networking setup that test/extended/networking.sh configures.
6e3b007 to
b7ed95b
Compare
|
Evaluated for origin testextended up to b7ed95b |
|
Evaluated for origin test up to b7ed95b |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11507/) (Base Commit: 3712aec) |
1 similar comment
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11507/) (Base Commit: 3712aec) |
|
continuous-integration/openshift-jenkins/testextended FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/811/) (Base Commit: 3712aec) (Extended Tests: core) |
| "\[Feature:Performance\]" | ||
|
|
||
| # not enabled in Origin yet | ||
| "\[Feature:GarbageCollector\]" |
There was a problem hiding this comment.
Let's get an issue for this in 1.5. Some controllers are starting to use it.
|
lgtm |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11507/) (Image: devenv-rhel7_5379) |
|
Evaluated for origin merge up to b7ed95b |
Fixes #11903