Skip to content

Commit 3d8e0ee

Browse files
authored
Merge pull request #273 from Wolfvin/fix/quality-gate-double-scan-hang
fix(ci): remove redundant scan + add tree-sitter to quality-gate (stop 40min hang)
2 parents 6a448fe + d6c1e11 commit 3d8e0ee

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/codelens-quality-gate.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ jobs:
2323

2424
- name: Install dependencies
2525
run: |
26-
pip install pyyaml
27-
28-
- name: Initialize CodeLens
29-
run: |
30-
python3 scripts/codelens.py scan .
26+
# tree-sitter pinned <0.26 (issue #235: 0.26 native segfault). Installing
27+
# it makes `scan` use the fast tree-sitter path instead of the slow regex
28+
# fallback that hung the old double-scan Initialize/Scan steps.
29+
pip install "tree-sitter>=0.21.0,<0.26" pyyaml
30+
pip install tree-sitter-python tree-sitter-javascript tree-sitter-html tree-sitter-css || true
31+
pip install tree-sitter-typescript tree-sitter-rust || true
3132
3233
- name: Scan codebase
3334
run: |
3435
python3 scripts/codelens.py scan .
3536
3637
- name: Run quality gate
3738
run: |
38-
python3 scripts/codelens.py audit . --check dead-code,smell,complexity --severity high
39+
python3 scripts/codelens.py audit . --check dead-code,smell,complexity --severity high --format sarif > codelens-results.sarif
3940
4041
- name: Upload SARIF results
4142
if: always()

0 commit comments

Comments
 (0)