Skip to content

Some unit tests are very slow #6801

Closed
Closed

Description

@smarterclayton
ok      github.com/openshift/origin/pkg/api 21.340s coverage: 77.9% of statements
ok      github.com/openshift/origin/pkg/build/builder   6.770s  coverage: 44.6% of statements
ok      github.com/openshift/origin/pkg/cmd/server/crypto   19.404s coverage: 10.3% of statements
ok      github.com/openshift/origin/pkg/cmd/server/admin    9.591s  coverage: 31.1% of statements
ok      github.com/openshift/origin/pkg/deploy/prune    11.039s coverage: 91.5% of statements
ok      github.com/openshift/origin/pkg/deploy/reaper   15.137s coverage: 72.2% of statements
ok      github.com/openshift/origin/pkg/generate/app/cmd    39.368s coverage: 62.4% of statements
ok      github.com/openshift/origin/plugins/router/f5   6.206s  coverage: 72.9% of statements

Are the worst offenders. pkg/api gets a pass because it's fuzz testing roundtripping, the others are probably not stubbing enough logic (generate for instance is going out to github and dockerhub) and should either be stubbed or moved to integration tests.

The others may be waiting or sleeping.

@Kargakis @derekwaynecarr @ironcladlou @deads2k @ramr @Miciah @csrwng as people who have touched those tests

Activity

  1. 0xmichalis commented on Jan 25, 2016

    @0xmichalis
    Contributor

    related: #6176

  2. mfojtik commented on Jan 25, 2016

    @mfojtik
    Contributor

    github.com/openshift/origin/pkg/generate/app/cmd 39.368s

    This is ~95s when I run this locally, which timeouts the unit tests. We already talked about this with @deads2k.

  3. deads2k commented on Jan 25, 2016

    @deads2k
    Contributor

    It gets worth with race detection on (not sure if you have that on locally). I was going to write a "special" list that got run with a longer default timeout to keep the queue happy.

    @mfojtik and I had talked about moving the new-app stuff into test-integration to allow longer timeouts, but still make sure that our example repos still worked for each merge.

  4. smarterclayton commented on Jan 28, 2016

    @smarterclayton
    ContributorAuthor

    App/cmd does need to be split into two parts.

    On Thu, Jan 28, 2016 at 5:44 AM, Michail Kargakis [email protected]
    wrote:

    new-app tests panic from time to time

    http://pastebin.com/kBL9Btq6

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

  5. deads2k commented on Jan 28, 2016

    @deads2k
    Contributor

    @Kargakis we have a rule for this: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/failure-cause-management/56a667f3e4b089752bb4314f/, but it could use some work to gather the package that timeed out and the description should point to this issue.

  6. 0xmichalis commented on Jan 28, 2016

    @0xmichalis
    Contributor

    @Kargakis we have a rule for this: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/failure-cause-management/56a667f3e4b089752bb4314f/, but it could use some work to gather the package that timeed out and the description should point to this issue.

    updated with the panic log, name of the offending test, and the link to this issue

  7. smarterclayton commented on Feb 13, 2016

    @smarterclayton
    ContributorAuthor

    Moved new-app slow tests to integration

  8. added
    kind/test-flake
    on Mar 18, 2016
  9. liggitt commented on Mar 18, 2016

    @liggitt
    Contributor

    marking as flake because the slow ones sometimes timeout

  10. 0xmichalis commented on May 31, 2016

    @0xmichalis
    Contributor

    @stevekuznetsov passing to you if you have any time to look at it

  11. stevekuznetsov commented on May 31, 2016

    @stevekuznetsov
    Contributor

    @smarterclayton it seems like running them in parallel with test-cmd has potentially led to some timeout-based tests being intentionally lengthened to work with the slowness with which we run them on Jenkins... unclear if your list above includes these or not

  12. smarterclayton commented on May 31, 2016

    @smarterclayton
    ContributorAuthor

    If a unit test can't deal with 20-30 second pauses, it's going to flake
    against either test-cmd or itself, just based on our experience. It just
    makes them more likely and thus easier to spot and fix.

    On Tue, May 31, 2016 at 1:33 PM, Steve Kuznetsov [email protected]
    wrote:

    @smarterclayton https://github.com/smarterclayton it seems like running
    them in parallel with test-cmd has potentially led to some timeout-based
    tests being intentionally lengthened to work with the slowness with which
    we run them on Jenkins... unclear if your list above includes these or not

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #6801 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe/ABG_p_R1bfMUOHg9wJLdGxpbG5rl5Ekjks5qHHDugaJpZM4HLQDt
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/testskind/test-flakepriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions