Repository navigation
fix(ci): prevent systemd shim timing flakes - #143134
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 September 9, 2026, 10:00 AM ET / 14:00 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR gives systemd inspection calls in two integration tests a 30-second budget so slow Node fixture startup does not cause false failures. Merge readiness✅ Ready for maintainer review The PR remains useful: current main and the latest release retain the fixture timing exposure. No actionable correctness or security finding remains, and the previous review recorded no findings. Priority: P3 Review scores
Verification
How this fits togetherThe Docker tooling tests simulate Linux service-manager responses with a Node-based busctl fixture. OpenClaw's service reader consumes those responses, and the tests verify installed-service details, missing units, and inspection failures. flowchart LR
A[Test unit files] --> B[Node busctl fixture]
C[Test read budget] --> D[Service manager reader]
B --> D
D --> E{Inspection result}
E --> F[Service details]
E --> G[Missing or unavailable]
F --> H[Test assertions]
G --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep fixture startup tolerance local to these semantic integration tests while retaining the production deadline and independent timeout coverage. Do we have a high-confidence way to reproduce the issue? Yes, conditionally: Node fixture startup exceeding the first approximately 1.67-second slice produces the reported inspection error. Source supports that mechanism and the author reports reproducing it twice; this read-only review did not rerun it. Is this the best way to solve the issue? Yes. An existing per-call option accommodates fixture startup without changing production behavior, removing assertions, or replacing synchronization with sleeps; deadline semantics retain separate coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e1370779eaa7. LabelsLabel 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.
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
What Problem This Solves
Fixes an issue where the tooling Docker test shard could fail while inspecting a
missing systemd unit when host load made the Node-based
busctlfixture exceedthe production deadline's first per-call slice.
Why This Change Was Made
The affected integration tests now pass an explicit 30-second manager-read
budget to their Node-shim-backed calls. Production systemd deadlines, fixture
behavior, and all result assertions remain unchanged.
User Impact
CI no longer reports a false systemd inspection failure when the test fixture's
Node process starts slowly. There is no runtime product behavior change.
Evidence
Effective systemd service command could not be inspected.non-reproducing first-run failure elsewhere in the file.
which rejected the shared
node_modulessymlink before compilation.tsgoreported no errors in the edited file.git diff --checkis clean.