Skip to content

Flake in cmd test #6435

Closed
Closed

Description

@miminar

With an error like this:

Running hack/../test/cmd/builds.sh:81: executing 'oc patch bc/ruby-sample-build -p '{"spec":{"output":{"to":{"name":"origin-ruby-sample:latest"}}}}'' expecting success...
FAILURE after 0.285s: hack/../test/cmd/builds.sh:81: executing 'oc patch bc/ruby-sample-build -p '{"spec":{"output":{"to":{"name":"origin-ruby-sample:latest"}}}}'' expecting success: the command returned the wrong error code
There was no output from the command.
Standard error from the command:
Error from server: unable to find api field in struct BuildConfig for the json field "metadata"
[FAIL] !!!!! Test Failed !!!!

Occured in PRs #6335 (build), #6409 (build).

Activity

  1. deads2k commented on Dec 21, 2015

    @deads2k
    Contributor

    @liggitt @smarterclayton I'm not seeing the potential for inconsistent results.

  2. 0xmichalis commented on Dec 21, 2015

    @0xmichalis
    Contributor

    👽

  3. added
    kind/test-flake
    on Dec 23, 2015
  4. smarterclayton commented on Feb 5, 2016

    @smarterclayton
    Contributor

    Scary, but have not seen this since then.

  5. bparees commented on Feb 5, 2016

    @bparees
    Contributor

    @smarterclayton did you mean to reopen it?

  6. smarterclayton commented on Feb 6, 2016

    @smarterclayton
    Contributor
  7. bparees commented on Feb 16, 2016

    @bparees
    Contributor

    as seen in #7322 this seems to be becoming a popular flake. @deads2k i'm having a hard time seeing how this is build specific.

    W/o knowing much about how patch works, the only suspicious thing I see is that this cache might get corrupt/stale/empty?
    https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/k8s.io/kubernetes/third_party/forked/json/fields.go#L34

  8. smarterclayton commented on Feb 18, 2016

    @smarterclayton
    Contributor

    Happened again today.

    Running hack/../test/cmd/builds.sh:80: executing 'oc get istag busybox:1' expecting any result and text 'busybox@sha256:'; re-trying every 0.2s until completion or 60.000s...
    SUCCESS after 0.439s: hack/../test/cmd/builds.sh:80: executing 'oc get istag busybox:1' expecting any result and text 'busybox@sha256:'; re-trying every 0.2s until completion or 60.000s
    Running hack/../test/cmd/builds.sh:81: executing 'oc patch bc/busybox -p '{"spec":{"postCommit":{"script":"echo hello $1","args":["world"],"command":null}}}'' expecting success...
    FAILURE after 0.481s: hack/../test/cmd/builds.sh:81: executing 'oc patch bc/busybox -p '{"spec":{"postCommit":{"script":"echo hello $1","args":["world"],"command":null}}}'' expecting success: the command returned the wrong error code
    There was no output from the command.
    Standard error from the command:
    Error from server: unable to find api field in struct BuildConfig for the json field "metadata"
    
  9. smarterclayton commented on Feb 18, 2016

    @smarterclayton
    Contributor

    This is almost certainly a serious bug somewhere, moving to p1

  10. 25 remaining items

  11. ncdc commented on Mar 17, 2016

    @ncdc
    Contributor

    I can confirm that this is flaking because the object that is passed to LookupPatchMetadata is e.g. api.BuildConfig, not v1.BuildConfig.

  12. smarterclayton commented on Mar 17, 2016

    @smarterclayton
    Contributor

    Which should never happen, which probably means something else is seriously
    wrong.

    On Thu, Mar 17, 2016 at 12:11 PM, Andy Goldstein [email protected]
    wrote:

    I can confirm that this is flaking because the object that is passed to
    LookupPatchMetadata is e.g. api.BuildConfig, not v1.BuildConfig.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #6435 (comment)

  13. liggitt commented on Mar 17, 2016

    @liggitt
    Contributor

    is this client side or server side (or both)?

  14. ncdc commented on Mar 17, 2016

    @ncdc
    Contributor
    panic: ANDY t=api.BuildConfig
    
    goroutine 31504 [running]:
    k8s.io/kubernetes/third_party/forked/json.LookupPatchMetadata(0x7ff49ec650a8, 0x30c1dc0, 0xc825d2ba10, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/third_party/forked/json/fields.go:59 +0x728
    k8s.io/kubernetes/pkg/util/strategicpatch.diffMaps(0xc8269b6660, 0xc8269b6d50, 0x7ff49ec650a8, 0x30c1dc0, 0x0, 0x0, 0x0, 0x0)
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/strategicpatch/patch.go:206 +0xb36
    k8s.io/kubernetes/pkg/util/strategicpatch.CreateTwoWayMergePatch(0xc821d87880, 0x360, 0x360, 0xc822512800, 0x3c8, 0x3c8, 0x335b4e0, 0xc822a72d20, 0x0, 0x0, ...)
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/strategicpatch/patch.go:142 +0x345
    k8s.io/kubernetes/pkg/util/strategicpatch.CreateStrategicMergePatch(0xc821d87880, 0x360, 0x360, 0xc822512800, 0x3c8, 0x3c8, 0x335b4e0, 0xc822a72d20, 0x0, 0x0, ...)
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/util/strategicpatch/patch.go:115 +0xc3
    k8s.io/kubernetes/pkg/apiserver.patchResource.func1(0x0, 0x0, 0x0, 0x0)
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:570 +0x462
    k8s.io/kubernetes/pkg/apiserver.finishRequest.func1(0xc823ca1260, 0xc82141bae0, 0xc823ca1200, 0xc823ca11a0)
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:915 +0xec
    created by k8s.io/kubernetes/pkg/apiserver.finishRequest
            /home/vagrant/go/src/github.com/openshift/origin/Godeps/_workspace/src/k8s.io/kubernetes/pkg/apiserver/resthandler.go:920 +0xf1
    
  15. ncdc commented on Mar 17, 2016

    @ncdc
    Contributor

    Server

  16. ncdc commented on Mar 17, 2016

    @ncdc
    Contributor

    This is from commit 7e38050 with some extra logging I added to fields.go

  17. liggitt commented on Mar 17, 2016

    @liggitt
    Contributor

    opened #8098 to use versioned object when recomputing patches

  18. ncdc commented on Mar 17, 2016

    @ncdc
    Contributor

    @liggitt's fix seems to nail it

  19. assigned and unassigned on Mar 17, 2016
  20. bparees commented on Mar 17, 2016

    @bparees
    Contributor

    assigning to Andy since he deserves the credit for chasing this down.

  21. ncdc commented on Mar 17, 2016

    @ncdc
    Contributor

    Catch @liggitt, you're it!

  22. assigned and unassigned on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/test-flakepriority/P0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions