error correction

12 jobs for dev2_je in 3 minutes and 39 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
failed memostream:test:lint #49765
mbr allowed to fail

00:00:14

failed memostream:test:race #49767
mbr allowed to fail

00:00:19

failed memostream:test:unit #49766
mbr allowed to fail

00:00:17

passed server:test:build #49760
mbr

00:00:15

failed server:test:lint #49757
mbr allowed to fail

00:00:14

failed server:test:race #49759
mbr allowed to fail

00:00:23

failed server:test:unit #49758
mbr allowed to fail

00:00:21

passed tokenservice:test:build #49764
mbr

00:00:15

failed tokenservice:test:lint #49761
mbr allowed to fail

00:00:14

passed tokenservice:test:race #49763
mbr

00:00:20

passed tokenservice:test:unit #49762
mbr

00:00:20

 
  Publish
passed build-feature-branch-image #49768

00:02:39

 
Name Stage Failure
failed
server:test:lint Test
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server/config.go:36:6: exported type FileMap should have comment or be unexported
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server/config.go:41:6: exported type Config should have comment or be unexported
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server/config.go:48:2: struct field BaseUrl should be BaseURL
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server/config.go:50:2: struct field UrlPrefix should be URLPrefix
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server/config.go:65:1: exported function LoadConfig should have comment or be unexported
Found 8 lint suggestions; failing.
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
server:test:unit Test
go: downloading github.com/pkg/errors v0.8.0
# gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server [gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server.test]
cmd/server/server_test.go:49:8: undefined: memostream.NewFileMapper
cmd/server/server_test.go:57:34: not enough arguments in call to memostream.NewServer
FAIL gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server [build failed]
FAIL
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
server:test:race Test
go: downloading github.com/pkg/errors v0.8.0
# gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server [gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server.test]
cmd/server/server_test.go:49:8: undefined: memostream.NewFileMapper
cmd/server/server_test.go:57:34: not enough arguments in call to memostream.NewServer
FAIL gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server [build failed]
FAIL
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
tokenservice:test:lint Test
go: golang.org/x/tools upgrade => v0.0.0-20201013053347-2db1cd791039
go: downloading golang.org/x/tools v0.0.0-20201013053347-2db1cd791039
$ golint -set_exit_status $PKG_PATH
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/tokenService/config.go:19:6: exported type Config should have comment or be unexported
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/tokenService/config.go:33:1: exported function LoadConfig should have comment or be unexported
Found 2 lint suggestions; failing.
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
memostream:test:lint Test
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream/resolverDBStatic.go:52:15: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...)
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream/resolverDBStatic.go:56:15: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...)
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream/tokenServiceServer.go:30:1: exported function NewTokenServiceServer should have comment or be unexported
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream/tokenServiceServer.go:39:3: exported func NewTokenServiceServer returns unexported type *memostream.tokenServiceServer, which can be annoying to use
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream/tokenServiceServer.go:118:9: if block ends with a return statement, so drop this else and outdent its block
/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream/vars.go:4:2: exported var VERSION should have comment or be unexported
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
memostream:test:unit Test
pkg/memostream/memoServerHandlerIIIF.go:85:3: DoPanicf format %m has unknown verb m
pkg/memostream/memoServerHandlerIIIF.go:90:3: DoPanicf format %m has unknown verb m
pkg/memostream/memoServerHandlerIIIF.go:95:3: DoPanicf format %m has unknown verb m
pkg/memostream/memoServerHandlerIIIF.go:100:3: DoPanicf format %m has unknown verb m
pkg/memostream/tokenServiceServer.go:128:3: DoPanicf format %m has unknown verb m
pkg/memostream/tokenServiceServer.go:133:3: DoPanicf format %m has unknown verb m
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
memostream:test:race Test
pkg/memostream/memoServerHandlerIIIF.go:85:3: DoPanicf format %m has unknown verb m
pkg/memostream/memoServerHandlerIIIF.go:90:3: DoPanicf format %m has unknown verb m
pkg/memostream/memoServerHandlerIIIF.go:95:3: DoPanicf format %m has unknown verb m
pkg/memostream/memoServerHandlerIIIF.go:100:3: DoPanicf format %m has unknown verb m
pkg/memostream/tokenServiceServer.go:128:3: DoPanicf format %m has unknown verb m
pkg/memostream/tokenServiceServer.go:133:3: DoPanicf format %m has unknown verb m
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1