[Bug 1883770] Re: Tests fail on s390x and go >= 1.13

Andreas Hasenack 1883770 at bugs.launchpad.net
Wed Jun 17 17:06:29 UTC 2020


Marking the yaml.v2 task as incomplete pending confirmation it's a bug
in golang.

** Also affects: golang-1.14 (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: golang via
   https://github.com/golang/go/issues/39651
   Importance: Unknown
       Status: Unknown

** Changed in: golang-yaml.v2 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1883770

Title:
  Tests fail on s390x and go >= 1.13

Status in Go:
  Unknown
Status in golang-1.14 package in Ubuntu:
  New
Status in golang-yaml.v2 package in Ubuntu:
  Incomplete

Bug description:
  ```
  FAIL: decode_test.go:775: S.TestDecoderSingleDocument
  ...
  test 60: "a: 1"
  test 61: "a: 1.0"
  decode_test.go:790:
      c.Assert(value.Elem().Interface(), DeepEquals, item.value)
  ... obtained *struct { A int } = &struct { A int }{A:0}
  ... expected *struct { A int } = &struct { A int }{A:1}
  ...
  FAIL: decode_test.go:750: S.TestUnmarshal
  ...
  test 60: "a: 1"
  test 61: "a: 1.0"
  decode_test.go:759:
      c.Assert(value.Elem().Interface(), DeepEquals, item.value, Commentf("error: %v", err))
  ... obtained *struct { A int } = &struct { A int }{A:0}
  ... expected *struct { A int } = &struct { A int }{A:1}
  ... error: yaml: unmarshal errors:
    line 1: cannot unmarshal !!float `1.0` into int

  OOPS: 30 passed, 2 FAILED
  --- FAIL: Test (7.21s)
  === RUN   ExampleUnmarshal_embedded
  --- PASS: ExampleUnmarshal_embedded (0.00s)
  FAIL
  exit status 1
  FAIL    gopkg.in/yaml.v2        7.274s
  ```

  Further experimentation with older releases of ubuntu, but only installing golang-go from ubuntu, and using golang-yaml.v2's upstream git repo for the test with "go test -v", showed that the tests:
  - PASS: go 1.10~4ubuntu1, 1.12~1ubuntu1
  - FAIL: go 1.13~1ubuntu2, 1.14~1

To manage notifications about this bug go to:
https://bugs.launchpad.net/golang/+bug/1883770/+subscriptions



More information about the foundations-bugs mailing list