Skip to content

Fix extended tests - #11922

Merged
openshift-bot merged 4 commits into
openshift:masterfrom
ncdc:fix-extended-tests
Nov 17, 2016
Merged

openshift-bot merged 4 commits into
openshift:masterfrom
ncdc:fix-extended-tests

Conversation

@ncdc

@ncdc ncdc commented Nov 15, 2016 •

Copy link
Copy Markdown
Contributor
  • allow deployment controller to update pods
  • disable kube garbage collector tests since the kube garbage collector isn't enabled in origin yet
  • excluded 1 federation test that wasn't caught by our existing filter
  • skip networking OVS tests in core.sh because they need a special network configuration that's set up by test/extended/networking.sh

Fixes #11903

@ncdc

ncdc commented Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

@deads2k @liggitt @pweil- @mfojtik @Kargakis @soltysh @smarterclayton @bparees FYI, working through extended test failures. I'll be adding more commits as I find more things.

@bparees

bparees commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

@oatmealraisin may be of interest to you.

@mfojtik

mfojtik commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

@ncdc ❤️

@deads2k

deads2k commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

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.

@ncdc

ncdc commented Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

@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"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this really seems like controlling the wrong layer :(
do we want to open an issue about it upstream?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought you'd say that. How would you prefer to do it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need the permission to enable adoption of replica sets (pods may be relabeled).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a subresource is the way to go

@0xmichalis

Copy link
Copy Markdown
Contributor

LGTM

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

@Kargakis do you think you can take over this work?

@0xmichalis

Copy link
Copy Markdown
Contributor

@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?

@ncdc
ncdc force-pushed the fix-extended-tests branch from 469150e to 4f90801 Compare November 16, 2016 15:11
@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

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).

@ncdc
ncdc force-pushed the fix-extended-tests branch from aedaace to 6e3b007 Compare November 16, 2016 15:40
@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

[testextended][extended:core]

@stevekuznetsov

stevekuznetsov commented Nov 16, 2016 •

Copy link
Copy Markdown
Contributor

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
~$ /tmp/test.sh 
Test `Services.*NodePort` matches no actual tests!
Matches found: 
/home/skuznets/Documents/go/src/github.com/openshift/origin/test/extended/networking.sh:19:NETWORKING_E2E_FOCUS="${NETWORKING_E2E_FOCUS:-etworking|Services should be able to create a functioning NodePort service|EmptyDir volumes should support \(root,0644,tmpfs\)}"
/home/skuznets/Documents/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/resource_quota.go:509:    hard[api.ResourceServicesNodePorts] = resource.MustParse("1")

Test `ResourceQuota should` matches no actual tests!
Matches found: 
none

Test `\[networking\] basic openshift networking` matches no actual tests!
Matches found: 
none

Test `DNS for pods for Hostname and Subdomain annotation` matches no actual tests!
Matches found: 
none

Test `PrivilegedPod should test privileged pod` matches no actual tests!
Matches found: 
none

Test `Pods should support remote command execution` matches no actual tests!
Matches found: 
none

Test `Pods should support retrieving logs from the container` matches no actual tests!
Matches found: 
none

Test `Kubectl client Simple pod should support` matches no actual tests!
Matches found: 
none

Test `Job should run a job to completion when tasks succeed` matches no actual tests!
Matches found: 
none

Test `\[images\]\[mongodb\] openshift mongodb replication` matches no actual tests!
Matches found: 
none

Test `\[job\] openshift can execute jobs controller` matches no actual tests!
Matches found: 
none

Test `\[volumes\] Test local storage quota FSGroup` matches no actual tests!
Matches found: 
none

Test `test deployment should run a deployment to completion` matches no actual tests!
Matches found: 
none

Test `Clean up pods on node kubelet` matches no actual tests!
Matches found: 
none

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

Still need to fix:

• Failure in Spec Setup (BeforeEach) [5.321 seconds]
[image_ecosystem][jenkins] schedule jobs on pod slaves
/data/src/github.com/openshift/origin/test/extended/image_ecosystem/kubernetes_plugin.go:169
  use of jenkins with kubernetes plugin
  /data/src/github.com/openshift/origin/test/extended/image_ecosystem/kubernetes_plugin.go:168
    by creating slave from existing builder and adding it to Jenkins master [BeforeEach]
    /data/src/github.com/openshift/origin/test/extended/image_ecosystem/kubernetes_plugin.go:167

    Expected error:
        <*os.PathError | 0xc82171b050>: {
            Op: "open",
            Path: "examples/jenkins/master-slave/jenkins-master-template.json",
            Err: 0x2,
        }
        open examples/jenkins/master-slave/jenkins-master-template.json: no such file or directory
    not to have occurred

    /data/src/github.com/openshift/origin/test/extended/image_ecosystem/kubernetes_plugin.go:22

This passes for me locally, so something must be weird with the devenv:

• Failure [15.623 seconds]
[imageapis] openshift limit range admission
/data/src/github.com/openshift/origin/test/extended/imageapis/limitrange_admission.go:224
  should deny a push of built image exceeding limit on openshift.io/images resource [It]
  /data/src/github.com/openshift/origin/test/extended/imageapis/limitrange_admission.go:122

  Expected error:
      <*errors.errorString | 0xc8209c1880>: {
          s: "Failed to match expected \"(?i)requested access to the resource is denied|failed to push image: denied|^denied$\" in: \"2016-11-16T16:54:36.783959000Z Receiving source from STDIN as archive ...\\n2016-11-16T16:54:37.573859000Z Pulling image scratch ...\\n2016-11-16T16:54:37.575120000Z error: build error: failed to pull image: API error (500): {\\\"message\\\":\\\"'scratch' is a reserved name\\\"}\"",
      }
      Failed to match expected "(?i)requested access to the resource is denied|failed to push image: denied|^denied$" in: "2016-11-16T16:54:36.783959000Z Receiving source from STDIN as archive ...\n2016-11-16T16:54:37.573859000Z Pulling image scratch ...\n2016-11-16T16:54:37.575120000Z error: build error: failed to pull image: API error (500): {\"message\":\"'scratch' is a reserved name\"}"
  not to have occurred

  /data/src/github.com/openshift/origin/test/extended/imageapis/limitrange_admission.go:87

@bparees

bparees commented Nov 16, 2016

Copy link
Copy Markdown
Contributor

@gabemontero can look at the jenkins failure, i think it's already on our radar because we run our extended tests nightly.

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

@bparees thanks, that would be helpful. It's not a flake.

@gabemontero

Copy link
Copy Markdown
Contributor

@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:

https://github.com/openshift/origin/blob/master/examples/jenkins/master-slave/jenkins-master-template.json

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.

@gabemontero

Copy link
Copy Markdown
Contributor

@bparees I have been scanning a few of our nightly runs and have seen no indication of this file not found issue.

@gabemontero

Copy link
Copy Markdown
Contributor

@ncdc @bparees could these extended test runs here possibly be occurring under a different directory (and hence the relative path in the test case is invalid) ?

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

That would be my guess

@stevekuznetsov

Copy link
Copy Markdown
Contributor

I have been scanning a few of our nightly runs

@gabemontero do we not have historical jUnit for it?

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

Only 3 test failures now!

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

@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]

@0xmichalis

Copy link
Copy Markdown
Contributor

Any objections to merging this?

@mfojtik we definitely want the first commit.

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

Corresponding PR for 1.4: #11942

@gabemontero

Copy link
Copy Markdown
Contributor

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 filepath.Join, where as our plugin.go tests leverage FixturePath, which ultimately looks and the env var EXTENDED_TEST_PATH, which I'm guessing is properly set irregardless of where the tests start from.

@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?

@bparees

bparees commented Nov 16, 2016

Copy link
Copy Markdown
Contributor

@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.

@stevekuznetsov

Copy link
Copy Markdown
Contributor

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.

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

Sounds like it's time to move to jjb

@stevekuznetsov

Copy link
Copy Markdown
Contributor

A way that doesn't involve having one job and passing it parameters, since that is not very nice for aggregate data, etc.

@ncdc

ncdc commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

Fixing the unit test failure from my policy change...

Andy Goldstein added 4 commits November 16, 2016 16:18
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.
@ncdc
ncdc force-pushed the fix-extended-tests branch from 6e3b007 to b7ed95b Compare November 16, 2016 21:18
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin testextended up to b7ed95b

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to b7ed95b

@openshift-bot

Copy link
Copy Markdown
Contributor

1 similar comment
@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/testextended FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/811/) (Base Commit: 3712aec) (Extended Tests: core)

Comment thread test/extended/setup.sh
"\[Feature:Performance\]"

# not enabled in Origin yet
"\[Feature:GarbageCollector\]"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get an issue for this in 1.5. Some controllers are starting to use it.

@deads2k

deads2k commented Nov 17, 2016

Copy link
Copy Markdown
Contributor

lgtm

@ncdc

ncdc commented Nov 17, 2016

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

openshift-bot commented Nov 17, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11507/) (Image: devenv-rhel7_5379)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to b7ed95b

@openshift-bot
openshift-bot merged commit a24b892 into openshift:master Nov 17, 2016
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

Successfully merging this pull request may close these issues.

9 participants