fix(coverage): install npm workspaces from root lock - #1411
Conversation
|
Warning Review limit reachedNext included review available in 25 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough중첩된 npm 워크스페이스 패키지가 가장 가까운 검증된 조상 lock 파일을 사용하도록 설치 경로를 변경했습니다. 워크플로 검사 헬퍼와 관련 계약 검사를 갱신했습니다. Changesnpm 워크스페이스 커버리지 설치
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: 🔵 Low · up to The PR fixes workspace-root npm installation while preserving the existing trust and offline-installation safeguards. A quick-gate pattern may still falsely reject valid workflows by matching nested step conditions, so the change is mergeable with explicit follow-up to narrow that match. Sequence Diagram(s)sequenceDiagram
participant CoverageStep
participant npm_lock_project_dir
participant LockProject
participant npm
CoverageStep->>npm_lock_project_dir: npm lock 프로젝트 디렉터리 해석
npm_lock_project_dir->>LockProject: 일반 lock 파일 확인
LockProject-->>CoverageStep: 프로젝트 디렉터리 반환
CoverageStep->>npm: 해당 디렉터리에서 오프라인 npm ci 실행
npm-->>CoverageStep: 설치 완료 후 원래 디렉터리 복귀
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. (3 skipped: 2 unsupported, 1 too large.) ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…-workspace-coverage # Conflicts: # CHANGELOG.md
…space-coverage # Conflicts: # CHANGELOG.md # tests/test_pr_review_autofix_nvidia_nim_contract.py
|
Resolved the stale merge conflict against current Conflicts, both mechanical (no design decision involved):
The workflow file itself ( Test evidence (post-merge, in an isolated worktree):
No Generated by Claude Code |
|
Codex is reconciling this PR with current |
|
Reconciled current |
|
Current exact-head verification for |
|
Addressed CodeRabbit’s exact-head finding in |
|
Fresh full-suite verification on current exact HEAD |
|
Current exact-head evidence for |
|
@opencode-agent Review exact current head |
Summary
npm cifrom that lock project while keeping coverage scripts scoped to the changed nested package.Root cause
Central coverage discovered
apps/desktopas the JavaScript package for ContextualWisdomLab/bandscope#1057, then looked forpackage-lock.jsononly in that directory. BandScope owns the lock at the repository root, so coverage failed beforevitestcould resolve from the workspace install.Verification
python3 -m pytest -q— 1874 passed, 1 skipped, 17 subtests passed.python3 -m pytest -q tests/test_opencode_rust_coverage_toolchain_contract.py tests/test_pr_review_autofix_nvidia_nim_contract.py— 31 passed, 1 skipped.bash -n scripts/ci/test_strix_quick_gate.sh— passed.actionlintwas attempted with a 30-second bound but did not complete; it is not claimed as passing evidence.Security Notes
COVERAGE_SOURCE_WORKDIRand fails closed if the package path escapes it or no lock is present.Summary by CodeRabbit
개선 사항
버그 수정
테스트
문서