Skip to content

fix(ci): remove redundant scan + add tree-sitter to quality-gate (stop 40min hang) - #273

Merged
Wolfvin merged 1 commit into
mainfrom
fix/quality-gate-double-scan-hang
Jul 14, 2026
Merged

fix(ci): remove redundant scan + add tree-sitter to quality-gate (stop 40min hang)#273
Wolfvin merged 1 commit into
mainfrom
fix/quality-gate-double-scan-hang

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Mengapa

CI HEAD (#270 merge) run Quality Gate STUCK 40+ menit di step "Initialize CodeLens" (semua 4 matrix job). Root cause dari fix #262 saya:

  1. Dua step scan . redundanfix(ci): fix broken CI since #195 consolidation (closes #235) #262 mengubah "Initialize CodeLens" dari init (cepat) jadi scan ., padahal step "Scan codebase" berikutnya JUGA scan .. Dua full-scan.
  2. Tanpa tree-sitter — job cuma pip install pyyaml, jadi scan pakai regex-fallback parser yang lambat/pathological pada file besar repo (test fixtures 3000-baris) → near-hang.

Perbaikan

  • Hapus step "Initialize CodeLens" redundan (satu scan cukup).
  • Install tree-sitter>=0.21.0,<0.26 (+ grammar) — scan pakai jalur tree-sitter cepat.
  • "Run quality gate" tulis SARIF ke codelens-results.sarif (yang di-upload step berikutnya; sebelumnya file itu tak pernah dibuat).

Verifikasi

Full scan .. dengan tree-sitter (0.25.2) lokal = 116s exit 0 (bukan hang). Regex-fallback double-scan itulah yang bikin hang 40 menit. audit --format sarif → SARIF valid (dari #270).

Catatan

Melengkapi #262/#266 — bagian terakhir memperbaiki CI yang rusak sejak #195.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Wolfvin
Wolfvin merged commit 3d8e0ee into main Jul 14, 2026
0 of 6 checks passed
@Wolfvin
Wolfvin deleted the fix/quality-gate-double-scan-hang branch July 14, 2026 00:19
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant