Backend/feat/hyper verge selfie liveness check api integration (Do not Merge, for reference) #453
Garnix CI / package default [x86_64-linux]
succeeded
Apr 2, 2024 in 1m 47s
Run results
Build succeeded
Details
Last 100 lines of logs:
[ 1 of 11] Compiling Centesimal
[ 2 of 11] Compiling Paths_mobility_core
[ 3 of 11] Compiling SignatureAuth
test/src/SignatureAuth.hs:120:7: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a pattern binding:
Patterns of type ‘Either String HttpSig.KeyId’ not matched: Left _
|
120 | let Right keyId = HttpSig.decodeKeyId $ decodeUtf8 exampleKeyId
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/src/SignatureAuth.hs:134:9: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a pattern binding:
Patterns of type ‘Either String ByteString’ not matched: Left _
|
134 | let Right sig = Base64.decode exampleSignature
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 4 of 11] Compiling SlidingWindowLimiter
[ 5 of 11] Compiling SnippetsCheck
[ 6 of 11] Compiling TestSilentIOLogger
[ 7 of 11] Compiling APIExceptions
[ 8 of 11] Compiling Utils.Numeric
[ 9 of 11] Compiling DistanceCalculation
[10 of 11] Compiling Version
[11 of 11] Compiling Main
Linking dist/build/mobility-core-tests/mobility-core-tests ...
buildPhase completed in 1 minutes 20 seconds
@nix {"action":"setPhase","phase":"checkPhase"}
running tests
Running 1 test suites...
Test suite mobility-core-tests: RUNNING...
Tests
Unit tests
Centi tests
Parsing JSON with 2 digits precision: OK
Parsing JSON with trailing zeros (1.250000): OK
Parsing JSON with rounding to upper (1.259999 should be 1.26): OK
Parsing JSON with rounding to lower (1.251111 should be 1.25): OK
Parsing JSON with rounding to upper (-1.251111 should be -1.25): OK
Parsing JSON with rounding to lower (-1.259999 should be -1.26): OK
Parsing JSON with rounding to upper having five hundredth (1.255 should be 1.26): OK
Parsing JSON with rounding to upper having five hundredth (-1.255 should be -1.26): OK
Converting from Double: OK
Converting from Double with trailing zeros (-1.250000): OK
Converting from Double with rounding to upper (1.2599999 should be 1.26): OK
Converting from Double with rounding to lower (1.251 should be 1.25): OK
Converting from Double with rounding to upper having five hundredth (1.255 should be 1.26): OK
Converting from Double with rounding to upper having five hundredth negative (-1.255 should be -1.26): OK
Signature auth tests
Simple header decode: OK
Simple header encode: OK
Check Signature Message: OK
Sign a request: OK
Verify a signed request: OK
Sign and verify a request with generated key pair: OK
Endpoint exception catchers tests
Throwing any error in our endpoints must return HTTPError
Throwing some Domain error: OK
Throwing some Beckn API error: OK
Throwing SomeException: OK
Throwing any error in Beckn endpoints must return BecknAPIError
Throwing some Domain error: OK
Throwing some Beckn API error: OK
Throwing SomeException: OK
Sliding window limiter tests
Empty list: OK
Successful tests: OK
Failing tests: OK
Distance calculation
Total route linear length calculation: OK
Linear length calculation during a stop: OK
Read versions tests
Successfull version reading: OK
Failed version reading: OK
Testing everySnippetIs function
Calling everySnippetIs with good snippets route should return true: OK
Calling everySnippetIs with bad last snippet should return false: OK
Calling everySnippetIs with bad first snippet should return false: OK
Calling everySnippetIs with bad snippets in the middle should return false: OK
Calling everySnippetIs with zero points should return true: OK
Calling everySnippetIs with one point should return true: OK
All 39 tests passed (0.00s)
Test suite mobility-core-tests: PASS
Test suite logged to: dist/test/mobility-core-0.1.0.0-mobility-core-tests.log
1 of 1 test suites (1 of 1 test cases) passed.
@nix {"action":"setPhase","phase":"haddockPhase"}
haddockPhase
@nix {"action":"setPhase","phase":"installPhase"}
installing
Installing library in /nix/store/56936lq9vvanpxmm4di0wpb1ry08l1ld-mobility-core-0.1.0.0/lib/ghc-9.2.7/x86_64-linux-ghc-9.2.7/mobility-core-0.1.0.0-L8dnDnMYU1Z6FVJFcYjmIa
@nix {"action":"setPhase","phase":"fixupPhase"}
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/56936lq9vvanpxmm4di0wpb1ry08l1ld-mobility-core-0.1.0.0
shrinking /nix/store/56936lq9vvanpxmm4di0wpb1ry08l1ld-mobility-core-0.1.0.0/lib/ghc-9.2.7/x86_64-linux-ghc-9.2.7/libHSmobility-core-0.1.0.0-L8dnDnMYU1Z6FVJFcYjmIa-ghc9.2.7.so
checking for references to /build/ in /nix/store/56936lq9vvanpxmm4di0wpb1ry08l1ld-mobility-core-0.1.0.0...
patching script interpreter paths in /nix/store/56936lq9vvanpxmm4di0wpb1ry08l1ld-mobility-core-0.1.0.0
stripping (with command strip and flags -S -p) in /nix/store/56936lq9vvanpxmm4di0wpb1ry08l1ld-mobility-core-0.1.0.0/lib
Loading