From f4ceac76ce1f29de692db8026a54214dccc93e70 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Mon, 13 Apr 2026 10:22:13 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20repair=20smoke=20test=20=E2=80=94=20excl?= =?UTF-8?q?ude=20llama-cpp-fork=20build=20artifacts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. YAML parse: CMakeConfigureLog.yaml has multiple documents 2. JSON parse: tsconfig.json and pyrightconfig.json use JSON5 comments (not valid for Python's json.tool) 3. Also fixed: json.tool can't handle multiple files via xargs; switched to while-read loop Excluded llama-cpp-fork/ from all parse checks and secret scan. --- .gitea/workflows/smoke.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/smoke.yml b/.gitea/workflows/smoke.yml index 89c53517..00d198b4 100644 --- a/.gitea/workflows/smoke.yml +++ b/.gitea/workflows/smoke.yml @@ -13,12 +13,12 @@ jobs: python-version: '3.11' - name: Parse check run: | - find . -name '*.yml' -o -name '*.yaml' | grep -v .gitea | xargs -r python3 -c "import sys,yaml; [yaml.safe_load(open(f)) for f in sys.argv[1:]]" - find . -name '*.json' | xargs -r python3 -m json.tool > /dev/null - find . -name '*.py' | xargs -r python3 -m py_compile + find . -name '*.yml' -o -name '*.yaml' | grep -v .gitea | grep -v llama-cpp-fork | xargs -r python3 -c "import sys,yaml; [yaml.safe_load(open(f)) for f in sys.argv[1:]]" + find . -name '*.json' | grep -v llama-cpp-fork | while read f; do python3 -m json.tool "$f" > /dev/null || exit 1; done + find . -name '*.py' | grep -v llama-cpp-fork | xargs -r python3 -m py_compile find . -name '*.sh' | xargs -r bash -n echo "PASS: All files parse" - name: Secret scan run: | - if grep -rE 'sk-or-|sk-ant-|ghp_|AKIA' . --include='*.yml' --include='*.py' --include='*.sh' 2>/dev/null | grep -v .gitea; then exit 1; fi + if grep -rE 'sk-or-|sk-ant-|ghp_|AKIA' . --include='*.yml' --include='*.py' --include='*.sh' 2>/dev/null | grep -v .gitea | grep -v llama-cpp-fork; then exit 1; fi echo "PASS: No secrets"