Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined functions in vissv2server/grpcMgr/testprocess/gRPCClient.go leads to build errors #70

Closed
slawr opened this issue Jan 7, 2025 · 1 comment · Fixed by #71
Closed
Labels
bug Something isn't working

Comments

@slawr
Copy link

slawr commented Jan 7, 2025

Summary

Building the current master branch tip commit 11617fa results in the following error:

52.77 github.com/covesa/vissr/server/vissv2server/grpcMgr/testprocess
52.78 # github.com/covesa/vissr/server/vissv2server/grpcMgr/testprocess
52.78 server/vissv2server/grpcMgr/testprocess/gRPCClient.go:17:21: undefined: utils.Compression
52.78 server/vissv2server/grpcMgr/testprocess/gRPCClient.go:49:15: undefined: pb.NewVISSv2Client
52.78 server/vissv2server/grpcMgr/testprocess/gRPCClient.go:54:58: too many arguments in call to utils.SubscribeRequestJsonToPb
52.78 	have (string, unknown type)
52.78 	want (string)

I was building under Docker using the upstream Dockerfile.rlserver but I believe this will also apply to a non-docker build.

Initial code investigation

Git shows changes to Compression and NewVISSv2Client in refactoring commit e46007e

Full build log

 > [vissv2server builder 17/17] RUN go build -v -o ./bin ./...:                                                            
