Repository navigation
fix(ci): keep admitted Testboxes alive and enforce current workflow limits - #163021
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 10:48 PM ET / October 2, 2026, 02:48 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR stops queue-expiry checks from terminating admitted Testboxes after checkout and makes the OpenClaw wrapper select current main-branch workflows while preserving the source revision being tested. Merge readiness✅ Ready for maintainer review The repair remains necessary on current main. The recorded maintainer acceptance resolves the previous compatibility blocker, and no actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherTestboxes provide remote machines for OpenClaw validation. The wrapper transfers the selected checkout, while GitHub admission, job deadlines, and provider idle limits govern allocation and lifetime. flowchart TD
A[Validation request] --> B[OpenClaw wrapper]
B --> C[Current workflow selection]
C --> D[Queue admission check]
D --> E[Checkout and hydration]
B --> F[Selected source capsule]
E --> G[Remote validation]
F --> G
G --> H[Job and idle deadlines]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +91, Docs +11, Config -8, Other +13. Total +107 across 12 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep allocation on maintained workflows while testing the selected source capsule, with queue admission separate from admitted job and idle lifetimes. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main admits a request before checkout and then rechecks the same deadline during configure, allowing checkout duration to invalidate admitted work. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. Removing the redundant post-checkout check preserves bounded lifetime controls, and workflow selection uses the existing wrapper and source-capsule owners under the accepted compatibility policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 949f3f52121b. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Fixes Testbox leases expiring during checkout after admission, and updated wrapper calls allocating historical workflows that bypass the spending limits.
User Impact
Routine proof keeps the 16-class, 60-minute job limit and 15-minute idle ceiling. Testbox
runandwarmupuse workflow refmain; explicit historical workflow refs fail with recovery guidance. The source capsule still installs and tests the selected checkout. Explicit high-memory workflow/job selection remains available.Maintainer decision (2026-10-02): accept the documented rejection of explicit historical Testbox workflow refs and override of configured historical refs. This is intentional spending-policy enforcement; historical source remains testable through the selected local checkout and source capsule.
Why This Change Was Made
Check queue age before checkout, then let the job and idle deadlines govern admitted work. Enforce the maintained workflow ref before capturing the lease receipt, respecting the final flag value and the boundary between options and payload arguments.
This applies to the updated OpenClaw wrapper. Raw callers, old wrappers and alternate workflows still require provider-side controls. Native Crabbox also needs claim-bound cancellation of newly allocated leases that remain queued beyond ten minutes; this PR does not implement a second lease watcher.
Related: #162678
Evidence