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

Testnet Transaction Health #726

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN rust_binary="./target/release/suzuka-client-e2e-simple-interaction"; dest_di
grep '^/' | xargs -I {} dirname {} | sort | uniq | xargs -I {} \
bash -c 'mkdir -p "$0/$1" && rsync -a --copy-links "$1/" "$0/$1/"' "$dest_dir" {}

FROM scratch
FROM alpine:latest

# Copy the build artifact from the builder stage
COPY --from=builder /tmp/build/target/release/suzuka-client-e2e-simple-interaction /app/suzuka-client-e2e-simple-interaction
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
services:

# runs the simple interaction client to healthcheck the full node over and over
suzuka-client-e2e-simple-interaction-healthcheck:
image: ghcr.io/movementlabsxyz/suzuka-client-e2e-simple-interaction:${CONTAINER_REV}
container_name: suzuka-client-e2e-simple-interaction
command: >
sh -c '
while true; do
/app/suzuka-client-e2e-simple-interaction
done
'
environment:
- DOT_MOVEMENT_PATH=/.movement
volumes:
- ${DOT_MOVEMENT_PATH}:/.movement
depends_on:
suzuka-faucet-service: # wait for all of the replicas to be ready
condition: service_healthy
healthcheck:
test: ["CMD", "echo", "true"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s

# Here we use a dependent service to trigger application crash, i.e., throughout docker-compose
suzuka-client-e2e-simple-interaction-healthcheck-watcher:
image: busybox
container_name: ledger-should-progress-watcher
command: >
sh -c '
while true; do
sleep 1000
done
'
depends_on:
suzuka-client-e2e-simple-interaction-healthcheck:
condition: service_healthy
Comment on lines +28 to +39
Copy link
Collaborator

@mzabaluev mzabaluev Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the purpose of this "service". Is it a stub to add the ledger-should-progress script from #717 later? The name is different, so it would not work as an overlay.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In docker-compose, you can force the entire application to crash by creating a dependent service.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is "Induced Crash" above.