0.299 go: downloading github.com/akamensky/argparse v1.4.0                                                                 
0.301 go: downloading github.com/gorilla/websocket v1.5.3                                                                  
0.677 go: downloading google.golang.org/grpc v1.69.2                                                                       
1.481 go: downloading github.com/gorilla/mux v1.8.1                                                                        
1.483 go: downloading github.com/eclipse/paho.mqtt.golang v1.5.0
1.611 go: downloading github.com/go-redis/redis v6.15.9+incompatible
1.776 go: downloading github.com/mattn/go-sqlite3 v1.14.24
1.989 go: downloading github.com/petervolvowinz/viss-rl-interfaces v0.1.0
2.613 go: downloading github.com/bradfitz/gomemcache v0.0.0-20230905024940-24af94b03874
2.715 go: downloading google.golang.org/protobuf v1.36.2
3.516 go: downloading github.com/google/uuid v1.6.0
3.517 go: downloading github.com/apache/iotdb-client-go v1.3.3
3.639 go: downloading github.com/golang/protobuf v1.5.4
3.981 go: downloading github.com/sirupsen/logrus v1.9.3
4.355 go: downloading golang.org/x/net v0.34.0
4.921 go: downloading golang.org/x/sync v0.10.0
4.926 go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422
5.021 go: downloading github.com/apache/thrift v0.21.0
5.169 go: downloading golang.org/x/sys v0.29.0
6.063 go: downloading golang.org/x/text v0.21.0
8.762 internal/unsafeheader
8.765 internal/goarch
8.801 internal/cpu
8.810 internal/abi
8.933 internal/bytealg
9.084 internal/byteorder
9.117 internal/coverage/rtcov
9.138 internal/chacha8rand
9.180 internal/godebugs
9.182 internal/goexperiment
9.202 internal/goos
9.204 internal/profilerecord
9.210 internal/runtime/atomic
9.219 internal/runtime/syscall
9.268 internal/stringslite
9.319 runtime/internal/math
9.325 internal/runtime/exithook
9.373 runtime/internal/sys
9.377 internal/race
9.405 sync/atomic
9.432 runtime
9.559 unicode
9.855 unicode/utf8
9.920 container/list
9.995 internal/asan
10.01 internal/itoa
10.05 internal/msan
10.07 math/bits
10.12 math
10.56 crypto/internal/alias
10.58 crypto/subtle
10.63 crypto/internal/boring/sig
10.64 cmp
10.64 unicode/utf16
10.66 vendor/golang.org/x/crypto/cryptobyte/asn1
10.66 vendor/golang.org/x/crypto/internal/alias
10.67 internal/nettrace
10.68 encoding
10.68 log/internal
10.69 google.golang.org/protobuf/internal/flags
10.69 google.golang.org/grpc/serviceconfig
10.71 google.golang.org/protobuf/internal/set
10.72 log/slog/internal
14.17 internal/reflectlite
14.17 sync
14.34 internal/bisect
14.41 errors
14.43 internal/godebug
14.48 io
14.49 internal/oserror
14.54 syscall
14.57 bytes
14.80 hash
14.83 strconv
15.38 crypto
15.42 crypto/cipher
15.50 time
15.56 crypto/internal/boring
15.61 crypto/aes
15.82 crypto/des
15.92 crypto/internal/edwards25519/field
16.06 crypto/internal/nistec/fiat
16.15 context
16.29 path
16.38 iter
16.41 slices
16.49 io/fs
16.59 crypto/internal/randutil
16.59 embed
16.61 reflect
16.64 crypto/internal/nistec
17.00 crypto/ecdh
17.08 internal/filepathlite
17.14 internal/syscall/unix
17.21 internal/poll
17.58 internal/syscall/execenv
17.64 internal/testlog
17.68 os
18.20 internal/fmtsort
18.23 math/rand
18.25 fmt
18.30 strings
18.44 crypto/sha512
18.50 crypto/internal/edwards25519
18.57 math/big
18.64 crypto/hmac
18.65 encoding/binary
18.79 vendor/golang.org/x/crypto/chacha20
18.87 vendor/golang.org/x/crypto/internal/poly1305
18.94 vendor/golang.org/x/sys/cpu
19.00 vendor/golang.org/x/crypto/chacha20poly1305
19.09 crypto/elliptic
19.10 crypto/internal/bigmod
19.19 crypto/internal/boring/bbig
19.20 encoding/asn1
19.23 crypto/rand
19.26 crypto/ed25519
19.29 vendor/golang.org/x/crypto/hkdf
19.32 crypto/internal/hpke
19.37 vendor/golang.org/x/crypto/sha3
19.42 vendor/golang.org/x/crypto/cryptobyte
19.47 crypto/internal/mlkem768
19.56 crypto/ecdsa
19.57 crypto/md5
19.60 crypto/rc4
19.62 crypto/rsa
19.67 crypto/sha1
19.73 crypto/sha256
19.75 crypto/dsa
19.79 encoding/hex
19.81 encoding/base64
19.83 crypto/x509/pkix
19.87 encoding/pem
19.88 vendor/golang.org/x/net/dns/dnsmessage
19.92 internal/singleflight
19.93 math/rand/v2
20.01 internal/concurrent
20.03 internal/weak
20.06 unique
20.14 net/netip
20.15 sort
20.32 runtime/cgo
20.48 net/url
20.61 path/filepath
20.72 encoding/json
21.13 flag
21.27 github.com/akamensky/argparse
21.41 net
21.46 bufio
21.54 compress/flate
21.74 hash/crc32
21.79 compress/gzip
21.83 log
21.89 golang.org/x/net/internal/timeseries
21.96 html
22.01 regexp/syntax
22.27 regexp
22.48 text/template/parse
22.86 text/template
23.38 html/template
23.62 crypto/x509
23.81 vendor/golang.org/x/text/transform
23.87 vendor/golang.org/x/text/unicode/bidi
24.02 vendor/golang.org/x/text/secure/bidirule
24.04 vendor/golang.org/x/text/unicode/norm
24.31 crypto/tls
24.40 vendor/golang.org/x/net/idna
24.55 net/textproto
24.65 vendor/golang.org/x/net/http/httpguts
24.69 vendor/golang.org/x/net/http/httpproxy
24.75 vendor/golang.org/x/net/http2/hpack
24.89 maps
24.92 mime
25.17 mime/quotedprintable
25.23 mime/multipart
25.37 net/http/internal
25.40 net/http/internal/ascii
25.42 text/tabwriter
25.45 google.golang.org/grpc/backoff
25.46 golang.org/x/sys/unix
25.64 net/http/httptrace
25.69 net/http
26.34 google.golang.org/grpc/grpclog/internal
26.42 google.golang.org/grpc/grpclog
26.49 google.golang.org/grpc/connectivity
26.50 google.golang.org/grpc/attributes
26.53 google.golang.org/grpc/internal/credentials
26.59 google.golang.org/grpc/internal/envconfig
26.62 hash/fnv
26.68 google.golang.org/protobuf/internal/detrand
26.71 google.golang.org/protobuf/internal/errors
26.75 google.golang.org/protobuf/encoding/protowire
26.82 google.golang.org/protobuf/internal/pragma
26.83 google.golang.org/protobuf/reflect/protoreflect
27.09 google.golang.org/protobuf/internal/encoding/messageset
27.15 google.golang.org/protobuf/internal/genid
27.20 google.golang.org/protobuf/internal/order
27.26 go/token
27.40 google.golang.org/protobuf/internal/strs
27.47 google.golang.org/protobuf/reflect/protoregistry
27.64 google.golang.org/protobuf/runtime/protoiface
27.68 google.golang.org/protobuf/proto
27.99 google.golang.org/grpc/credentials
28.08 google.golang.org/grpc/internal
28.12 google.golang.org/grpc/internal/channelz
28.33 google.golang.org/grpc/channelz
28.35 google.golang.org/grpc/metadata
28.41 google.golang.org/grpc/stats
28.45 google.golang.org/grpc/experimental/stats
28.50 google.golang.org/grpc/resolver
28.57 google.golang.org/grpc/balancer
28.61 google.golang.org/grpc/balancer/base
28.65 golang.org/x/net/trace
28.65 google.golang.org/grpc/balancer/pickfirst/internal
28.67 google.golang.org/grpc/internal/grpclog
28.68 google.golang.org/protobuf/internal/encoding/json
28.83 google.golang.org/protobuf/internal/descfmt
28.83 google.golang.org/protobuf/internal/descopts
28.84 google.golang.org/protobuf/internal/editiondefaults
28.86 google.golang.org/protobuf/internal/encoding/text
28.93 google.golang.org/protobuf/internal/protolazy
29.00 google.golang.org/protobuf/internal/version
29.01 google.golang.org/grpc/balancer/roundrobin
29.03 google.golang.org/protobuf/internal/encoding/defval
29.03 google.golang.org/grpc/codes
29.06 google.golang.org/protobuf/encoding/prototext
29.07 google.golang.org/protobuf/internal/filedesc
29.22 google.golang.org/grpc/credentials/insecure
29.28 google.golang.org/grpc/internal/grpcutil
29.33 google.golang.org/grpc/mem
29.46 google.golang.org/grpc/encoding
29.50 google.golang.org/grpc/internal/backoff
29.53 google.golang.org/grpc/internal/balancer/gracefulswitch
29.59 google.golang.org/grpc/internal/balancerload
29.61 google.golang.org/grpc/internal/buffer
29.66 google.golang.org/grpc/internal/grpcsync
29.66 google.golang.org/protobuf/encoding/protojson
29.68 google.golang.org/protobuf/internal/encoding/tag
29.76 google.golang.org/protobuf/internal/impl
29.99 google.golang.org/grpc/internal/idle
30.01 google.golang.org/grpc/internal/metadata
30.04 google.golang.org/grpc/internal/serviceconfig
30.08 google.golang.org/grpc/internal/resolver
30.10 google.golang.org/grpc/internal/resolver/passthrough
30.12 google.golang.org/grpc/internal/transport/networktype
30.13 google.golang.org/grpc/internal/resolver/unix
30.17 google.golang.org/grpc/internal/stats
30.20 golang.org/x/text/transform
30.28 golang.org/x/text/unicode/bidi
30.51 golang.org/x/text/secure/bidirule
30.54 golang.org/x/text/unicode/norm
30.90 golang.org/x/net/idna
31.08 golang.org/x/net/http/httpguts
31.11 golang.org/x/net/http2/hpack
31.24 golang.org/x/net/http2
32.15 google.golang.org/protobuf/internal/filetype
32.26 google.golang.org/protobuf/runtime/protoimpl
32.32 google.golang.org/protobuf/protoadapt
32.34 google.golang.org/grpc/internal/pretty
32.39 google.golang.org/grpc/balancer/pickfirst/pickfirstleaf
32.53 google.golang.org/grpc/balancer/pickfirst
32.59 google.golang.org/grpc/encoding/proto
32.63 google.golang.org/protobuf/types/known/durationpb
32.69 google.golang.org/protobuf/types/known/timestamppb
32.73 google.golang.org/grpc/binarylog/grpc_binarylog_v1
32.77 google.golang.org/protobuf/types/known/anypb
32.82 google.golang.org/grpc/internal/syscall
32.84 google.golang.org/genproto/googleapis/rpc/status
32.86 google.golang.org/grpc/keepalive
32.88 google.golang.org/grpc/peer
32.89 google.golang.org/grpc/internal/status
32.90 google.golang.org/grpc/tap
32.92 net/http/httputil
32.94 google.golang.org/grpc/status
33.00 google.golang.org/grpc/internal/binarylog
33.09 google.golang.org/grpc/internal/transport
33.11 google.golang.org/grpc/balancer/grpclb/state
33.13 google.golang.org/grpc/internal/resolver/dns/internal
33.14 google.golang.org/grpc/internal/resolver/dns
33.19 google.golang.org/grpc/resolver/dns
33.20 google.golang.org/protobuf/types/descriptorpb
33.57 google.golang.org/protobuf/internal/editionssupport
33.58 google.golang.org/protobuf/types/gofeaturespb
33.65 google.golang.org/protobuf/reflect/protodesc
34.00 google.golang.org/grpc
34.00 io/ioutil
34.05 github.com/golang/protobuf/proto
34.44 database/sql/driver
34.53 github.com/google/uuid
34.64 github.com/gorilla/websocket
34.99 github.com/sirupsen/logrus
35.11 github.com/covesa/vissr/grpc_pb
35.24 github.com/gorilla/mux
35.41 github.com/covesa/vissr/client/client-1.0/grpc_client/grpc_map_client/mapserver
35.43 github.com/covesa/vissr/utils
35.45 github.com/eclipse/paho.mqtt.golang/packets
35.55 golang.org/x/net/internal/socks
35.64 golang.org/x/net/proxy
35.72 golang.org/x/sync/semaphore
35.77 github.com/eclipse/paho.mqtt.golang
35.92 github.com/covesa/vissr/client/client-1.0
36.29 github.com/covesa/vissr/client/client-1.0/compress_client
36.87 github.com/covesa/vissr/client/client-1.0/csv_client
37.30 github.com/covesa/vissr/client/client-1.0/filetransfer_client
37.80 github.com/covesa/vissr/client/client-1.0/grpc_client
38.26 github.com/covesa/vissr/client/client-1.0/grpc_client/grpc_map_client
38.70 github.com/covesa/vissr/client/client-1.0/mqtt_client
39.22 database/sql
39.64 github.com/go-redis/redis/internal/util
39.68 github.com/go-redis/redis/internal/consistenthash
39.69 github.com/go-redis/redis/internal/proto
39.70 github.com/go-redis/redis/internal/hashtag
39.77 github.com/mattn/go-sqlite3
39.78 github.com/go-redis/redis/internal
39.82 github.com/go-redis/redis/internal/pool
39.90 github.com/go-redis/redis
42.05 github.com/covesa/vissr/feeder/feeder-evic/evicSim
42.98 github.com/petervolvowinz/viss-rl-interfaces/base
43.44 github.com/petervolvowinz/viss-rl-interfaces/broker
43.58 github.com/petervolvowinz/viss-rl-interfaces
43.66 os/signal
43.70 github.com/covesa/vissr/feeder/feeder-rl
44.62 github.com/bradfitz/gomemcache/memcache
44.73 os/exec
44.83 github.com/covesa/vissr/server/agt_server
45.69 github.com/covesa/vissr/server/vissv2server/atServer
45.86 github.com/covesa/vissr/server/vissv2server/grpcMgr
45.95 github.com/covesa/vissr/server/vissv2server/httpMgr
45.98 github.com/covesa/vissr/server/vissv2server/mqttMgr
46.04 hash/adler32
46.06 compress/zlib
46.09 log/slog/internal/buffer
46.11 log/slog
46.38 internal/sysinfo
46.42 runtime/debug
46.52 runtime/trace
46.54 testing
46.91 github.com/apache/thrift/lib/go/thrift
48.35 github.com/apache/iotdb-client-go/common
48.85 github.com/apache/iotdb-client-go/rpc
51.97 github.com/apache/iotdb-client-go/client
52.23 github.com/covesa/vissr/server/vissv2server/wsMgr
52.30 github.com/covesa/vissr/server/vissv2server/wsMgrFT
52.39 github.com/covesa/vissr/server/vissv2server/atServer/ecfSim
52.77 github.com/covesa/vissr/server/vissv2server/grpcMgr/testprocess
52.78 # github.com/covesa/vissr/server/vissv2server/grpcMgr/testprocess
52.78 server/vissv2server/grpcMgr/testprocess/gRPCClient.go:17:21: undefined: utils.Compression
52.78 server/vissv2server/grpcMgr/testprocess/gRPCClient.go:49:15: undefined: pb.NewVISSv2Client
52.78 server/vissv2server/grpcMgr/testprocess/gRPCClient.go:54:58: too many arguments in call to utils.SubscribeRequestJsonToPb
52.78 	have (string, unknown type)
52.78 	want (string)
52.79 github.com/covesa/vissr/server/vissv2server/serviceMgr/histctrlSim
53.50 github.com/covesa/vissr/server/vissv2server/serviceMgr/redisInit
54.22 github.com/covesa/vissr/server/vissv2server/serviceMgr/redisVinFeeder
80.18 github.com/covesa/vissr/feeder/feeder-template/feederv1
80.18 github.com/covesa/vissr/feeder/feeder-evic
82.35 github.com/covesa/vissr/feeder/feeder-template/feederv2
82.48 github.com/covesa/vissr/feeder/feeder-template/feederv3
84.23 github.com/covesa/vissr/server/vissv2server/serviceMgr
84.51 github.com/covesa/vissr/server/vissv2server
------
failed to solve: process "/bin/sh -c go build -v -o ./bin ./..." did not complete successfully: exit code: 1

@slawr slawr added the bug Something isn't working label Jan 7, 2025
@slawr
Copy link
Author

slawr commented Jan 8, 2025

Confirmed fixed by PR #71. Closing

@slawr slawr closed this as completed Jan 8, 2025
@slawr slawr linked a pull request Jan 8, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@slawr and others