From 48da22168d9334905b047a8d51c07c8213f3e009 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 16:44:48 +0000 Subject: [PATCH] test(baseline): use [[ ]] in the invalid_actions_lock ledger guard SonarCloud reported one new issue on #1239. The proxy in the session that wrote #1239 could not reach sonarcloud.io, so the finding itself was never read. The only conditional #1239 added is `if [ "$got" = "0" ]` in scripts/tests/apply-baseline-test.sh, and this repo already answers that Sonar rule with Bash `[[ ... ]]` (#1291). Behaviour is unchanged. The suite passes 52/52. With an invalid_actions_lock ack put back into a copy of the baseline, the guard still fails (2 FAIL, exit 1). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TbbnKqskQA5mj5gfMniPzi --- scripts/tests/apply-baseline-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/apply-baseline-test.sh b/scripts/tests/apply-baseline-test.sh index 3cc98005..e71b6575 100755 --- a/scripts/tests/apply-baseline-test.sh +++ b/scripts/tests/apply-baseline-test.sh @@ -424,7 +424,7 @@ if [ ! -f "$SHIPPED" ]; then fail=$((fail + 1)) else got=$(jq -r '[.[] | select(.type == "invalid_actions_lock")] | length' "$SHIPPED") - if [ "$got" = "0" ]; then + if [[ "$got" == "0" ]]; then echo "PASS: shipped ledger holds NO invalid_actions_lock ack" pass=$((pass + 1)) else