Skip to content

Commit 8df0b1c

Browse files
stevenjbkioshnstanislav-tkach
authored
feat(rust/cardano-blockchain-types): add cardano-blockchain-types crate (#107)
* feat(rust): add cardano-blockchain-types crate * fix(rust): Remove unused dependencies * fix(cardano-blockchain-types): time_to_slot calculation Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): remove justfile Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): point new should take type Slot and Blake2bHash Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): Fork type Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): point and fuzzy point test Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): add Fork increment function Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): add comment on tag 259 Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): add Fork decrement function Signed-off-by: bkioshn <bkioshn@gmail.com> * test(rust): try earthly no-cache Signed-off-by: bkioshn <bkioshn@gmail.com> * test(rust): try earthly no-cache and fix doc artifact Signed-off-by: bkioshn <bkioshn@gmail.com> * test(rust): remove no-cache Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): expose Fork and Network Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): add partailOrd to Fork Signed-off-by: bkioshn <bkioshn@gmail.com> * Update rust/cardano-blockchain-types/src/point.rs Co-authored-by: Stanislav Tkach <stanislav.tkach@gmail.com> * fix(cardano-blockchain-types): cleanup Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): testdoc Signed-off-by: bkioshn <bkioshn@gmail.com> * Update rust/cardano-blockchain-types/src/point.rs * fix(cardano-blockchain-types): cleanup Signed-off-by: bkioshn <bkioshn@gmail.com> * fix(cardano-blockchain-types): format * fix(cardano-blockchain-types): add validate PR title * fix(cardano-blockchain-types): comments * fix(cardano-blockchain-types): fix hash_or_default * fix(cardano-blockchain-types): redundant code * test: no cache * test: revert change * test ci * test ci * test ci * test ci * test ci * test ci * test ci * test ci * test ci * test ci * revert change * test ci * revert change * fix(rust): Bump rust version, and test everything using that version. * feat(rust): Bump more dependencies * fix(rust): Use latest cat-ci release for latest rust compiler * fix(rust): skip building the c509 crate as rust * fix(rust): Fix bad character in the file * fix(rust): Remove redundant Earthfile * fix(rust): Reduce runtime of excessively slow property tests * fix(rust): test serialized doctests in ci * fix(rust): Try and fix broken test reports after cat-ci upgraded to forge. * fix(rust): Disable code coverage in CI because its broken after cat-ci upgraded to forge. * fix(rust): Try and fix CI being totally broken now that allure reports are disabled * fix(rust): Use released cat-ci version --------- Signed-off-by: bkioshn <bkioshn@gmail.com> Co-authored-by: bkioshn <bkioshn@gmail.com> Co-authored-by: bkioshn <35752733+bkioshn@users.noreply.github.com> Co-authored-by: Stanislav Tkach <stanislav.tkach@gmail.com>
1 parent 9851aac commit 8df0b1c

File tree

85 files changed

+3105
-143
lines changed

Some content is hidden

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

85 files changed

+3105
-143
lines changed

.config/dictionaries/project.dic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Arissara
1010
asyncio
1111
Attributes
1212
auditability
13+
auxdata
1314
babystep
1415
backpressure
1516
bech

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
forge_version: 0.2.0
1919

20-
test_reporting:
21-
if: always()
22-
needs: ci
23-
uses: ./.github/workflows/generate-allure-report.yml
20+
#test_reporting:
21+
# if: always()
22+
# needs: ci
23+
# uses: ./.github/workflows/generate-allure-report.yml

.github/workflows/generate-allure-report.yml renamed to .github/workflows/generate-allure-report.yml.disabled

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16-
AWS_REGION: eu-central-1
17-
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci
18-
EARTHLY_TARGET: docker
19-
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
2016
ALLURE_REPORT_PATH: allure-report
2117
COVERAGE_REPORT_PATH: coverage-report
2218
REPORT_EXT: .junit-report.xml
@@ -29,24 +25,22 @@ jobs:
2925
steps:
3026
- uses: actions/checkout@v4
3127

32-
- name: Setup CI
33-
uses: input-output-hk/catalyst-ci/actions/setup@master
28+
- name: Install Forge
29+
uses: input-output-hk/catalyst-forge/actions/install@ci/v1.5.0
3430
with:
35-
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
36-
aws_region: ${{ env.AWS_REGION }}
37-
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
31+
version: 0.8.0
32+
if: always()
33+
34+
- name: Setup CI
35+
uses: input-output-hk/catalyst-forge/actions/setup@ci/v1.5.0
3836

3937
- name: Get catalyst libs unit test report
40-
uses: input-output-hk/catalyst-ci/actions/run@master
38+
uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.0
4139
if: always()
4240
continue-on-error: true
4341
with:
44-
earthfile: ./rust/
45-
flags:
46-
targets: build
47-
target_flags:
48-
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
49-
artifact: "false"
42+
command: run
43+
args: ./catalyst-libs+build
5044

5145
- name: Collect and upload test reports
5246
uses: actions/upload-artifact@v4
@@ -107,7 +101,7 @@ jobs:
107101

108102
- name: Comment PR with Allure report link
109103
if: ${{ always() && github.event_name == 'pull_request' && steps.allure.outputs.report_url }}
110-
uses: thollander/actions-comment-pull-request@v2
104+
uses: thollander/actions-comment-pull-request@v3
111105
with:
112106
message: |
113107
${{ steps.allure.outputs.test_result_icon }} [Test Report](${{ steps.allure.outputs.report_url }}) | ${\color{lightgreen}Pass: ${{ steps.allure.outputs.test_result_passed }}/${{ steps.allure.outputs.test_result_total }}}$ | ${\color{red}Fail: ${{ steps.allure.outputs.test_result_failed }}/${{ steps.allure.outputs.test_result_total }}}$ |

.github/workflows/semantic_pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
rust/cbork
2727
rust/hermes-ipfs
2828
rust/rbac-registration
29+
rust/cardano-blockchain-types
2930
dart
3031
docs
3132
general

Earthfile

Lines changed: 2 additions & 2 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.23 AS mdlint-ci
4-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.23 AS cspell-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.2.27 AS mdlint-ci
4+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.2.27 AS cspell-ci
55

66

77
FROM debian:stable-slim

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.23 AS docs-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/docs:v3.2.27 AS docs-ci
44

55

66
IMPORT .. AS repo

docs/src/architecture/08_concepts/catalyst_voting/cddl/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/cddl:v3.2.23 AS cddl-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cddl:v3.2.27 AS cddl-ci
44

55
check-cddl:
66
FROM cddl-ci+cddl-base

docs/src/architecture/08_concepts/immutable_ledger/cddl/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/cddl:v3.2.23 AS cddl-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cddl:v3.2.27 AS cddl-ci
44

55
check-cddl:
66
FROM cddl-ci+cddl-base

rust/.cargo/config.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ rustflags = [
2727

2828
[build]
2929
rustflags = []
30-
rustdocflags = [
31-
"--enable-index-page",
32-
"-Z",
33-
"unstable-options",
34-
]
30+
rustdocflags = []
3531

3632
[profile.dev]
3733
opt-level = 1

rust/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
resolver = "2"
33
members = [
44
"c509-certificate",
5+
"cardano-blockchain-types",
56
"cardano-chain-follower",
67
"hermes-ipfs",
78
"cbork",

0 commit comments

Comments
 (0)