Repository navigation
fix(ci): prepare kernel memory containment for semantic checks - #160014
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: blocked before merge. Reviewed September 28, 2026, 4:40 AM ET / 08:40 UTC (Revision 9). ClawSweeper reviewWhat this changesThe branch adds an opt-in Linux kernel-memory probe to shared Node setup, enables it in selected CI jobs, and adds a workflow-pinned helper for older release tags, tests, and operator guidance. Merge readiness⛔ Blocked before merge - 3 items remain Current main still lacks this CI prerequisite, and the branch remains useful. The reviewed source and prior Linux proof support the setup change; the fail-closed effect on custom release runners needs an explicit CI owner decision before merge. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw CI selects a runner and source revision before shared Node setup prepares lint, compiler, test, and release jobs. Opted-in Linux setup now verifies a memory-limited user scope before those jobs continue. flowchart TD
A[CI or release job] --> B[Select runner and source]
B --> C{Semantic setup enabled?}
C -- No --> F[Ordinary Node setup]
C -- Yes --> D[Trusted Linux setup]
D --> E{Memory scope enforced?}
E -- Yes --> G[Run checks]
E -- No --> H[Setup error]
Decision needed
Why: The branch deliberately changes an existing runner contract; Linux proof on a qualified runner cannot establish whether current custom groups are ready or whether their operator disruption is acceptable. Before merge
Agent review detailsSecurityNone. PR surfaceTests +104, Docs +14, Config +78. Total +196 across 12 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep kernel qualification in trusted shared setup and the workflow-pinned tagged helper, while certifying release runner groups and approving the documented operator fallback before rollout. Do we have a high-confidence way to reproduce the issue? Not applicable to this prerequisite PR. The linked issue records a controlled memory-limit failure, while this branch prepares CI runners and does not activate compiler or lint caps. Is this the best way to solve the issue? Yes for the setup boundary: one shared action handles selected-source jobs, and a pinned helper covers older tags. The custom-runner compatibility choice still needs owner acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b140acb1ea3b. LabelsLabel changes: No label changes. Label 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 (8 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head Blacksmith Testbox run verified six source/dependency hashes, parsed workflow equality (only check-plan's semantic input changed), all seven setup contracts, the focused size guard, workflow validation, formatting, and whitespace. Command exit 0; the one-shot lease was then stopped normally. Independent P0–P2 review is clean. The PR body now carries the consolidated proof and limitations. |
|
🦞👀 Re-review progress:
|
490129b to
f855eb1
Compare
|
@clawsweeper re-review Rebased onto main with the previously blocking fixture repairs. Exact head f855eb1 passed fresh focused remote proof and independent P0-P2 review; evidence is in the PR body. |
|
🦞👀 Re-review progress:
|
f855eb1 to
0edcfe5
Compare
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
|
Reviewed the custom-runner rank-up move against the effective repository configuration and exact-head CI. At 2026-09-28 08:46 UTC, the repository has no Both active runner routes passed the opted-in setup on reviewed head
The setup step includes the actual 64 MiB cgroup probe, zero swap, and group OOM policy. The earlier focused real-run proof remains patch-identical across this rebase. Disposition: the configured routes are qualified. Keep the documented capability check as a prerequisite for any future custom-group enrollment; no unknown host is provisioned and no existing custom-group rollout is part of this PR. This satisfies the current deployment concern without weakening containment. Activation of semantic command limits remains in separate PRs. |
…law#160014) Prepare and verify the Linux systemd/cgroup memory backend for selected semantic CI jobs, including workflow-pinned qualification of older release tags. Exact-head hosted checks pass. Active GitHub and Blacksmith routes passed the real probe; no custom release group is configured. Future custom enrollment prerequisites are documented. Related: openclaw#160010
Related: #160010
What Problem This Solves
Lint and compiler checks need a verified Linux containment backend before they can enforce aggregate memory limits, including compiler inventory during CI planning.
Result
Selected semantic CI jobs prepare a systemd user manager and verify an actual 64 MiB cgroup, zero swap allowance, and group OOM policy. Ordinary Node setup stays unchanged. This prerequisite does not itself activate lint/compiler limits.
Shared setup keeps the probe inline for selected-source callers. Tagged npm preflight uses an identical workflow-SHA-pinned helper so old release tags also receive qualification; a contract test prevents drift. Shared YAML inputs keep the workflow below its unchanged 480,000-byte guard.
Validation
Reviewed head:
0edcfe55d6614e00e2d537bf05f6e21ab142dd33, patch-identically rebased onto40019980f2687648942b0788fb8523fef58ff7ff.OPENCLAW_RELEASE_RUNNER_GROUPis configured, and these jobs have no environment override. Active GitHub/Blacksmith routes are qualified. This does not claim that no organization groups exist; their inventory was inaccessible.docs/ci.mddocuments provisioning and restoration of ordinary routing by unsetting the override. No configured custom fleet is migrated by this PR.Production/tooling +113/-35; tests +122/-18; docs +14/-0. Growth supplies runner qualification and its contracts. No CodeQL suppression, queue-policy change or raised workflow-size limit.