Skip to content

Commit 3b02885

Browse files
authored
Merge pull request #4368 from TheBlueMatt/2026-02-quieter-ci
Use `--quiet` not `--verbose` on `cargo` calls in `ci-tests.sh`
2 parents 35ab03f + d2eeb0a commit 3b02885

1 file changed

Lines changed: 48 additions & 48 deletions

File tree

ci/ci-tests.sh

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,136 +14,136 @@ function PIN_RELEASE_DEPS {
1414
PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
1515

1616
# The backtrace v0.3.75 crate relies on rustc 1.82
17-
[ "$RUSTC_MINOR_VERSION" -lt 82 ] && cargo update -p backtrace --precise "0.3.74" --verbose
17+
[ "$RUSTC_MINOR_VERSION" -lt 82 ] && cargo update -p backtrace --precise "0.3.74" --quiet
1818

1919
# proptest 1.9.0 requires rustc 1.82.0
20-
[ "$RUSTC_MINOR_VERSION" -lt 82 ] && cargo update -p proptest --precise "1.8.0" --verbose
20+
[ "$RUSTC_MINOR_VERSION" -lt 82 ] && cargo update -p proptest --precise "1.8.0" --quiet
2121

2222
# Starting with version 1.2.0, the `idna_adapter` crate has an MSRV of rustc 1.81.0.
23-
[ "$RUSTC_MINOR_VERSION" -lt 81 ] && cargo update -p idna_adapter --precise "1.1.0" --verbose
23+
[ "$RUSTC_MINOR_VERSION" -lt 81 ] && cargo update -p idna_adapter --precise "1.1.0" --quiet
2424

2525
export RUST_BACKTRACE=1
2626

2727
echo -e "\n\nChecking the workspace, except lightning-transaction-sync."
28-
cargo check --verbose --color always
28+
cargo check --quiet --color always
2929

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

3232
echo -e "\n\nTesting the workspace, except lightning-transaction-sync."
33-
cargo test --verbose --color always
33+
cargo test --quiet --color always
3434

3535
echo -e "\n\nTesting upgrade from prior versions of LDK"
3636
pushd lightning-tests
37-
cargo test
37+
cargo test --quiet
3838
popd
3939

4040
echo -e "\n\nChecking and building docs for all workspace members individually..."
4141
for DIR in "${WORKSPACE_MEMBERS[@]}"; do
42-
cargo check -p "$DIR" --verbose --color always
43-
cargo doc -p "$DIR" --document-private-items
42+
cargo check -p "$DIR" --quiet --color always
43+
cargo doc -p "$DIR" --quiet --document-private-items
4444
done
4545

4646
echo -e "\n\nChecking and testing lightning with features"
47-
cargo test -p lightning --verbose --color always --features dnssec
48-
cargo check -p lightning --verbose --color always --features dnssec
49-
cargo doc -p lightning --document-private-items --features dnssec
47+
cargo test -p lightning --quiet --color always --features dnssec
48+
cargo check -p lightning --quiet --color always --features dnssec
49+
cargo doc -p lightning --quiet --document-private-items --features dnssec
5050

5151
echo -e "\n\nChecking and testing Block Sync Clients with features"
5252

53-
cargo test -p lightning-block-sync --verbose --color always --features rest-client
54-
cargo check -p lightning-block-sync --verbose --color always --features rest-client
55-
cargo test -p lightning-block-sync --verbose --color always --features rpc-client
56-
cargo check -p lightning-block-sync --verbose --color always --features rpc-client
57-
cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client
58-
cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client
59-
cargo test -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
60-
cargo check -p lightning-block-sync --verbose --color always --features rpc-client,rest-client,tokio
53+
cargo test -p lightning-block-sync --quiet --color always --features rest-client
54+
cargo check -p lightning-block-sync --quiet --color always --features rest-client
55+
cargo test -p lightning-block-sync --quiet --color always --features rpc-client
56+
cargo check -p lightning-block-sync --quiet --color always --features rpc-client
57+
cargo test -p lightning-block-sync --quiet --color always --features rpc-client,rest-client
58+
cargo check -p lightning-block-sync --quiet --color always --features rpc-client,rest-client
59+
cargo test -p lightning-block-sync --quiet --color always --features rpc-client,rest-client,tokio
60+
cargo check -p lightning-block-sync --quiet --color always --features rpc-client,rest-client,tokio
6161

6262
echo -e "\n\nChecking Transaction Sync Clients with features."
63-
cargo check -p lightning-transaction-sync --verbose --color always --features esplora-blocking
64-
cargo check -p lightning-transaction-sync --verbose --color always --features esplora-async
65-
cargo check -p lightning-transaction-sync --verbose --color always --features esplora-async-https
66-
cargo check -p lightning-transaction-sync --verbose --color always --features electrum
63+
cargo check -p lightning-transaction-sync --quiet --color always --features esplora-blocking
64+
cargo check -p lightning-transaction-sync --quiet --color always --features esplora-async
65+
cargo check -p lightning-transaction-sync --quiet --color always --features esplora-async-https
66+
cargo check -p lightning-transaction-sync --quiet --color always --features electrum
6767

6868
if [ -z "$CI_ENV" ] && [[ -z "$BITCOIND_EXE" || -z "$ELECTRS_EXE" ]]; then
6969
echo -e "\n\nSkipping testing Transaction Sync Clients due to BITCOIND_EXE or ELECTRS_EXE being unset."
7070
cargo check -p lightning-transaction-sync --tests
7171
else
7272
echo -e "\n\nTesting Transaction Sync Clients with features."
73-
cargo test -p lightning-transaction-sync --verbose --color always --features esplora-blocking
74-
cargo test -p lightning-transaction-sync --verbose --color always --features esplora-async
75-
cargo test -p lightning-transaction-sync --verbose --color always --features esplora-async-https
76-
cargo test -p lightning-transaction-sync --verbose --color always --features electrum
73+
cargo test -p lightning-transaction-sync --quiet --color always --features esplora-blocking
74+
cargo test -p lightning-transaction-sync --quiet --color always --features esplora-async
75+
cargo test -p lightning-transaction-sync --quiet --color always --features esplora-async-https
76+
cargo test -p lightning-transaction-sync --quiet --color always --features electrum
7777
fi
7878

7979
echo -e "\n\nChecking and testing lightning-persister with features"
80-
cargo test -p lightning-persister --verbose --color always --features tokio
81-
cargo check -p lightning-persister --verbose --color always --features tokio
82-
cargo doc -p lightning-persister --document-private-items --features tokio
80+
cargo test -p lightning-persister --quiet --color always --features tokio
81+
cargo check -p lightning-persister --quiet --color always --features tokio
82+
cargo doc -p lightning-persister --quiet --document-private-items --features tokio
8383

8484
echo -e "\n\nTest Custom Message Macros"
85-
cargo test -p lightning-custom-message --verbose --color always
85+
cargo test -p lightning-custom-message --quiet --color always
8686
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
8787

8888
echo -e "\n\nTest backtrace-debug builds"
89-
cargo test -p lightning --verbose --color always --features backtrace
89+
cargo test -p lightning --quiet --color always --features backtrace
9090

9191
echo -e "\n\nTesting no_std builds"
9292
for DIR in lightning-invoice lightning-rapid-gossip-sync lightning-liquidity; do
93-
cargo test -p $DIR --verbose --color always --no-default-features
93+
cargo test -p $DIR --quiet --color always --no-default-features
9494
done
9595

96-
cargo test -p lightning --verbose --color always --no-default-features
97-
cargo test -p lightning-background-processor --verbose --color always --no-default-features
96+
cargo test -p lightning --quiet --color always --no-default-features
97+
cargo test -p lightning-background-processor --quiet --color always --no-default-features
9898

9999
echo -e "\n\nTesting c_bindings builds"
100100
# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
101101
# disable doctests in `c_bindings` so we skip doctests entirely here.
102-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --verbose --color always --lib --bins --tests
102+
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test --quiet --color always --lib --bins --tests
103103

104104
for DIR in lightning-invoice lightning-rapid-gossip-sync; do
105105
# check if there is a conflict between no_std and the c_bindings cfg
106-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features
106+
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p $DIR --quiet --color always --no-default-features
107107
done
108108

109109
# Note that because `$RUSTFLAGS` is not passed through to doctest builds we cannot selectively
110110
# disable doctests in `c_bindings` so we skip doctests entirely here.
111-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --verbose --color always --no-default-features --lib --bins --tests
112-
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --verbose --color always --no-default-features --lib --bins --tests
111+
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning-background-processor --quiet --color always --no-default-features --lib --bins --tests
112+
RUSTFLAGS="$RUSTFLAGS --cfg=c_bindings" cargo test -p lightning --quiet --color always --no-default-features --lib --bins --tests
113113

114114
echo -e "\n\nTesting other crate-specific builds"
115115
# Note that outbound_commitment_test only runs in this mode because of hardcoded signature values
116-
RUSTFLAGS="$RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --verbose --color always --no-default-features --features=std
116+
RUSTFLAGS="$RUSTFLAGS --cfg=ldk_test_vectors" cargo test -p lightning --quiet --color always --no-default-features --features=std
117117
# This one only works for lightning-invoice
118118
# check that compile with no_std and serde works in lightning-invoice
119-
cargo test -p lightning-invoice --verbose --color always --no-default-features --features serde
119+
cargo test -p lightning-invoice --quiet --color always --no-default-features --features serde
120120

121121
echo -e "\n\nTesting no_std build on a downstream no-std crate"
122122
# check no-std compatibility across dependencies
123123
pushd no-std-check
124-
cargo check --verbose --color always
124+
cargo check --quiet --color always
125125
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
126126
popd
127127

128128
# Test that we can build downstream code with only the "release pins".
129129
pushd msrv-no-dev-deps-check
130130
PIN_RELEASE_DEPS
131-
cargo check
131+
cargo check --quiet
132132
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
133133
popd
134134

135135
if [ -f "$(which arm-none-eabi-gcc)" ]; then
136136
pushd no-std-check
137-
cargo build --target=thumbv7m-none-eabi
137+
cargo build --quiet --target=thumbv7m-none-eabi
138138
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
139139
popd
140140
fi
141141

142142
echo -e "\n\nTest cfg-flag builds"
143-
RUSTFLAGS="--cfg=taproot" cargo test --verbose --color always -p lightning
143+
RUSTFLAGS="--cfg=taproot" cargo test --quiet --color always -p lightning
144144
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
145-
RUSTFLAGS="--cfg=simple_close" cargo test --verbose --color always -p lightning
145+
RUSTFLAGS="--cfg=simple_close" cargo test --quiet --color always -p lightning
146146
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
147-
RUSTFLAGS="--cfg=lsps1_service" cargo test --verbose --color always -p lightning-liquidity
147+
RUSTFLAGS="--cfg=lsps1_service" cargo test --quiet --color always -p lightning-liquidity
148148
[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
149-
RUSTFLAGS="--cfg=peer_storage" cargo test --verbose --color always -p lightning
149+
RUSTFLAGS="--cfg=peer_storage" cargo test --quiet --color always -p lightning

0 commit comments

Comments
 (0)