Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
fix: allow log level trace and debug in release builds
Merged liw opened 1 year ago

Fixes problem reported in https://radicle.zulipchat.com/#narrow/stream/380896-integrations/topic/Upgrading.20to.20CI.20Broker.200.2E6.2E1/near/471189010

2 files changed +5 -4 1a46a855 975ce518
modified Cargo.toml
@@ -20,7 +20,7 @@ regex = "1.10.5"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.121"
serde_yml = "0.0.11"
-
slog = "2.7.0"
+
slog = { version = "2.7.0", features = ["release_max_level_trace"] }
slog-json = "2.6.1"
slog-scope = "4.4.0"
sqlite = "0.32.0"
modified ci-broker.md
@@ -170,8 +170,6 @@ env \
	RAD_PASSPHRASE=secret \
	RAD_HOME="$homedir/.radicle" \
	RAD_SOCKET=synt.sock \
-
	RUST_LOG=trace \
-
	RADICLE_CI_BROKER_LOG=trace \
	"$@"
~~~

@@ -259,6 +257,9 @@ given file adapter.sh from dummy.sh
when I run chmod +x adapter.sh

when I run bash radenv.sh RAD_SOCKET=synt.sock cib --config broker.yaml process-events
+
then stderr contains "CI broker starts"
+
then stderr contains "loaded configuration"
+
then stderr contains "CI broker ends successfully"
then file reports/index.html exists
then file reports/status.json exists

@@ -794,7 +795,7 @@ correctly.
~~~scenario
given an installed cibtool
given file count.sh
-
when I run env RUST_LOG=debug bash -x count.sh 100 10
+
when I run env bash -x count.sh 100 10
then stdout contains "OK\n"
~~~