Skip to content

Commit b94854d

Browse files
authored
Merge branch 'main' into feat/c509-v11
2 parents 7cb3f21 + 1c2b570 commit b94854d

File tree

36 files changed

+2156
-572
lines changed

36 files changed

+2156
-572
lines changed

.config/dictionaries/project.dic

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
aarch
22
abcz
33
ABNF
4-
abnf
54
addrr
5+
addrs
66
adminer
77
anypolicy
88
apskhem
@@ -11,6 +11,7 @@ asyncio
1111
Attributes
1212
auditability
1313
backpressure
14+
bech
1415
bimap
1516
bindgen
1617
bkioshn
@@ -23,12 +24,10 @@ BROTLI
2324
cantopen
2425
cardano
2526
CBOR
26-
cbor
2727
cbork
2828
cdylib
2929
CEST
3030
CHAINCODE
31-
chaincode
3231
chainsync
3332
childs
3433
Chotivichit
@@ -58,11 +57,11 @@ dotglob
5857
drep
5958
dreps
6059
Earthfile
61-
earthfile
6260
encryptor
6361
Errno
6462
Eternl
6563
excalidraw
64+
extn
6665
fadvise
6766
fcntl
6867
fdatasync
@@ -89,6 +88,7 @@ happ
8988
hardano
9089
Hardlink
9190
hasher
91+
heaptrack
9292
hexdigit
9393
highwater
9494
hmod
@@ -127,7 +127,6 @@ mdlint
127127
mdns
128128
memx
129129
Metadatum
130-
metadatum
131130
mimalloc
132131
minicbor
133132
miniprotocol
@@ -192,7 +191,6 @@ retriggering
192191
rlib
193192
rulelist
194193
RULENAME
195-
rulename
196194
runable
197195
rustc
198196
rustdoc
@@ -246,13 +244,11 @@ utimensat
246244
UTXO
247245
vitss
248246
Vkey
249-
vkey
250247
vkeywitness
251248
voteplan
252249
voteplans
253250
wallclock
254251
WASI
255-
wasi
256252
wasip
257253
wasmtime
258254
webasm
@@ -261,6 +257,5 @@ webpki
261257
WORKDIR
262258
xprivate
263259
XPRV
264-
xprv
265260
xpub
266261
yoroi

.markdownlint.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// markdownlint JSON(C) configuration for Catalyst Standards
33
// Do not individually set markdown lint rules in documents.
4-
// It is permissable to disable a rule in a document if it is a false positive.
4+
// It is permissible to disable a rule in a document if it is a false positive.
55
// Keep the scope of the lint disable to as small as possible.
66
// See: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
77
// Default state for all rules

Earthfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.00 AS mdlint-ci
4-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.00 AS cspell-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.03 AS mdlint-ci
4+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.03 AS cspell-ci
55

66
FROM debian:stable-slim
77

@@ -15,13 +15,9 @@ markdown-check-fix:
1515

1616
DO mdlint-ci+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix
1717

18-
# Make sure the project dictionary is properly sorted.
18+
# clean-spelling-list : Make sure the project dictionary is properly sorted.
1919
clean-spelling-list:
20-
COPY .config/dictionaries/project.dic project.dic
21-
RUN sort -d -f project.dic > new.dic
22-
IF ! diff -q project.dic new.dic
23-
SAVE ARTIFACT new.dic AS LOCAL .config/dictionaries/project.dic
24-
END
20+
DO cspell-ci+CLEAN
2521

2622
# check-spelling : Check spelling in this repo inside a container.
2723
check-spelling:

docs/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.00 AS docs-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.03 AS docs-ci
44

55
IMPORT .. AS repo
66

integration_tests/rust/Earthfile

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mithril_snapshot:v3.1.8 AS mithril-snapshot-ci
43
IMPORT ../../rust AS rust-workspace
54

6-
local-build:
7-
FROM rust-workspace+builder
5+
# TODO: This needs reworking, because we no longer have mithril snapshots inside CI.
86

9-
WORKDIR crates/cardano-chain-follower/testbed
10-
RUN cargo build -p overhead_benchmark --release
7+
#local-build:
8+
# FROM rust-workspace+builder
119

