Repository navigation
fix(ci): assign secrets tests to one shard - #148933
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
|
Same red main, opposite direction in #148916 (dropping the |
|
I am carrying #137828 through landing; its hosted boundary check hit the same 83 duplicate secrets roots after the two main merges. I have verified this canonical two-line direction preserves the agents-tools owner, and will run the executable boundary guard on the existing isolated native checkout. I will not change this branch while your current review/CI is active. I can carry any remaining fix or native landing gates if needed; keeping this PR canonical and preserving your attribution. Independent native guard completed: on unchanged main Red log SHA256 Native maintainer review is now validated against exact Focused unchanged timeout control passed on native main: 1passed,78deliberately skipped, same test and runtime owner bytes as the candidate. Run https://crabbox.openclaw.ai/portal/runs/run_4047888805f3. This is a diagnostic control, not a substitute for the pending hosted job retry. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 4:47 AM ET / 08:47 UTC. ClawSweeper reviewWhat this changesRemoves duplicate secrets-test assignments from the state/logging typecheck shard while retaining their agents-tools assignment. Merge readiness✅ Ready for maintainer review This remains the canonical, useful repair: fetched main still assigns secrets tests twice, while the proposed change preserves the intended agents-tools owner. No actionable patch defects were found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw partitions test files into compiler groups for CI typechecking. Its boundary guard checks that every test has exactly one group and that groups remain within their size limits. flowchart LR
A[Canonical test files] --> B[Shard configurations]
B --> C[Agents-tools owns secrets tests]
B --> D[State and logging tests]
C --> E[Coverage and size guard]
D --> E
E --> F[CI typechecking]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -2. Total -2 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep secrets tests assigned exclusively to agents-tools and retain the existing coverage, size, and compiler-boundary guards. Do we have a high-confidence way to reproduce the issue? Yes: fetched main includes the same secrets patterns in two shards, and the boundary owner explicitly rejects duplicate assignments. This review verified the source path without executing tests. Is this the best way to solve the issue? Yes: removing the redundant assignment is the narrowest repair and matches the documented maintainer discussion; existing regression coverage already checks the invariant. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4a54a573d56a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
fuller-stack-dev
left a comment
There was a problem hiding this comment.
Reviewed exact d14f731. The two-line deletion retains agents-tools as the sole secrets-test owner and leaves the existing root census, headroom caps, build-info isolation, and compiler dependency-boundary checks intact. Independent native evidence: unchanged c9b49 core boundary fails on83duplicates; exact d14f passes the same command (run_6a5fd48c8312). No actionable source finding.
The unchanged config.patch timeout case also passes the focused native control (run_4047888805f3). This approval is source review, not a waiver of required hosted CI or native preparation/landing gates; the failed hosted job still needs its retry after the workflow settles. Canonical direction and contributor attribution preserved.
Evidence: #148933 (comment)
|
Source-adoption update: the intended graph correction is already on main via #148826 in 0cd944c. At main This clears the source prerequisite for #148946. Leaving this PR's branch, CI, and closeout to its active owners; no retry, cancellation, or closure performed here. |
## What Problem This Solves Long foreground `exec` calls abort the whole turn after about 15 minutes despite a longer command timeout. Closes #144514. Thanks @vicvinc for the reports and @alvinveroy for the trace in #144574. ## Why This Change Was Made The process supervisor is the only mechanism that decides when the command expires; this state has one writer. Exec passes the supervisor's accepted deadline to run activity after preparation. Recovery adds its existing stalled-tool window so process expiry can return a tool error before whole-turn recovery is considered. The final recovery reader rechecks a deadline published after recovery was queued. Explicit cancellation and recovery of commands without an accepted deadline remain enabled. ## User Impact Long commands can finish. Process expiry returns a tool error the turn can handle. Cancellation and genuine-hang recovery remain enabled. ## Evidence Isolated Gateway, deterministic loopback provider, direct tools, `process` denied, default recovery timers: `pnpm openclaw gateway run --port 19463 --bind loopback` `pnpm openclaw agent --agent proof --message 'Run the foreground timeout fixture' --timeout 1800 --json` Baseline `0945dabbe487213e95e84a72ad1aae3659e0e000`: `sleep 970` with `timeoutSeconds:1400` aborted at 918s. Its failure JSON, recovery logs and transcript remain; the baseline shell exit receipt was lost during an interruption. Built and running correction `b410a592eec3a2c63bd18cdaa75dc29248e4bd40`: the same command completed in 970556 ms, delivered its tool result to the provider, and returned the final answer to the caller (exit 0). Short expiry returned a timeout tool result and final answer (exit 0). No-deadline hang recovery fired at 928s (exit 1). Background expiry also reached a final answer (exit 0). The queued-recovery regression fails on `174d929a` and passes on the correction. The earlier successful live run used ancestor `1da1270`; it is retained as ancestor evidence. 219 tests passed on local merge `006e0ee7`, combining this correction with main `55947755` and repair #148933 (`d14f731e`). Main already contained the repair's effect; its local merge changed no files. This proof includes the full exactly-once test-root suite. The repair merge is excluded from this PR. ## Compatibility The change adds an optional, read-only deadline reference to internal diagnostic metadata. The public event payload and declared public metadata fields remain unchanged. Existing diagnostic listeners continue to work. The reference is in-memory only and requires no configuration or stored-data migration. ## Consumers Foreground gateway/sandbox exec and shared recovery, takeover, and admission checks. ## Invalidation Closed invocations reject updates; terminal events retire activity. ## Tests 219 owner/sibling and partition tests passed on the recorded merge. The hosted command selects the new recovery test once; all three cases pass. Locked type preflight, changed-file lint, formatting, line and assertion checks, and dead-export checks passed. No production import or export moved in this correction. <details> <summary>Production growth: +133 lines</summary> Growth accepted under the owner's standing acceptance (2026-09-15). | File | Net lines | Responsibility | | --- | ---: | --- | | `agent-tools.before-tool-call.diagnostics.ts` | +24 | Start lifecycle diagnostics | | `agent-tools.before-tool-call.wrapper.ts` | -2 | Invocation scope and closure | | `bash-tools.exec-runtime.ts` | +2 | Publish accepted deadline | | `diagnostic-events.ts` | +12 | Private metadata handoff | | `diagnostic-tool-execution-liveness.ts` | +69 | Invocation-owned reference | | `diagnostic-run-activity-snapshot.ts` | +9 | Existing recovery window | | `diagnostic-run-activity.ts` | +11 | Retain the live reference | | `diagnostic-stuck-session-recovery.runtime.ts` | +1 | Recheck the current deadline before abort | | `supervisor.ts` | +5 | Project the armed deadline | | `types.ts` | +2 | Read-only deadline contract | </details> Co-authored-by: Ayaan Zaidi <[email protected]>
…aw#148959) ## What Problem This Solves Long foreground `exec` calls abort the whole turn after about 15 minutes despite a longer command timeout. Closes openclaw#144514. Thanks @vicvinc for the reports and @alvinveroy for the trace in openclaw#144574. ## Why This Change Was Made The process supervisor is the only mechanism that decides when the command expires; this state has one writer. Exec passes the supervisor's accepted deadline to run activity after preparation. Recovery adds its existing stalled-tool window so process expiry can return a tool error before whole-turn recovery is considered. The final recovery reader rechecks a deadline published after recovery was queued. Explicit cancellation and recovery of commands without an accepted deadline remain enabled. ## User Impact Long commands can finish. Process expiry returns a tool error the turn can handle. Cancellation and genuine-hang recovery remain enabled. ## Evidence Isolated Gateway, deterministic loopback provider, direct tools, `process` denied, default recovery timers: `pnpm openclaw gateway run --port 19463 --bind loopback` `pnpm openclaw agent --agent proof --message 'Run the foreground timeout fixture' --timeout 1800 --json` Baseline `05652685fef2eac618cf75ba95bb3284f04ebb7c`: `sleep 970` with `timeoutSeconds:1400` aborted at 918s. Its failure JSON, recovery logs and transcript remain; the baseline shell exit receipt was lost during an interruption. Built and running correction `b410a592eec3a2c63bd18cdaa75dc29248e4bd40`: the same command completed in 970556 ms, delivered its tool result to the provider, and returned the final answer to the caller (exit 0). Short expiry returned a timeout tool result and final answer (exit 0). No-deadline hang recovery fired at 928s (exit 1). Background expiry also reached a final answer (exit 0). The queued-recovery regression fails on `174d929a` and passes on the correction. The earlier successful live run used ancestor `1da1270`; it is retained as ancestor evidence. 219 tests passed on local merge `006e0ee7`, combining this correction with main `fd5aaff9` and repair openclaw#148933 (`d14f731e`). Main already contained the repair's effect; its local merge changed no files. This proof includes the full exactly-once test-root suite. The repair merge is excluded from this PR. ## Compatibility The change adds an optional, read-only deadline reference to internal diagnostic metadata. The public event payload and declared public metadata fields remain unchanged. Existing diagnostic listeners continue to work. The reference is in-memory only and requires no configuration or stored-data migration. ## Consumers Foreground gateway/sandbox exec and shared recovery, takeover, and admission checks. ## Invalidation Closed invocations reject updates; terminal events retire activity. ## Tests 219 owner/sibling and partition tests passed on the recorded merge. The hosted command selects the new recovery test once; all three cases pass. Locked type preflight, changed-file lint, formatting, line and assertion checks, and dead-export checks passed. No production import or export moved in this correction. <details> <summary>Production growth: +133 lines</summary> Growth accepted under the owner's standing acceptance (2026-09-15). | File | Net lines | Responsibility | | --- | ---: | --- | | `agent-tools.before-tool-call.diagnostics.ts` | +24 | Start lifecycle diagnostics | | `agent-tools.before-tool-call.wrapper.ts` | -2 | Invocation scope and closure | | `bash-tools.exec-runtime.ts` | +2 | Publish accepted deadline | | `diagnostic-events.ts` | +12 | Private metadata handoff | | `diagnostic-tool-execution-liveness.ts` | +69 | Invocation-owned reference | | `diagnostic-run-activity-snapshot.ts` | +9 | Existing recovery window | | `diagnostic-run-activity.ts` | +11 | Retain the live reference | | `diagnostic-stuck-session-recovery.runtime.ts` | +1 | Recheck the current deadline before abort | | `supervisor.ts` | +5 | Project the armed deadline | | `types.ts` | +2 | Read-only deadline contract | </details> Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #148885 and #148889.
What Problem This Solves
Main CI's core test boundary check fails because 83 secrets test roots are assigned to both agents-tools and state-logging. A later shard change duplicated the earlier move.
User Impact
No runtime change. Restores the existing CI check while preserving test coverage and shard limits.
Why This Change Was Made
Keep agents-tools as the sole owner of secrets tests, as confirmed in the maintainer discussion. Remove only the two duplicate include lines from state-logging. Production delta: zero; one test configuration file, two deleted lines.
Evidence
d14f731e5e14a95ccde27efb483343711a7314f1. Current CI attempt 2 and its new aggregate gate passed.95dc99d32fddff020572968fc398ac2a01bee04c(d14 + captured main c9). Original Node 24.19/worker cap 2 differed from rerun Node 24.20.0/worker cap 3, with rerun plan concurrency 1. This is one non-reproduction, not a fixed-cause or identical-environment claim; the original packed plan was not retained for byte comparison.git diff --checkpassed. The repository formatter intentionally excludes JSON files; formatting is not applicable.