fix(coverage): admit exact base VCS sources - #1210
Conversation
|
Warning Review limit reached
Next review available in: 47 minutes Limit 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. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthrough정확한 커밋으로 고정된 조직 VCS 의존성을 Changes정확한 VCS 의존성 흐름
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: 🟡 Moderate · up to The workflow now admits exact Git-based sources, but its import-only validation still accepts unsupported package layouts or compiled extensions that the documented boundary forbids. That could allow unintended runtime code into the generated environment, so fail-closed validation and contract tests are needed before merge. Sequence Diagram(s)sequenceDiagram
participant Docker_build
participant vcs_manifest
participant Git_repository
participant Python_site_packages
participant OpenCode_tests
Docker_build->>vcs_manifest: VCS 의존성 manifest 읽기
Docker_build->>Git_repository: 지정 커밋 shallow fetch 및 검증
Git_repository-->>Docker_build: 검증된 소스 반환
Docker_build->>Python_site_packages: import root를 .pth에 등록
OpenCode_tests->>Python_site_packages: 설치 경로와 import root 검증
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
Exact-head follow-up verification for 163da58 completed after review repairs: 1339 passed, 1 skipped, 16 subtests; 100% statement and branch coverage across 8,317 statements and 3,208 branches. The focused VCS materializer gate remains 105 passed at 100%, focused workflow contracts 126 passed, docstrings 100%, actionlint native validation passed, and diff hygiene passed. |
|
Exact-head revalidation after merging current main: 498c93a. Local focused VCS materialization and merged-main scheduler tests: 107 passed. Local full suite: 1,340 passed, 1 skipped, and 16 subtests passed. No force push or protection bypass was used. |
|
@opencode-agent Review only exact current head 498c93a. Verify exact VCS dependency materialization, hash/commit identity checks, fork isolation, and all terminal hosted checks. Submit a formal Reviews API verdict without changing the branch, self-approving, or bypassing protection. |
|
@opencode-agent Review only exact current head 72ad181 after its normal merge of current main. Verify exact VCS identity, the documented import-only fail-closed limits, unprivileged read permissions, registry hash preservation, and unchanged reviewer credential boundaries. Submit a formal Reviews API verdict without changing the branch, self-approving, or bypassing protection. |
|
@opencode-agent Please review the exact current head 6e644df after the fail-closed VCS import-layout repair. Preserve the existing reviewer key and protected-merge policy. |
|
Exact-head Strix RCA for |
| case "$import_root" in \ | ||
| "$destination/src/"*) python_root="$destination/src" ;; \ | ||
| *) python_root="$destination" ;; \ | ||
| esac; \ | ||
| printf '%s\n' "$python_root" >>"$path_file"; \ |
There was a problem hiding this comment.
🔍 Flat-layout path file exposes the whole dependency repo root
For a non-src layout, python_root resolves to the checkout root and that entire directory is added via the .pth file (opencode-review-dispatch.yml:797-799). Any top-level module in the fetched repo then joins sys.path and can shadow the product's own modules at test collection. The build rejects namespace roots, symlinks, extensions, and dist metadata, but not sibling top-level names.
Was this helpful? React with 👍 or 👎 to provide feedback.
Outcome
OpenCode coverage can now test a protected base branch whose frozen uv lock contains an exact ContextualWisdomLab Git source dependency. Registry packages remain SHA-256 hash-required, and pull-request code still executes without network access or credentials.
Root cause
LineageWeave PR #355 repeatedly failed before tests because its protected base uv export includes RankWeave at a full Git commit while the central materializer previously accepted registry hash lines only.
Security boundary
Verification
Decision evidence and APA 7th references are recorded in docs/doctoring/opencode-exact-vcs-dependency-evidence.md.
Summary by CodeRabbit
개선 사항
문서
테스트