Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-4910

voltha-openolt-adapter: golang packages: go test all failures

    XMLWordPrintable

    Details

    • Type: Task
    • Status: To Do (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: openolt-adapter
    • Labels:
      None
    • Story Points:
      0

      Description

      When the golang package cache is cleared and "go test all" is run, a few problems are reported.

      % git clone ssh://gerrit.opencord.org:29418/voltha-openolt-adapter.git
      % cd voltha-openolt-adapter
      
      % go version
      go version go1.18.1 linux/amd64
      
      % make clean
      % go clean -cache
      % go clean -modcache
      % go test all
      
      ## makefile target checkin pending for commands above
      ## LOCAL_DEV_MODE=1 make sterile test-sanity
      
      ok  	github.com/opencord/voltha-openolt-adapter/internal/pkg/config	0.014s
      --- FAIL: Test_generateMacFromHost (0.26s)
          --- FAIL: Test_generateMacFromHost/generateMacFromHost-4 (0.22s)
              device_handler_test.go:314: generateMacFromHost() error = <nil>, wantErr true
      {"level":"error","ts":"2022-12-19T06:58:28.805-0500","caller":"core/device_handler.go:2089","msg":"failed-to-send-inter-adapter-message","OnuInd":{"oper_state":"unreachable"},"From Adapter":"","DeviceType":"","device-id":"1","stacktrace":"github.com/opencord/voltha-openolt-adapter/internal/pkg/core.(*DeviceHandler).notifyChildDevices\n\t/home/joey/projects/sandbox/voltha-openolt-adapter/internal/pkg/core/device_handler.go:2089"}
      
      [SNIP]
      
      FAIL
      FAIL	github.com/opencord/voltha-openolt-adapter/internal/pkg/core	3.999s
      
      ok  	mime/quotedprintable	0.168s
      
      
      --- FAIL: TestLookupDotsWithRemoteSource (0.56s)
          lookup_test.go:706: LookupSRV(xmpp-server, tcp, google.com): lookup _xmpp-server._tcp.google.com on 127.0.0.53:53: no such host (mode=go)
          lookup_test.go:706: LookupSRV(xmpp-server, tcp, google.com): lookup _xmpp-server._tcp.google.com on 127.0.0.53:53: no such host (mode=cgo)
      
      
      --- FAIL: TestLookupGoogleSRV (36.95s)
          lookup_test.go:93: backoff 1s after failure lookup _xmpp-server._tcp.google.com on 127.0.0.53:53: no such host
          lookup_test.go:93: backoff 5s after failure lookup _xmpp-server._tcp.google.com on 127.0.0.53:53: no such host
          lookup_test.go:93: backoff 30s after failure lookup _xmpp-server._tcp.google.com on 127.0.0.53:53: no such host
          lookup_test.go:99: lookup _xmpp-server._tcp.google.com on 127.0.0.53:53: no such host
      FAIL
      FAIL	net	60.656s
      
      
      --- FAIL: TestCmdGoNoHTTPServer (0.00s)
          http_test.go:89: go tool nm: exit status 1: reading /usr/lib/go-1.18/bin/go: no symbol section
              reading /usr/lib/go-1.18/bin/go: no symbols
      
      
      --- FAIL: TestOmitHTTP2 (5.46s)
          http_test.go:123: go test -short failed: exit status 1, --- FAIL: TestCmdGoNoHTTPServer (0.01s)
                  http_test.go:89: go tool nm: exit status 1: reading /usr/lib/go-1.18/bin/go: no symbol section
                      reading /usr/lib/go-1.18/bin/go: no symbols
              FAIL
              FAIL	net/http	2.472s
              FAIL
      FAIL
      FAIL	net/http	58.891s
      ok  	net/http/httptest	0.080s
      
      ## ---------------------------------------
      ## This problem may be local to my machine
      ## ---------------------------------------
      ok  	text/template/parse	0.052s
      panic: cannot load America/Los_Angeles for testing: unknown time zone America/Los_Angeles; you may want to use -tags=timetzdatagoroutine 1 [running]:
      time.initTestingZone()
      	/usr/lib/go-1.18/src/time/internal_test.go:15 +0x128
      
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joey Joey Armstrong
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes