Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable testbed CI in cardano-chain-follower crate #7

Merged
merged 6 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ rlib
rulelist
rulename
RULENAME
runable
rustc
rustdoc
rustdocflags
Expand Down
2 changes: 1 addition & 1 deletion rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ build:
--args2="--libs=cardano-chain-follower" \
--args3="--libs=cbork" \
--args4="--libs=hermes-ipfs" \
--docs="true"
--docs="false"

# local-ci-run: This step simulates the full CI run for local purposes only.
local-ci-run:
Expand Down
34 changes: 17 additions & 17 deletions rust/cardano-chain-follower/testbed/overhead_benchmark/Earthfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
VERSION 0.8
# VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/mithril_snapshot:v3.1.24 AS mithril-snapshot-ci
IMPORT ../../../.. AS hermes
# IMPORT github.com/input-output-hk/catalyst-ci/earthly/mithril_snapshot:v3.1.24 AS mithril-snapshot-ci
# IMPORT ../../../.. AS hermes

build:
FROM hermes+builder
# build:
# FROM hermes+builder

WORKDIR crates/cardano-chain-follower/testbed
RUN cargo build -p overhead_benchmark --release
# WORKDIR crates/cardano-chain-follower/testbed
# RUN cargo build -p overhead_benchmark --release

SAVE ARTIFACT target/release/overhead_benchmark overhead_benchmark
# SAVE ARTIFACT target/release/overhead_benchmark overhead_benchmark

local-run-preprod:
ARG --required BENCH_NAME
# local-run-preprod:
# ARG --required BENCH_NAME

FROM +build
# FROM +build

COPY --dir mithril-snapshot-ci+package-preprod-snapshot/snapshot/immutable mithril_snapshot
COPY +build/overhead_benchmark overhead_benchmark_bin
RUN ./overhead_benchmark_bin --bench-name $BENCH_NAME --mithril-snapshot-path ./mithril_snapshot
# COPY --dir mithril-snapshot-ci+package-preprod-snapshot/snapshot/immutable mithril_snapshot
# COPY +build/overhead_benchmark overhead_benchmark_bin
# RUN ./overhead_benchmark_bin --bench-name $BENCH_NAME --mithril-snapshot-path ./mithril_snapshot

local-save-preprod-snapshot:
FROM mithril-snapshot-ci+package-preprod-snapshot
SAVE ARTIFACT immutable AS LOCAL local_preprod_mithril_snapshot
# local-save-preprod-snapshot:
# FROM mithril-snapshot-ci+package-preprod-snapshot
# SAVE ARTIFACT immutable AS LOCAL local_preprod_mithril_snapshot
Loading