Repository navigation
fix(scripts): bound android-release-signing exec operations - #110822
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 7:38 AM ET / 11:38 UTC. ClawSweeper reviewWhat this changesThe PR routes Android release-signing Git and OpenSSL subprocesses through a private synchronous helper that kills commands after 120 seconds and emits a redacted timeout error. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep this PR open. The patch is a focused, apparently correct reliability hardening for the Android signing workflow, but the available PR text supplies tests and CI claims rather than inspectable redacted after-fix runtime output; that remains the merge gate. The branch is also behind current Priority: P2 Review scores
Verification
How this fits togetherThe Android release-signing script synchronizes encrypted signing material by invoking Git and OpenSSL. The added helper sits between that script and Node’s synchronous child-process API, turning indefinitely stalled commands into bounded release-workflow failures. flowchart LR
A[Signing manifest and encrypted repository] --> B[Android signing sync script]
B --> C[Bounded process helper]
C --> D[Git or OpenSSL command]
D --> E{Completes within 120 seconds?}
E -->|Yes| F[Continue signing sync]
E -->|No| G[Kill process and return redacted error]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +14, Other +40. Total +54 across 4 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Post a redacted terminal transcript or runtime log from the disposable signing-repository flow that shows a successful sync/materialization through the helper and a bounded timeout case, then refresh validation against the current merge result before landing. Do we have a high-confidence way to reproduce the issue? Yes from source, with medium confidence: invoking the helper on a child that never exits exercises its timeout path, and the added regression test uses exactly that mechanism. The supplied context does not provide an independently inspectable live signing-flow transcript. Is this the best way to solve the issue? Yes, provisionally: one private helper is the narrowest way to keep both existing signing command call shapes bounded without publishing a broader process API. The remaining question is proof of the real disposable-repository path and the current merge result, not an alternate implementation design. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 20eda756fae6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
bfec248 to
c1eba30
Compare
33663b7 to
5fe8d6a
Compare
cde4d66 to
77a42ad
Compare
339f7a3 to
fa9ae68
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: wanyongstar <[email protected]>
|
Merged via squash.
|
…#110822) * fix(scripts): bound android-release-signing exec operations * fix(scripts): test Android signing timeouts Co-authored-by: wanyongstar <[email protected]> * fix(scripts): keep signing timeout internal * docs(scripts): clarify signing timeout scope * test(agents): isolate transport timeout proof --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Android release-signing sync used unbounded synchronous child processes. A stalled
git,openssl, or related executable could therefore block the release lane indefinitely.Why This Change Was Made
All external signing commands now run through one declared process helper with a 120-second deadline and
SIGKILLtermination. The helper preserves the existing cwd, environment, stdio, and text-encoding behavior used by both command call shapes. The production deadline constant stays module-private so the helper does not accidentally publish an unsupported API surface.Node 24 documentation and v24.18.0 source were checked directly, then reverified against the current Node 26.5.0 API docs, source, and installed
@types/node:execFileSyncforwardstimeoutandkillSignaltospawnSync; the sync runner validates both, recordsETIMEDOUT, signals the child, and returns the underlying result.SIGKILLprevents a hung child from intercepting the deadline. This helper is private to the signing-sync script and wraps only Git plus small OpenSSL operations; Gradle and Fastlane release builds use separate entrypoints. A timed-out signing command is reported as:Only the executable name is included, not arguments or environment values, so signing secrets cannot be copied into the error. The original Node error remains attached as
cause.User Impact
Hung Android signing tools fail within a bounded deadline instead of consuming the release worker forever. Successful signing, encrypted-repository sync, and materialization behavior are unchanged.
Evidence
Prepared head:
02cdd7b617c98b14907e7e14e1d159c0d3345dbb.test/scripts/android-release-signing.test.ts: 17/17 passed locally and on Blacksmith Testbox.tbx_01kym5vn5bjdx4xpa0j4f77twf(run 30352715168) passed Knip production/full/script unused-export scans, 244 script declaration contracts, script typecheck, and the focused signing suite on the patch-identical signing diff.agentic-agents-core-modelsproof on Testboxtbx_01kym5nc7qsb1s7gcbwh92e4ce(run 30352485418) passed 53 files / 1,204 tests in 103 seconds while validating the canonical current-main repair inherited from fix: stop model transport tests from stalling CI #115139.git diff --checkpassed.02cdd7b617c98b14907e7e14e1d159c0d3345dbb, including the repaired model shard andopenclaw/ci-gate.The broader successful path uses a temporary encrypted signing repository and exercises both fire-and-forget and text-returning command paths through the bounded helper without printing the test passwords.
ClawSweeper Rank-up Moves
The text-returning success path is covered by the full sync-push/sync-pull/materialize regression above. A live run against the real private Android signing repository was intentionally not performed: it would use production signing material and mutate an operational repository, which is outside a code-landing proof. No release credentials or signing artifacts were used, printed, or changed.
Earlier exact-head runs hit the shared bare-Ubuntu ripgrep fixture failure and an embedded-agent no-output stall; those generic repairs landed through #115035 and #110425. A later run exposed a current-main test-ownership bug where an SDK request-option test spent 77 seconds cold-loading provider plugins. That repair landed independently in #115139 while this PR was being prepared. The final merge takes the canonical
maintest byte-for-byte, so this PR remains a four-file signing change.