Skip to content

new-build test flake #6818

Closed
Closed

Description

@0xmichalis
FAILURE after 30.239s: hack/../test/cmd/builds.sh:68: executing 'oc new-build -D "FROM centos:7" -o json | python -m json.tool' expecting success: the command returned the wrong error code
There was no output from the command.
Standard error from the command:
error: only a partial match was found for "centos:7": "cmd-builds/centos"
No JSON object could be decoded
!!! Error in hack/../test/cmd/../../hack/cmd_util.sh:195
    'return 1' exited with status 1
Call stack:
    1: hack/../test/cmd/../../hack/cmd_util.sh:195 os::cmd::expect_success(...)
    2: hack/../test/cmd/builds.sh:68 main(...)
Exiting with status 1
!!! Error in hack/test-cmd.sh:289
    '${test}' exited with status 1
Call stack:
    1: hack/test-cmd.sh:289 main(...)

https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/9382/consoleFull

Activity

  1. 0xmichalis commented on Jan 25, 2016

    @0xmichalis
    ContributorAuthor
  2. bparees commented on Jan 25, 2016

    @bparees
    Contributor

    that doesn't seem like a flake. i would expect that to always fail if it's going to fail.

  3. bparees commented on Jan 25, 2016

    @bparees
    Contributor

    alternatively it flaked because dockerhub didn't respond so we didn't find the "centos:7" exact match on dockerhub i guess.

  4. bparees commented on Jan 25, 2016

    @bparees
    Contributor

    yeah only conclusion i can reach here is dockerhub flake.

  5. mfojtik commented on Jan 26, 2016

    @mfojtik
    Contributor

    maybe we should improve the error message in that case?

  6. bparees commented on Jan 26, 2016

    @bparees
    Contributor

    @mfojtik how do you propose doing that?

    the only improvement I can see is that if we fail to reach dockerhub, we ought to report that as a warning on the output. (arguably it ought to even be an error because if we exact-match something else when we would have exact matched on dockerhub but we couldn't reach it, we're going to get unpredictable behavior. The downside to making it an error is a customer who has no access to dockerhub would always just get that error).

    @smarterclayton is this behavior(when dockerhub is unreachable) changing w/ all your refactoring?

  7. mfojtik commented on Jan 26, 2016

    @mfojtik
    Contributor

    @bparees can we check if you have access to dockerhub by pinging it? it that fails, we don't consider this as an error. If dockerhub is available and we fail to pull the image, we report that as an error to user.

  8. bparees commented on Jan 26, 2016

    @bparees
    Contributor

    @mfojtik if dockerhub is unavailable that doesn't mean it's always unavailable. so it could still be an error.

  9. smarterclayton commented on Jan 26, 2016

    @smarterclayton
    Contributor

    My refactoring should take it into account, but is not complete. Basically
    it needs to be possible to find, retrieve, and list outcomes even in the
    presence of failures. But, the presence of a failure should not result in
    a materially different outcome - i.e. the registry being connection denied
    is not the same error as getting a not found on an endpoint or an
    "unauthorized".

    On Tue, Jan 26, 2016 at 10:09 AM, Ben Parees [email protected]
    wrote:

    @mfojtik https://github.com/mfojtik if dockerhub is unavailable that
    doesn't mean it's always unavailable. so it could still be an error.

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

  10. bparees commented on Jan 26, 2016

    @bparees
    Contributor

    But, the presence of a failure should not result in a materially different outcome

    I don't follow that statement.

    if i have a "centos" imagestream and there is a "centos" dockerhub image, then under normal circumstances (i can reach dockerhub) i'd expect a "multiple matches" error (there are two exact matches).

    if dockerhub is unreachable because my network is temporarily down, there are two possible outcomes:

    1. we match the imagestream and move on (with or without a warning)
    2. we error out saying "we couldn't reach dockerhub so we can't guarantee we've searched all options. if you want to ignore this error, specify --no-dockerhub or specify the imagestream to use explicitly"

    if dockerhub is unreachable because we got a permission denied error we also have the same possible outcomes, though we could make more guesses about the "right" thing to do since we can assume it's a permanent failure to reach dockerhub, not a temporary one.

  11. added
    kind/test-flake
    on Jan 26, 2016
  12. bparees commented on Jan 26, 2016

    @bparees
    Contributor

    p3 because (I believe) it's a dockerhub flake and tests should/will always fail if we can't reach dockerhub. leaving this issue open to address the question of new-app behavior when dockerhub is unreachable.

  13. smarterclayton commented on Jan 26, 2016

    @smarterclayton
    Contributor

    "materially different outcome" = we should not create an app that we would not normally create if a transient error occurs

    The other statement is that if one or more sources is permafail, it should always be possible to create an app on at least one match (which I think the flags would allow today, but we probably need more test cases in that path).

  14. smarterclayton commented on Jan 27, 2016

    @smarterclayton
    Contributor

    Ugh, it gets even worse:

    FAILURE after 15.406s: hack/../test/cmd/builds.sh:64: executing 'oc new-build -D $'FROM centos:7' --no-output' expecting success: the command returned the wrong error code
    There was no output from the command.
    Standard error from the command:
    error: only a partial match was found for "centos:7": "centos:7"
    

    Looks like it thinks an exact match is a partial match? Probably another bug caused by a flake, but in the other direction.

  15. bparees commented on Jan 27, 2016

    @bparees
    Contributor

    i don't get why it would think that one is a partial match. we need to print out more match information on partial matches, like we do for multiple matches.

  16. stevekuznetsov commented on Jan 27, 2016

    @stevekuznetsov
    Contributor

    More nonsense matching:

    error: only a partial match was found for "centos:7": "cmd-builds/centos"
    
  17. bparees commented on Jan 27, 2016

    @bparees
    Contributor

    @stevekuznetsov that's the original error reported on this issue....

  18. bparees commented on Jan 27, 2016

    @bparees
    Contributor

    @smarterclayton can you include more information for partial matches in the error handling changes you're making? i'd expect it to print something more like "partial match for foo: [imagestream/image/template] [namespace]/foo:bar"

  19. smarterclayton commented on Jan 27, 2016

    @smarterclayton
    Contributor
  20. bparees commented on Jan 27, 2016

    @bparees
    Contributor

    @smarterclayton is heavily reworking error handling right now so assigning to him in hopes he'll address how we handle dockerhub failures. Note that we should probably be reporting failures to interrogate dockerhub, also. (as a warning).

  21. smarterclayton commented on Feb 5, 2016

    @smarterclayton
    Contributor

    This hasn't happened since the last failure, and is basically either the etcd flake or the image import flake. Simplifying down to one.

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

Metadata

Metadata

Labels

component/buildkind/test-flakepriority/P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions