Commit Graph

780 Commits

Author SHA1 Message Date
sorki
8b1db174bc remote: add Types.Query.Missing for QueryMissing result 2023-12-06 16:25:38 +01:00
sorki
a05377a983 remote: add Types.Handshake, use as a greeting result 2023-12-06 16:25:38 +01:00
sorki
ea49946a19 remote: add preStoreConfigToStoreConfig, use in handshake 2023-12-06 16:25:38 +01:00
sorki
a8a4d66f6e remote: protoVersion_minor 21 -> 24 2023-12-06 16:25:38 +01:00
sorki
d5557680de remote: handshake - use minimumCommonVersion of our vs daemon protoVersion 2023-12-06 16:25:38 +01:00
sorki
14f93bf30b remote: add Types.TrusteFlag, serializer, use in client, more props for handshake
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
2023-12-06 16:25:38 +01:00
sorki
4adf509a7e temp: add source-repository-package override for dependent-sum-template
until https://github.com/obsidiansystems/dependent-sum-template/pull/7
and its next release.
2023-12-06 16:25:38 +01:00
sorki
d8df1cccfd remote: no more hacks for StoreRequest prop 2023-12-06 16:25:38 +01:00
sorki
9fb7854541 tests: custom Arbitrary Trace and Arbitrary ErrorInfo w/o (Just 0) 2023-12-06 16:25:38 +01:00
sorki
c815068e60 tests: add custom Arbitrary (Maybe Text) that doesn't generate Just mempty 2023-12-06 16:25:38 +01:00
sorki
a7fbcf7a02 tests: custom Arbitrary BuildResult without Just mempty errorMessage 2023-12-06 16:25:38 +01:00
sorki
cc931dde1e tests: custom Arbitrary UTCTime instance, drop quickcheck-instances
in favor of our own small set of required instances.
2023-12-06 16:25:38 +01:00
sorki
6c0edf2fcf remote: drop dependent-sum upper bound like in core 2023-12-06 16:25:38 +01:00
sorki
4ae2d827ad remote: add storeRequest Serializer, property test 2023-12-06 16:25:38 +01:00
sorki
4e224c3f43 tests: custom Arbitrary OutputsSpec producing nonempty OutputsSpec_Names 2023-12-06 16:25:38 +01:00
sorki
91befa2a3c core: fix parseDerivedPath breaking when StoreDir contains exclamation mark 2023-12-06 16:25:38 +01:00
sorki
c3ece677b8 core: add note that parseDerivedPath breaks when storeDir has exclamation mark 2023-12-06 16:25:38 +01:00
sorki
b2c31e0c7b remote: recursive Bool -> FileIngestionMethod 2023-12-06 16:25:38 +01:00
sorki
fcbcafa99a remote: GADT -> Types.StoreRequest 2023-12-06 16:25:38 +01:00
sorki
dbc118fc27 docs/contributors: add ryantrinkle 2023-12-06 16:25:38 +01:00
sorki
ee172f077f remote: add TestStoreConfig 2023-12-06 16:25:38 +01:00
sorki
0ab79e5157 remote: add Types.StoreText, use in AddTextToStore 2023-12-06 16:25:38 +01:00
sorki
7f9c7fb2eb remote: add/derive instances for StoreRequest 2023-12-06 16:25:38 +01:00
sorki
e0456e3bc9 remote: prefix WorkerOp, add workerOp Serializer, test 2023-12-06 16:25:38 +01:00
sorki
c5f3c1e4f6 remote: generalize error in sockPutS, sockGetS, add Types.WorkerMagic, workerMagic serializer, HandshakeSError 2023-12-06 16:25:38 +01:00
sorki
2c46d342b0 remote, LoggerOpCode Int -> Word64 2023-12-06 16:25:38 +01:00
sorki
78639b8396 remote: NixSerializer, rename mapError to mapErrorST, add mapErrorS, mapReaderS
for transforming `NixSerializer`(s)
2023-12-06 16:25:38 +01:00
sorki
e57397b99f remote: move ourProtoVersion near type, elaborate Types imports in Client 2023-12-06 16:25:38 +01:00
sorki
ec79cfe1ce remote: NixSerializer, move maybePath from where clause, expose 2023-12-06 16:25:38 +01:00
sorki
936fdf85f5 remote: Data.Serializer, expand signature of mapIso/mapPrism* 2023-12-06 16:25:38 +01:00
sorki
cbbc731519 remote: fix mapStoreConfig import 2023-12-06 16:25:38 +01:00
sorki
aaf0567554 remote: add Remote.GADT
Closes #149

Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
2023-12-06 16:25:38 +01:00
sorki
3e135c1105 remote: neaten MonadStore 2023-12-06 16:25:38 +01:00
sorki
e700c7255c remote: Remote.Protocol -> Remote.Client 2023-12-06 16:25:38 +01:00
sorki
a3c9530198 remote: heavy lifting
- By layus
  - `RemoteStoreT`, `RemoteStoreState` from #72

- By Ericson2314
  - Reorg, `MonadRemoteStore0`, `MonadRemoteStoreHandshake`,
    `PreStoreConfig`, better `greet`

- By ryantrinkle
  - Correctly detect when other side has hung up, throws
    `RemoteStoreError_Disconnected`

Co-Authored-By: Guillaume Maudoux <layus.on@gmail.com>
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
Co-Authored-By: Ryan Trinkle <ryan@trinkle.org>
2023-12-06 16:25:38 +01:00
Richard Marko
1bc4d0575d
Merge pull request #275 from andreabedini/patch-1
Fix typo in cabal.project
2023-12-06 06:13:27 +01:00
Andrea Bedini
23721d9110
Fix typo in cabal.project 2023-12-06 12:02:30 +08:00
Richard Marko
c6dd6c35b1
Merge pull request #274 from haskell-nix/docs
docs: cabal.project.local.ci
2023-12-02 13:13:39 +01:00
sorki
8d7a26a11d docs: cabal.project.local.ci 2023-12-02 11:30:44 +01:00
Richard Marko
5666b68575
Merge pull request #273 from haskell-nix/srk/ci
ci: disable haddock step
2023-12-02 11:23:37 +01:00
sorki
15f77e8f4b ci: disable haddock step
takes too long and it runs in nix-build anyway.

Ideally we would do `cabal haddock-project` but that
is not yet available everywhere (due to older haddock).

Maybe revisit later.
2023-12-02 10:25:46 +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