Repository navigation
fix(scripts): bound dependency pin git lookups - #110570
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 12:45 PM ET / 16:45 UTC. ClawSweeper reviewWhat this changesThe PR gives the dependency-pin validation script a fixed one-minute timeout for its tracked-manifest Git lookups, reports the stalled command, and tests termination of hanging Git children. Merge readinessKeep this active PR open for maintainer review. The patch cleanly bounds the two existing Git reads used by the dependency-pin guard, preserves its fixed command arguments and sparse-index path, includes declaration coverage and SIGTERM-resistant-child regression tests, and has terminal evidence of the after-fix outcome. It is not already implemented on current main through a merged PR; the current head is mergeable but behind main, with required checks still running. Priority: P2 Review scores
Verification
How this fits togetherThe dependency-pin guard is a repository script used by developers and CI to inspect tracked package manifests and reject non-pinned dependencies. It calls Git to list manifest files and read index-only manifests, then returns violations or a clear process failure to the calling check. flowchart LR
A[Repository checkout] --> B[Dependency pin guard]
B --> C[Git manifest lookup]
C --> D[Manifest parser]
D --> E[Pin validation]
E --> F[Developer or CI result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +43, Other +22. Total +65 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the fixed one-minute, non-configurable Git timeout and command-specific error, then land the PR only after its current three-way merge result and required checks are validated against main. Do we have a high-confidence way to reproduce the issue? Yes, by substituting a Git executable that never returns for either existing lookup; the PR's focused fixture and terminal proof exercise that boundary with a short timeout. Is this the best way to solve the issue? Yes. A fixed timeout at the common Git execution boundary covers both lookup paths without adding an operator setting or duplicating subprocess handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cc2ba806398c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
0c90511 to
b8b5ff0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
959f554 to
ca0e6bb
Compare
ca0e6bb to
fded35d
Compare
Bound both dependency-pin Git subprocesses and terminate SIGTERM-resistant children. Preserve sparse-index reads, Windows-native Git, exact timeout errors, and script declaration contracts. Co-authored-by: RileyJJY <[email protected]>
|
Merged via squash.
|
* origin/main: (446 commits) fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285) fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927) fix(test): isolate plugin install fixtures (openclaw#116008) fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729) fix(sms): isolate validated webhook quotas per sender (openclaw#104862) fix(sessions): recover deleted chats without endless retries (openclaw#115974) fix(restart): log errors from restart hook callbacks instead of swallowing (openclaw#108847) feat(ui): enable tool-loop detection from Labs (openclaw#115983) fix(telegram): catch unhandled rejections in webhook and ingress worker shutdown (openclaw#100998) fix(memory): keep rollbacks compatible after recall metadata upgrade (openclaw#116003) fix(ui): derive cron timezone suggestions (openclaw#115973) fix(scripts): bound dependency pin git lookups (openclaw#110570) fix(skills): preserve configless workshop apply upgrades (openclaw#115982) fix(gateway): cancel unread cron webhook bodies before SSRF release (openclaw#111236) fix(voice-call): pin Twilio webhook verification to the configured public path (openclaw#112800) fix(memory): make legacy session backfill rollback re-applicable (openclaw#116004) fix(security): fence external hook job name in isolated-agent prompts (openclaw#112501) fix(channels): mark durable webhook acceptance on Zalo, Google Chat, SMS, Feishu, Nextcloud Talk, and Synology Chat (openclaw#115586) fix(test): restore stdin TTY descriptors (openclaw#115985) fix(plugins): remove incorrect modifying hook timeout fallback in getClaimingHookTimeoutMs (openclaw#107996) ... # Conflicts: # extensions/openai/realtime-quicksilver-wire.ts
* origin/main: (683 commits) fix(discord): bound webhook send body reads (openclaw#109076) fix(ui): preserve initials for missing user avatars (openclaw#115976) feat(ui): add provider icons to coding catalogs (openclaw#115956) fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285) fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927) fix(test): isolate plugin install fixtures (openclaw#116008) fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729) fix(sms): isolate validated webhook quotas per sender (openclaw#104862) fix(sessions): recover deleted chats without endless retries (openclaw#115974) fix(restart): log errors from restart hook callbacks instead of swallowing (openclaw#108847) feat(ui): enable tool-loop detection from Labs (openclaw#115983) fix(telegram): catch unhandled rejections in webhook and ingress worker shutdown (openclaw#100998) fix(memory): keep rollbacks compatible after recall metadata upgrade (openclaw#116003) fix(ui): derive cron timezone suggestions (openclaw#115973) fix(scripts): bound dependency pin git lookups (openclaw#110570) fix(skills): preserve configless workshop apply upgrades (openclaw#115982) fix(gateway): cancel unread cron webhook bodies before SSRF release (openclaw#111236) fix(voice-call): pin Twilio webhook verification to the configured public path (openclaw#112800) fix(memory): make legacy session backfill rollback re-applicable (openclaw#116004) fix(security): fence external hook job name in isolated-agent prompts (openclaw#112501) ... # Conflicts: # CHANGELOG.md # src/agents/tool-search-catalog.ts # src/agents/tool-search.test-support.ts # src/agents/tool-search.ts
* fix(scripts): bound dependency pin git lookups * fix(scripts): address dependency pin review * Update dependency pin helper types * fix(scripts): terminate stalled dependency pin Git commands Bound both dependency-pin Git subprocesses and terminate SIGTERM-resistant children. Preserve sparse-index reads, Windows-native Git, exact timeout errors, and script declaration contracts. Co-authored-by: RileyJJY <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where the dependency pin guard could hang indefinitely when Git stopped returning tracked package manifests or index-backed package JSON.
Why This Change Was Made
The dependency pin checker now applies a fixed one-minute timeout to its
git ls-filesandgit show :...subprocesses and reports the stalled Git command. Focused tests inject a shorter timeout through the existing module boundary without adding an operator-facing environment setting.User Impact
Developers and CI jobs get a clear dependency-pin failure instead of a stuck validation step.
Evidence
node scripts/run-vitest.mjs test/scripts/check-dependency-pins.test.ts— 5 tests passed, including the portable stalled-Git fixture.collectDependencyPinViolationswith both a completing and stalled Git boundary:proof-dependency-pins-timeout.mjs
AI-assisted: built with Codex