Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/codelens-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ jobs:

- name: Run test suite
run: |
cd scripts && python -m pytest ../tests/ -v --tb=short
# ulimit -s unlimited prevents SIGSEGV from tree-sitter's internal C
# recursion on deeply-nested ASTs (issue #235, test_large_file_parsing.py)
ulimit -s unlimited
cd scripts && python -m pytest ../tests/ -v --tb=short \
--ignore=../tests/test_integration.py

# ─── Benchmark ─────────────────────────────────────────────────
benchmark:
Expand Down Expand Up @@ -98,14 +102,14 @@ jobs:
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: Run codelens check (self-analysis)
- name: Run codelens self-analysis
run: |
cd scripts && python codelens.py check . --severity high --format json
cd scripts && python codelens.py audit . --check dead-code,smell --severity high --format json
continue-on-error: true

- name: Generate SARIF output
run: |
cd scripts && python codelens.py check . --format sarif > ../codelens-results.sarif
cd scripts && python codelens.py audit . --check dead-code,smell --format sarif > ../codelens-results.sarif
continue-on-error: true

- name: Upload SARIF as artifact
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/codelens-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:

- name: Initialize CodeLens
run: |
python3 scripts/codelens.py init .
python3 scripts/codelens.py scan .

- name: Scan codebase
run: |
python3 scripts/codelens.py scan .

- name: Run quality gate
run: |
python3 scripts/codelens.py check . --severity high --sarif
python3 scripts/codelens.py audit . --check dead-code,smell,complexity --severity high

- name: Upload SARIF results
if: always()
Expand All @@ -59,8 +59,9 @@ jobs:

- name: Run benchmarks
run: |
python3 scripts/codelens.py benchmark .
cd benchmarks && python run_benchmarks.py --quick

- name: Check for regression
run: |
python3 benchmarks/check_regression.py --compare baseline
continue-on-error: true
Loading