Skip to content

Commit d8c1624

Browse files
emberianmergify[bot]
authored andcommitted
Upgrade all our opam deps (MinaProtocol#2237)
* upgrade all opam deps + make it compile * ocamlformat 0.9 * digestif pin is needed to avoid conflict with cohttp digestif usage * new toolchain * Bigstring.Stable.V1 is binable * move to updated snarky master * snark_params digestif straggler * macos-setup digestif pin * work around snarky change I think MinaProtocol#2044 has the full story here * fix dune warning * reformat * work capacity * reformat * sprintf * revert snarky to a tweaked version of what's on master * look in the coda branch of the snarky submodule * bump snarky * reformat
1 parent 6b56b9d commit d8c1624

344 files changed

Lines changed: 3664 additions & 16341 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
lint:
4646
docker:
47-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
47+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
4848
steps:
4949
- checkout
5050
- run: git submodule sync && git submodule update --init --recursive
@@ -120,7 +120,7 @@ jobs:
120120
build-artifacts--testnet_postake:
121121
resource_class: large
122122
docker:
123-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
123+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
124124
environment:
125125
DUNE_PROFILE: testnet_postake
126126
steps:
@@ -156,7 +156,7 @@ jobs:
156156
build-artifacts--testnet_postake_many_proposers:
157157
resource_class: large
158158
docker:
159-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
159+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
160160
environment:
161161
DUNE_PROFILE: testnet_postake_many_proposers
162162
steps:
@@ -192,7 +192,7 @@ jobs:
192192
build-artifacts--testnet_postake_snarkless_fake_hash:
193193
resource_class: large
194194
docker:
195-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
195+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
196196
environment:
197197
DUNE_PROFILE: testnet_postake_snarkless_fake_hash
198198
steps:
@@ -228,7 +228,7 @@ jobs:
228228
test-unit--test_posig_snarkless:
229229
resource_class: large
230230
docker:
231-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
231+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
232232
steps:
233233
- checkout
234234
- run: git submodule sync && git submodule update --init --recursive
@@ -238,7 +238,7 @@ jobs:
238238
test-unit--test_postake_snarkless:
239239
resource_class: large
240240
docker:
241-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
241+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
242242
steps:
243243
- checkout
244244
- run: git submodule sync && git submodule update --init --recursive
@@ -248,7 +248,7 @@ jobs:
248248
test-unit--dev:
249249
resource_class: large
250250
docker:
251-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
251+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
252252
steps:
253253
- checkout
254254
- run: git submodule sync && git submodule update --init --recursive
@@ -258,7 +258,7 @@ jobs:
258258
test--fake_hash:
259259
resource_class: large
260260
docker:
261-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
261+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
262262
steps:
263263
- checkout
264264
- run: git submodule sync && git submodule update --init --recursive
@@ -270,7 +270,7 @@ jobs:
270270
test--test_postake:
271271
resource_class: large
272272
docker:
273-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
273+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
274274
steps:
275275
- checkout
276276
- run: git submodule sync && git submodule update --init --recursive
@@ -285,7 +285,7 @@ jobs:
285285
test--test_postake_bootstrap:
286286
resource_class: large
287287
docker:
288-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
288+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
289289
steps:
290290
- checkout
291291
- run: git submodule sync && git submodule update --init --recursive
@@ -297,7 +297,7 @@ jobs:
297297
test--test_postake_catchup:
298298
resource_class: large
299299
docker:
300-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
300+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
301301
steps:
302302
- checkout
303303
- run: git submodule sync && git submodule update --init --recursive
@@ -309,7 +309,7 @@ jobs:
309309
test--test_postake_five_even_snarkless:
310310
resource_class: large
311311
docker:
312-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
312+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
313313
steps:
314314
- checkout
315315
- run: git submodule sync && git submodule update --init --recursive
@@ -321,7 +321,7 @@ jobs:
321321
test--test_postake_five_even_txns:
322322
resource_class: large
323323
docker:
324-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
324+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
325325
steps:
326326
- checkout
327327
- run: git submodule sync && git submodule update --init --recursive
@@ -333,7 +333,7 @@ jobs:
333333
test--test_postake_snarkless:
334334
resource_class: large
335335
docker:
336-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
336+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
337337
steps:
338338
- checkout
339339
- run: git submodule sync && git submodule update --init --recursive
@@ -348,7 +348,7 @@ jobs:
348348
test--test_postake_split:
349349
resource_class: large
350350
docker:
351-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
351+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
352352
steps:
353353
- checkout
354354
- run: git submodule sync && git submodule update --init --recursive
@@ -360,7 +360,7 @@ jobs:
360360
test--test_postake_split_snarkless:
361361
resource_class: large
362362
docker:
363-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
363+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
364364
steps:
365365
- checkout
366366
- run: git submodule sync && git submodule update --init --recursive
@@ -387,7 +387,7 @@ jobs:
387387
test--test_postake_txns:
388388
resource_class: large
389389
docker:
390-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
390+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
391391
steps:
392392
- checkout
393393
- run: git submodule sync && git submodule update --init --recursive

.circleci/config.yml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
lint:
4646
docker:
47-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
47+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
4848
steps:
4949
- checkout
5050
- run: git submodule sync && git submodule update --init --recursive
@@ -122,7 +122,7 @@ jobs:
122122
build-artifacts--{{profile}}:
123123
resource_class: large
124124
docker:
125-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
125+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
126126
environment:
127127
DUNE_PROFILE: {{profile}}
128128
steps:
@@ -161,7 +161,7 @@ jobs:
161161
test-unit--{{profile}}:
162162
resource_class: large
163163
docker:
164-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
164+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
165165
steps:
166166
- checkout
167167
- run: git submodule sync && git submodule update --init --recursive
@@ -174,7 +174,7 @@ jobs:
174174
test--{{profile}}:
175175
resource_class: large
176176
docker:
177-
- image: codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
177+
- image: codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
178178
steps:
179179
- checkout
180180
- run: git submodule sync && git submodule update --init --recursive

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
[submodule "src/external/ocaml-extlib"]
1111
path = src/external/ocaml-extlib
1212
url = git@github.com:CodaProtocol/ocaml-extlib.git
13+
[submodule "src/external/rpc_parallel"]
14+
path = src/external/rpc_parallel
15+
url = git@github.com:CodaProtocol/rpc_parallel.git
16+
[submodule "src/external/digestif"]
17+
path = src/external/digestif
18+
url = git@github.com:CodaProtocol/digestif.git
1319
[submodule "frontend/wallet/tablecloth"]
1420
path = frontend/wallet/tablecloth
1521
url = https://github.com/bkase/tablecloth

README-dev.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ copy of the repo.
5555

5656
* Pull down developer container image (~2GB download, go stretch your legs)
5757

58-
`docker pull codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5`
58+
`docker pull codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc`
5959

6060
* Create local builder image
6161

@@ -144,6 +144,8 @@ you need, you run `opam switch import src/opam.export`.
144144
Some of our dependencies aren't taken from `opam`, and aren't integrated
145145
with `dune`, so you need to add them manually:
146146

147+
* `opam pin add src/external/digestif`
148+
* `opam pin add src/external/async_kernel`
147149
* `opam pin add src/external/ocaml-sodium`
148150
* `opam pin add src/external/rpc_parallel`
149151
* `opam pin add src/external/ocaml-extlib`

dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM codaprotocol/coda:toolchain-c4b2cc7c53ef51136350323d52609de5aa83f3a5
1+
FROM codaprotocol/coda:toolchain-f8dc1642d4ed1d38a7c726f0f2677f53654e4bfc
22

33
ENV OPAM_DIR "/home/opam/.opam/4.07"
44
ENV PATH "${OPAM_DIR}/bin:$PATH"

dockerfiles/Dockerfile-toolchain

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ RUN cd /ocaml-sodium && yes | opam pin add .
5252

5353
# Source copy of rpc_parallel (modified for macOS support)
5454
ADD /src/external/rpc_parallel /rpc_parallel
55-
RUN cd /rpc_parallel && yes | opam pin add .
55+
RUN sudo rm -rf /rpc_parallel/.git && cd /rpc_parallel && yes | opam pin add .
5656

5757
# Source copy of ocaml-extlib (modified to remove module name conflict)
5858
ADD /src/external/ocaml-extlib /ocaml-extlib
5959
RUN sudo rm -rf /ocaml-extlib/.git && cd /ocaml-extlib && yes | opam pin add .
6060

61+
# Source copy of digestif (modified to support unpadded SHA256)
62+
ADD /src/external/digestif /digestif
63+
RUN sudo rm -rf /digestif/.git && cd /digestif && yes | opam pin add .
64+
6165
ADD /src/external/async_kernel /async_kernel
6266
RUN sudo rm -rf /async_kernel/.git && cd /async_kernel && yes | opam pin add .
6367

docs/style_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ We use [ppx_inline_test](https://github.com/janestreet/ppx_inline_test) for unit
195195

196196
```ocaml
197197
let%test_unit =
198-
Quickcheck.test ~sexp:[%sexp_of: Int.t] Int.gen
198+
Quickcheck.test ~sexp:[%sexp_of: Int.t] Int.quickcheck_generator
199199
~f:(fun x -> assert (Int.equal (f_inv (f x)) x))
200200
```
201201

scripts/check-snarky-submodule.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ cd src/lib/snarky
77
CURR=$(git rev-parse HEAD)
88
git fetch origin
99

10-
if ! git rev-list origin/master | grep -q $CURR; then
11-
echo "Snarky submodule commit is not an ancestor of snarky/master"
10+
if ! git rev-list origin/coda | grep -q $CURR; then
11+
echo "Snarky submodule commit is not an ancestor of snarky/coda"
1212
exit 1
1313
fi
1414

scripts/macos-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ if [[ $COMPILE_THINGS == "YES" ]]; then
6363
env TERM=xterm opam pin -y add src/external/ocaml-sodium
6464
env TERM=xterm opam pin -y add src/external/rpc_parallel
6565
env TERM=xterm opam pin -y add src/external/ocaml-extlib
66+
env TERM=xterm opam pin -y add src/external/digestif
6667
env TERM=xterm opam pin -y add src/external/async_kernel
6768
eval $(opam config env)
6869

0 commit comments

Comments
 (0)