12-
SAVE ARTIFACT target/release/overhead_benchmark overhead_benchmark
10+
# WORKDIR crates/cardano-chain-follower/testbed
11+
# RUN cargo build -p overhead_benchmark --release
1312

14-
local-run-preprod:
15-
ARG --required BENCH_NAME
13+
# SAVE ARTIFACT target/release/overhead_benchmark overhead_benchmark
1614

17-
FROM +local-build
15+
#local-run-preprod:
16+
# ARG --required BENCH_NAME
1817

19-
COPY --dir mithril-snapshot-ci+package-preprod-snapshot/snapshot/immutable mithril_snapshot
20-
COPY +build/overhead_benchmark overhead_benchmark_bin
21-
RUN ./overhead_benchmark_bin --bench-name $BENCH_NAME --mithril-snapshot-path ./mithril_snapshot
18+
# FROM +local-build
2219

23-
local-save-preprod-snapshot:
24-
FROM mithril-snapshot-ci+package-preprod-snapshot
25-
SAVE ARTIFACT immutable AS LOCAL local_preprod_mithril_snapshot
20+
#COPY --dir mithril-snapshot-ci+package-preprod-snapshot/snapshot/immutable mithril_snapshot
21+
#COPY +build/overhead_benchmark overhead_benchmark_bin
22+
#RUN ./overhead_benchmark_bin --bench-name $BENCH_NAME --mithril-snapshot-path ./mithril_snapshot
23+
24+
#local-save-preprod-snapshot:
25+
#FROM mithril-snapshot-ci+package-preprod-snapshot
26+
#SAVE ARTIFACT immutable AS LOCAL local_preprod_mithril_snapshot

integration_tests/rust/overhead_benchmark/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It doesn't matter which network the snapshot is from because the benchmark will
1111
There are 2 modes in which the benchmark can be executed:
1212

1313
| Benchmark name | Description |
14-
---------------------------|--------------|
14+
|--------------------------|--------------|
1515
| pallas | When executed with `--bench-name pallas`, the benchmark reads the Mithril snapshot from origin to its tip using only the `pallas` crate mechanisms |
1616
| cardano‑chain‑follower | When executed with `--bench-name cardano-chain-follower` it uses the `cardano-chain-follower` crate to follow the chain from origin to the tip of the specified snapshot |
1717

rust/Earthfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.01 AS rust-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.03 AS rust-ci
44

5-
# Use when debugging cat-ci locally.
6-
# IMPORT ../../catalyst-ci/earthly/rust AS rust-ci
5+
# sync-cfg: Synchronize local config with CI version.
6+
# Must be run by the developer manually.
7+
sync-cfg:
8+
DO rust-ci+SYNC_STD_CFG
79

810
# builder : Set up our target toolchains, and copy our files.
911
builder:

rust/Justfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ default:
1111
cargo-tree:
1212
cargo tree -e features,normal,build -f "{p}[{f}]" --workspace --frozen
1313

14+
# Synchronize STD Configs with the CI Version in use.
15+
sync-cfg:
16+
earthly +sync-cfg
17+
1418
# Check Dependency licenses and CVE's
1519
license-check:
1620
cargo deny check --exclude-dev
@@ -26,4 +30,7 @@ code-lint:
2630
cargo lint
2731

2832
# Pre Push Checks
29-
pre-push: code-format code-lint license-check
33+
pre-push: sync-cfg code-format code-lint license-check
34+
# Make sure we can actually build inside Earthly which needs to happen in CI.
35+
earthly +check
36+
earthly +build

rust/c509-certificate/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.00 AS rust-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust::v3.2.03 AS rust-ci
44

55
IMPORT .. AS rust-local
66
IMPORT ../.. AS repo

rust/cardano-chain-follower/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ ureq = { version = "2.10.1", features = ["native-certs"] }
6565
http = "1.1.0"
6666
hickory-resolver = { version = "0.24.1", features = ["dns-over-rustls"] }
6767
moka = { version = "0.12.8", features = ["sync"] }
68+
der-parser = "9.0.0"
69+
regex = "1.10.6"
70+
bech32 = "0.11.0"
6871

6972
[dev-dependencies]
7073
hex = "0.4.3"

0 commit comments

Comments
 (0)