From 729f5c66d67191ec6f08303df511f0146d613601 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 12 May 2026 07:56:28 +0200 Subject: [PATCH] ci(coverage): use grep -F for birpc guard to avoid BRE escaping -F (fixed string) matches the literal pattern [birpc] rpc is closed without relying on BRE bracket escaping, making the intent explicit and immune to accidental regex interpretation. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8c562674..cac50b86 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -49,9 +49,9 @@ jobs: shell: bash if: always() run: | - if grep -q "\[birpc\] rpc is closed" /tmp/coverage-test-${{ github.run_id }}.log 2>/dev/null; then + if grep -qF "[birpc] rpc is closed" /tmp/coverage-test-${{ github.run_id }}.log 2>/dev/null; then echo "FAIL: [birpc] rpc is closed teardown race detected in coverage run" - grep "\[birpc\] rpc is closed" /tmp/coverage-test-${{ github.run_id }}.log + grep -F "[birpc] rpc is closed" /tmp/coverage-test-${{ github.run_id }}.log exit 1 fi