Commit Graph

640 Commits

Author SHA1 Message Date
sorki
8d7a26a11d docs: cabal.project.local.ci 2023-12-02 11:30:44 +01:00
Richard Marko
70eb0d35fb
Merge pull request #255 from haskell-nix/srk/daemon
cereal remote, server side integration
2023-11-30 08:37:45 +01:00
sorki
556e0a9e51 remote: fix GC haddock, add more 2023-11-30 07:45:34 +01:00
sorki
40e057bc45 remote: PrimError -> SError, LoggerError -> LoggerSError 2023-11-30 07:17:38 +01:00
sorki
c8bbf5fdd1 Update CI, no on: pull_request by default 2023-11-30 07:11:27 +01:00
sorki
849f7e7ed6 remote: cabal, sort exposed modules 2023-11-30 07:09:06 +01:00
sorki
9cd7d3597a remote, add Types.GC, use in deleteSpecific 2023-11-30 06:59:59 +01:00
sorki
598cb89fbd remote: storeMetadata, add signature Serializer 2023-11-30 06:59:59 +01:00
sorki
90984fd4a1 remote: add remaining Serializers
* storePathHashPart
* storePathName
* pathMetadata
* someHashAlgo
* digest
2023-11-30 06:59:59 +01:00
sorki
ee4049d36e tests: shave off other hashes todo for StorePathHashPart 2023-11-30 06:59:59 +01:00
sorki
a9be986781 tests: add Arbitrary StorePathTrust, Arbitrary (Metadata StorePath) 2023-11-30 06:59:59 +01:00
sorki
2e4e83c578 tests: add Arbitrary (Some HashAlgo) 2023-11-30 06:59:59 +01:00
sorki
9b16abbac7 tests: add Arbitrary BaseEncoding 2023-11-30 06:59:59 +01:00
sorki
2e54e33bed core: add unsafeMakeStorePathHashPart 2023-11-30 06:59:59 +01:00
sorki
b3a77eaf4a core: Cryptonite -> Crypton in error message 2023-11-30 06:59:59 +01:00
sorki
1702fa0abf core: derive classics for BaseEncoding enum 2023-11-30 06:59:59 +01:00
sorki
e950c84408 remote: rest of the Prim/Serialize -> Serializer 2023-11-30 06:59:59 +01:00
Cale Gibbard
c8a329ba6e remote: add derivedPath Serializer
Co-Authored-By: sorki <srk@48.io>
2023-11-30 06:59:59 +01:00
sorki
5ebe47db03 remote: replace protoVersion, use new toys 2023-11-30 06:59:59 +01:00
sorki
69135ed504 remote: port the rest to Serializer 2023-11-30 06:59:59 +01:00
sorki
c853163346 remote: more error handling, port rest of the logger to Serializer 2023-11-30 06:59:59 +01:00
squalus
922f5bbf8c remote: add deleteSpecific
- add the gcDeleteSpecific action of the CollectGarbage operation.
- add deleteSpecific test
2023-11-30 06:59:59 +01:00
sorki
da8eb42367 remote: better errors for bool and enum serializers 2023-11-30 06:59:59 +01:00
sorki
2e9ab694fa remote: add build-derivation executable 2023-11-30 06:59:59 +01:00
sorki
edace0445c remote: add path serializer, start wiring errors 2023-11-30 06:59:59 +01:00
Richard Marko
a2c5065b36 remote: bark if parsing leftover isn't empty 2023-11-30 06:59:59 +01:00
Richard Marko
bb5f116a51 remote: handle both error types in logger 2023-11-30 06:59:59 +01:00
Richard Marko
d15f0075f4 remote: set ourProtoVersion minor to what we currently advertise 2023-11-30 06:59:59 +01:00
Richard Marko
14b739aaed remote: getError -> getErrors 2023-11-30 06:59:59 +01:00
Richard Marko
76a8632d9c remote: thread ProtoVersion into logger 2023-11-30 06:59:59 +01:00
Richard Marko
241fa58737 remote: add Trace, BasicError, ErrorInfo 2023-11-30 06:59:59 +01:00
Richard Marko
8b9eb48b40 remote: switch Logger_Next from ByteString to Text 2023-11-30 06:59:59 +01:00
Richard Marko
01f26b359a remote: switch Field_LogStr from ByteString to Text 2023-11-30 06:59:59 +01:00
Richard Marko
3cac7e9867 remote: align HasStoreStocket method (storeSocket -> hasStoreSocket) 2023-11-30 06:59:59 +01:00
John Ericson
aba9b4531e remote: add serializers for ProtoVersion
Co-Authored-By: Richard Marko <srk@48.io>
2023-11-30 06:59:59 +01:00
Richard Marko
d414386f52 remote: add Serializer Derivation 2023-11-30 06:59:59 +01:00
Richard Marko
5c9f7ad70e remote: switch controlParser to Serializer Logger 2023-11-30 06:59:59 +01:00
Richard Marko
fb02185c29 remote: add LoggerOpCode 2023-11-30 06:59:59 +01:00
Richard Marko
2462c9ee90 remote: Serializer - add maybeActivity 2023-11-30 06:59:59 +01:00
Richard Marko
f48c7327b7 remote: add Activity and ActivityResult enums 2023-11-30 06:59:59 +01:00
Richard Marko
4a4625883f remote: Serialize.Prim - add toEnumCheckBounds util 2023-11-30 06:59:59 +01:00
Richard Marko
79310d5b7b remote: add NixSerializerSpec 2023-11-30 06:59:59 +01:00
Richard Marko
751669cd0d remote: init NixSerializer
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
2023-11-30 06:59:59 +01:00
Richard Marko
edaa343522 remote: (get|put)Int, use Integral 2023-11-30 06:59:59 +01:00
John Ericson
2b3afbffb5 remote: init Serializer
Co-Authored-By: Richard Marko <srk@48.io>
2023-11-30 06:59:59 +01:00
Richard Marko
9ac9d497d3 remote: safer getBool, getEnum 2023-11-30 06:59:59 +01:00
Richard Marko
25bd0f104c remote: parallel tests 2023-11-30 06:59:59 +01:00
Richard Marko
0a0e4a6793 remote: Arbitrary and Serialize for ActivityID, Field, props 2023-11-30 06:59:59 +01:00
Richard Marko
5ea5b82b59 prefix BuildMode and BuildResult constructors 2023-11-30 06:59:59 +01:00
Richard Marko
a3e3840d9b remote: add Arbitrary, Verbosity prop and enum tests 2023-11-30 06:59:59 +01:00