awakesecurity / grpc-mqtt Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
On main, running cabal test
I've seen a couple different failures.
Here are the results of 3 consecutive cabal test
s. A fourth run passed all tests.
Running 1 test suites...
Test suite test: RUNNING...
Tests: grpc-mqtt
<...>
Test.Service.ClientStream
Test.Service.ClientStream.Unbatched: FAIL (1.52s)
test/Test/Service.hs:431:
expected: Just (OneInt {oneIntResult = 15})
but got: Just (OneInt {oneIntResult = 13})
Batched: SKIP
Test.Service.ServerStream
Test.Service.ServerStream.Unbatched: SKIP
Test.Service.ServerStream.Batched: SKIP
Test.Service.BiDiStream
Test.Service.BiDiStream.Unbatched: SKIP
Batched: SKIP
Test.Service.Errors
Test.Service.Errors.Timeout: SKIP
Test.Service.Errors.Missing: SKIP
Test.Service.Errors.Malform: SKIP
9 out of 39 tests failed (13.95s)
Test suite test: FAIL
Running 1 test suites...
Test suite test: RUNNING...
Tests: grpc-mqtt
<...>
Test.Service
Normal
LongBytes: FAIL
Exception: MQTTException "disconnected"
Call: SKIP
Test.Service.ClientStream
Test.Service.ClientStream.Unbatched: SKIP
Batched: SKIP
Test.Service.ServerStream
Test.Service.ServerStream.Unbatched: SKIP
Test.Service.ServerStream.Batched: SKIP
Test.Service.BiDiStream
Test.Service.BiDiStream.Unbatched: SKIP
Batched: SKIP
Test.Service.Errors
Test.Service.Errors.Timeout: SKIP
Test.Service.Errors.Missing: SKIP
Test.Service.Errors.Malform: SKIP
11 out of 39 tests failed (20.43s)
Test suite test: FAIL
Running 1 test suites...
Test suite test: RUNNING...
Tests: grpc-mqtt
<..>
Test.Service
Normal
LongBytes: malloc_consolidate(): unaligned fastbin chunk detected
Test suite test: FAIL
... perhaps even being able to provide a log metadata map key redaction list via session args or something would make it nicer if there are secrets in the Metadatamap other than the authorization
key that users don't want recorded by logging.
The documentation on grpc-mqtt
's custom protobuf options in the README.md
:
haskell.grpc.mqtt.batched_stream
.haskell.grpc.mqtt.batched_stream_service
.haskell.grpc.mqtt.batched_stream_file
.CLevel
option haskell.grpc.mqtt.client_clevel
.CLevel
option haskell.grpc.mqtt.client_clevel_service
.CLevel
option haskell.grpc.mqtt.client_clevel_file
.CLevel
option haskell.grpc.mqtt.server_clevel
.CLevel
option haskell.grpc.mqtt.server_clevel_service
.CLevel
option haskell.grpc.mqtt.server_clevel_file
.I plan on opening a PR for this, this issue is just to keep a reminder for myself.
Brought up in #22
When using proto3-suite
>= 0.5.0
Building test suite 'test' for grpc-mqtt-0.1.0.0..
[ 1 of 16] Compiling Proto.Message ( gen/test/Proto/Message.hs, /home/matt/Code/grpc-mqtt/dist-newstyle/build/x86_64-linux/ghc-8.10.4/grpc-mqtt-0.1.0.0/t/test/build/test/test-tmp/Proto/Message.o, /home/matt/Code/grpc-mqtt/dist-newstyle/build/x86_64-linux/ghc-8.10.4/grpc-mqtt-0.1.0.0/t/test/build/test/test-tmp/Proto/Message.dyn_o ) [Proto3.Suite.Types changed]
[ 2 of 16] Compiling Proto.Service ( gen/test/Proto/Service.hs, /home/matt/Code/grpc-mqtt/dist-newstyle/build/x86_64-linux/ghc-8.10.4/grpc-mqtt-0.1.0.0/t/test/build/test/test-tmp/Proto/Service.o, /home/matt/Code/grpc-mqtt/dist-newstyle/build/x86_64-linux/ghc-8.10.4/grpc-mqtt-0.1.0.0/t/test/build/test/test-tmp/Proto/Service.dyn_o ) [Network.GRPC.HighLevel.Server.Unregistered changed]
gen/test/Proto/Service.hs:143:30: error:
Not in scope: ‘optMaxMetadataSize’
|
143 | optMaxMetadataSize = serverMaxMetadataSize})
| ^^^^^^^^^^^^^^^^^^
This looks like its related to this change in grpc-haskell
: awakesecurity/gRPC-haskell@1127770
The function Network.GRPC.MQTT.TH.RemoteClient.mqttRemoteClientMethodMap
is misleading. It takes a defaultBatchedStream
parameter which is not used anywhere. The decision to use batching or not solely depends on the proto file options. This parameter should be removed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.