From d6c1e119c0085d1f2965559f348cfbe009e9484e Mon Sep 17 00:00:00 2001 From: Wolfvin Date: Tue, 14 Jul 2026 07:19:30 +0700 Subject: [PATCH] fix(ci): remove redundant scan + add tree-sitter to quality-gate (stop 40min hang) --- .github/workflows/codelens-quality-gate.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codelens-quality-gate.yml b/.github/workflows/codelens-quality-gate.yml index 46164c8..8d2c1a8 100644 --- a/.github/workflows/codelens-quality-gate.yml +++ b/.github/workflows/codelens-quality-gate.yml @@ -23,11 +23,12 @@ jobs: - name: Install dependencies run: | - pip install pyyaml - - - name: Initialize CodeLens - run: | - python3 scripts/codelens.py scan . + # tree-sitter pinned <0.26 (issue #235: 0.26 native segfault). Installing + # it makes `scan` use the fast tree-sitter path instead of the slow regex + # fallback that hung the old double-scan Initialize/Scan steps. + pip install "tree-sitter>=0.21.0,<0.26" pyyaml + pip install tree-sitter-python tree-sitter-javascript tree-sitter-html tree-sitter-css || true + pip install tree-sitter-typescript tree-sitter-rust || true - name: Scan codebase run: | @@ -35,7 +36,7 @@ jobs: - name: Run quality gate run: | - python3 scripts/codelens.py audit . --check dead-code,smell,complexity --severity high + python3 scripts/codelens.py audit . --check dead-code,smell,complexity --severity high --format sarif > codelens-results.sarif - name: Upload SARIF results if: always()