Skip to content

Commit b06d40b

Browse files
committed
Add log groups
1 parent 6749bc6 commit b06d40b

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

ci/ci-tests.sh

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,36 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
2222

2323
export RUST_BACKTRACE=1
2424

25-
echo -e "\n\nChecking the workspace, except lightning-transaction-sync."
25+
echo "::group::Checking the workspace, except lightning-transaction-sync."
2626
cargo check --verbose --color always
2727

2828
WORKSPACE_MEMBERS=( $(cat Cargo.toml | tr '\n' '\r' | sed 's/\r //g' | tr '\r' '\n' | grep '^members =' | sed 's/members.*=.*\[//' | tr -d '"' | tr ',' ' ') )
2929

30-
echo -e "\n\nTesting the workspace, except lightning-transaction-sync."
30+
echo "::endgroup::"
31+
echo "::group::Testing the workspace, except lightning-transaction-sync."
3132
cargo test --verbose --color always
3233

33-
echo -e "\n\nTesting upgrade from prior versions of LDK"
34+
echo "::endgroup::"
35+
echo "::group::Testing upgrade from prior versions of LDK"
3436
pushd lightning-tests
3537
cargo test
3638
popd
3739

38-
echo -e "\n\nChecking and building docs for all workspace members individually..."
40+
echo "::endgroup::"
41+
echo "::group::Checking and building docs for all workspace members individually..."
3942
for DIR in "${WORKSPACE_MEMBERS[@]}"; do
4043
cargo check -p "$DIR" --verbose --color always
4144
cargo doc -p "$DIR" --document-private-items
4245
done
4346

44-
echo -e "\n\nChecking and testing lightning with features"
47+
echo "::endgroup::"
48+
echo "::group::Checking and testing lightning with features"
4549
cargo test -p lightning --verbose --color always --features dnssec
4650
cargo check -p lightning --verbose --color always --features dnssec
4751
cargo doc -p lightning --document-private-items --features dnssec
4852

49-
echo -e "\n\nChecking and testing Block Sync Clients with features"
53+
echo "::endgroup::"
54+
echo "::group::Checking and testing Block Sync Clients with features"
5055

5156
cargo test -p lightning-block-sync --verbose --color always --features rest-client
5257
cargo check -p lightning-block-sync --verbose --color always --features rest-client
@@ -57,27 +62,32 @@ cargo check -p lightning-block-sync --verbose --color always --features rpc-clie
5762
cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
5863
cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
5964

60-
echo -e "\n\nChecking and testing lightning-persister with features"
65+
echo "::endgroup::"
66+
echo "::group::Checking and testing lightning-persister with features"
6167
cargo test -p lightning-persister --verbose --color always --features tokio
6268
cargo check -p lightning-persister --verbose --color always --features tokio
6369
cargo doc -p lightning-persister --document-private-items --features tokio
6470

65-
echo -e "\n\nTest Custom Message Macros"
71+
echo "::endgroup::"
72+
echo "::group::Test Custom Message Macros"
6673
cargo test -p lightning-custom-message --verbose --color always
6774
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
6875

69-
echo -e "\n\nTest backtrace-debug builds"
76+
echo "::endgroup::"
77+
echo "::group::Test backtrace-debug builds"
7078
cargo test -p lightning --verbose --color always --features backtrace
7179

72-
echo -e "\n\nTesting no_std builds"
80+
echo "::endgroup::"
81+
echo "::group::Testing no_std builds"
7382
for DIR in lightning-invoice lightning-rapid-gossip-sync lightning-liquidity; do
7483
cargo test -p $DIR --verbose --color always --no-default-features
7584
done
7685

7786
cargo test -p lightning --verbose --color always --no-default-features
7887
cargo test -p lightning-background-processor --verbose --color always --no-default-features
7988

80-
echo -e "\n\nTesting c_bindings builds"
89+
echo "::endgroup::"
90+
echo "::group::Testing c_bindings builds"
8191
# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
8292
# disable doctests in `c_bindings` so we skip doctests entirely here.
8393
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always --lib --bins --tests
@@ -92,14 +102,16 @@ done
92102
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --verbose --color always --no-default-features --lib --bins --tests
93103
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --lib --bins --tests
94104

95-
echo -e "\n\nTesting other crate-specific builds"
105+
echo "::endgroup::"
106+
echo "::group::Testing other crate-specific builds"
96107
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
97108
RUSTFLAGS="$RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose --color always --no-default-features --features=std
98109
# This one only works for lightning-invoice
99110
# check that compile with no_std and serde works in lightning-invoice
100111
cargo test -p lightning-invoice --verbose --color always --no-default-features --features serde
101112

102-
echo -e "\n\nTesting no_std build on a downstream no-std crate"
113+
echo "::endgroup::"
114+
echo "::group::Testing no_std build on a downstream no-std crate"
103115
# check no-std compatibility across dependencies
104116
pushd no-std-check
105117
cargo check --verbose --color always
@@ -120,11 +132,13 @@ if [ -f "$(which arm-none-eabi-gcc)" ]; then
120132
popd
121133
fi
122134

123-
echo -e "\n\nTest cfg-flag builds"
135+
echo "::endgroup::"
136+
echo "::group::Test cfg-flag builds"
124137
RUSTFLAGS="--cfg=taproot" cargo test --verbose --color always -p lightning
125138
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
126139
RUSTFLAGS="--cfg=simple_close" cargo test --verbose --color always -p lightning
127140
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
128141
RUSTFLAGS="--cfg=lsps1_service" cargo test --verbose --color always -p lightning-liquidity
129142
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
130143
RUSTFLAGS="--cfg=peer_storage" cargo test --verbose --color always -p lightning
144+
echo "::endgroup::"

0 commit comments

Comments
 (0)