Skip to content

Commit ac77483

Browse files
committed
wip(e2e): activate debug logs devnet - DO NOT MERGE
1 parent 423c038 commit ac77483

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ jobs:
435435
warning_on_retry: true
436436
command: |
437437
cat > ./mithril-end-to-end.sh << EOF
438-
#!/bin/bash
438+
#!/usr/bin/env bash
439439
set -x
440440
./mithril-end-to-end -vvv \\
441441
--bin-directory ./bin \\

mithril-test-lab/mithril-devnet/mkfiles/mkfiles-dmq.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
for NODE in ${ALL_NODES}; do
23
cat >> ${NODE}/config.dmq.json <<EOF
34
{

mithril-test-lab/mithril-devnet/mkfiles/mkfiles-init.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ if [[ "$SKIP_CARDANO_BIN_DOWNLOAD" != "true" ]]; then
8080
fi
8181

8282
# TODO: remove this temporary implementation to copy DMQ node binary once the DMQ is part of the Cardano node bundle
83-
cp ./bin/dmq-node ${ARTIFACTS_DIR}/bin/
83+
curl -sL "https://github.com/input-output-hk/mithril/raw/637c55fbd4e26db3b4b24ea6c047072ed40dfb9e/mithril-test-lab/mithril-devnet/bin/dmq-node" --output ${ARTIFACTS_DIR}/bin/dmq-node
84+
#cp ./bin/dmq-node ${ARTIFACTS_DIR}/bin/
8485
chmod u+x ${ARTIFACTS_DIR}/bin/dmq-node
8586

8687
# Switch to artifacts directory

mithril-test-lab/mithril-devnet/mkfiles/mkfiles-start.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ for NODE in ${FULL_NODES}; do
1616
cat >> ${NODE}/start-node.sh <<EOF
1717
#!/usr/bin/env bash
1818
19+
set -x
20+
pwd
21+
1922
$CARDANO_NODE run \\
2023
--config ${NODE}/configuration.yaml \\
2124
--topology ${NODE}/topology.json \\
@@ -36,6 +39,9 @@ for NODE in ${POOL_NODES}; do
3639
cat >> ${NODE}/start-node.sh <<EOF
3740
#!/usr/bin/env bash
3841
42+
set -x
43+
pwd
44+
3945
$CARDANO_NODE run \\
4046
--config ${NODE}/configuration.yaml \\
4147
--topology ${NODE}/topology.json \\
@@ -118,7 +124,13 @@ killall dmq-node > /dev/null 2>&1
118124
119125
# Stop when there's an error, activate it after the killall since it will report an error if it doesn't kill anything
120126
set -e
127+
set -x
128+
pwd
129+
ls -al
130+
ls -al bin
131+
ls -al $DMQ_NODE
121132
133+
$CARDANO_NODE --version
122134
$DMQ_NODE --version
123135
124136
EOF
@@ -127,6 +139,9 @@ for NODE in ${ALL_NODES}; do
127139
cat >> ${NODE}/start-dmq.sh <<EOF
128140
#!/usr/bin/env bash
129141
142+
set -x
143+
pwd
144+
130145
$DMQ_NODE \\
131146
--configuration-file ${NODE}/config.dmq.json \\
132147
--topology-file ${NODE}/topology.dmq.json \\

mithril-test-lab/mithril-end-to-end/src/devnet/runner.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ impl Devnet {
124124
bootstrap_args.cardano_hard_fork_latest_era_at_epoch.to_string(),
125125
);
126126

127+
bootstrap_command.env("DEBUG", "1");
128+
127129
bootstrap_command
128130
.current_dir(&bootstrap_args.devnet_scripts_dir)
129-
.stdout(Stdio::null())
131+
.stdout(Stdio::inherit())
130132
.kill_on_drop(true);
131133

132134
info!("Bootstrapping the Devnet"; "script" => &bootstrap_script_path.display());

0 commit comments

Comments
 (0)