Skip to content

fix(update): retain completion errors without a lint suppression - #165536

Merged
steipete merged 1 commit into
mainfrom
ci-fix/uir1-update-cause
Oct 5, 2026
Merged

steipete merged 1 commit into
mainfrom
ci-fix/uir1-update-cause

Conversation

@steipete

@steipete steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Hourly 37292375323 failed test/scripts/lint-suppressions.test.ts in job 111705914349 because #165340 (2faa6a0) introduced a 79th suppression in the update command runner, outside the existing 78-entry inventory.

This is a lint regression; both original errors were already retained. Capture the reporting failure before composing the final error: the command failure remains the primary cause, and AggregateError.errors retains both failures. Reporting-only failures retain their original identity, including non-Error thrown values. Successful updates, rollback behavior, and the suppression inventory stay unchanged.

Validation

  • Reproduced the original inventory failure locally: 1 failed, 2 passed; candidate: 3 passed (9.27 s).
  • Local full files: update-runner-command (4 passed, 55.15 s including cold worker compilation), update-runner (4 passed, 25.38 s), update-command-run (46 passed, 72.24 s), update-command-package-doctor (19 passed, 45.93 s).
  • Formatting, targeted type-aware lint, and boundary lint passed.
  • check-changed passed core types, all 27 dependent test type graphs, and the preceding static guards. Its unused-export scan failed on eight production and five full-tree entries in unrelated files; the exact same findings reproduced with this patch removed at base 6ddf5a6. No suppressions or baselines were added. All nine remaining guards passed, including targeted lint and runtime import cycles.
  • Independent P2 review completed scoped-clean.

Linux proof was requested through Blacksmith Testbox. Lease tbx_01m45t1eahx7np91k27nfzj2fm timed out after 15 minutes queued, without executing the payload, and was stopped. This ready PR uses the authorized congestion fallback so natural PR CI can cover the remaining Linux updater-family proof. No workflow reruns or repository settings changes were made.

The catch refactor in 2faa6a0 (#165340) added an unlisted
preserve-caught-error suppression, failing the suppression inventory in
hourly job 111705914349. Both errors were already preserved: the command
failure was primary and the reporting failure was an aggregate member.

Capture the reporting failure before composing the final error so the
command stays the primary cause and both original errors remain available.
Keep the existing suppression inventory and every assertion unchanged.

Validation: suppression inventory before/after, 76 passing focused cases,
core types and all 27 test type graphs, lint and remaining static guards,
and P2 review. Unrelated Knip failures reproduced identically without the
patch. Testbox timed out after 15 minutes queued; use the authorized ready
PR fallback for remaining Linux proof.
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 5, 2026 11:03
@clawsweeper

clawsweeper Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 7:03 AM ET / 11:03 UTC.

ClawSweeper review

What this changes

The PR removes an update-runner lint suppression while preserving the original command and completion-reporting errors.

Merge readiness

✅ Ready for maintainer review

This repair remains necessary: pinned main still contains the unlisted suppression. The introduced change preserves error identities and ordering, and no blocking correctness or security finding was identified.

Priority: P3
Reviewed head: bdaa8fe625b0e6932fba0d03f438f3bad37a2114

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving repair with useful reported regression validation and no actionable patch findings.
Proof confidence 🌊 off-meta tidepool Not applicable: Verified repository-admin authorship exempts this PR from external-contributor proof. The completion-reporting refactor has supplemental before/after lint and updater test results; the queued Linux request did not execute. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Verified repository-admin authorship exempts this PR from external-contributor proof. The completion-reporting refactor has supplemental before/after lint and updater test results; the queued Linux request did not execute. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The complete introduced delta changes only completion-error composition. Successful reporting returns immediately; failed reporting retains the caught value, including undefined or other non-Error values. Combined failures retain the same aggregate members and primary cause.
Current main still needs the repair: Pinned main retains the preserve-caught-error suppression in this function. The suppression inventory test requires an explicit allowlist and contains no entry for this file; the PR removes the directive without changing that inventory.
Suppression contract: The production lint suppression test compares collected directives against its explicit allowlist. Its assertions remain unchanged by this PR.
Findings None None.
Security None None.

How this fits together

The update command runner executes installation steps and reports their completion to progress and recording callbacks. When execution and reporting both fail, it returns an aggregate error with the command failure as the primary cause.

flowchart TD
  A[Update step] --> B[Command runner]
  B --> C[Command outcome]
  C --> D[Completion reporting]
  D --> E{Reporting failed}
  E -->|No| F[Return command outcome]
  E -->|Yes| G[Preserve original failures]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +5. Total +5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 13 8 +5
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 13 8 +5

Review metrics

None.

Technical review

Best possible solution:

Keep one completion-reporting owner that preserves both original failures and satisfies lint without adding an inventory exception.

Do we have a high-confidence way to reproduce the issue?

Yes, source establishes the lint-inventory defect: pinned main adds a production suppression absent from the explicit allowlist. The PR reports a before/after failing regression; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes, the refactor removes the offending suppression while preserving the existing success, reporting-only failure, and combined-failure paths.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6b37a39aa104.

Labels

Label changes:

  • add P3: This is a bounded lint repair with no intended change to update behavior or operator settings.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is a bounded lint repair with no intended change to update behavior or operator settings.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Pinned introduced change: The complete introduced delta changes only completion-error composition. Successful reporting returns immediately; failed reporting retains the caught value, including undefined or other non-Error values. Combined failures retain the same aggregate members and primary cause. (src/infra/update-runner-command.ts:48, bdaa8fe625b0)
  • Current main still needs the repair: Pinned main retains the preserve-caught-error suppression in this function. The suppression inventory test requires an explicit allowlist and contains no entry for this file; the PR removes the directive without changing that inventory. (src/infra/update-runner-command.ts:53, 6b37a39aa104)
  • Suppression contract: The production lint suppression test compares collected directives against its explicit allowlist. Its assertions remain unchanged by this PR. (test/scripts/lint-suppressions.test.ts, bdaa8fe625b0)
  • Verified three-way merge scope: Raw test-merge parents are exactly pinned main followed by pinned PR head. Comparison against the main parent shows the same narrow completion-error change, preserving unrelated main-branch work. (src/infra/update-runner-command.ts:48, 61661c0da609)
  • Related merged history: refactor(async): deslop bounded waits and retry ownership #165340 is verified merged in the supplied GitHub context. Its source patch moved aggregation into the catch and added the suppression; it preserved both errors already. This PR repairs the lint inventory consequence rather than adding previously missing error retention. (src/infra/update-runner-command.ts:43, 2faa6a047fc2)
  • Existing ownership history: Current-main file history includes Peter Steinberger's merged completion-receipt, actionable-error, and async-refactor work, establishing relevant prior involvement beyond authorship of this proposal. A blame attempt failed because a required historical object could not be fetched with HTTP 403; routing therefore uses available log and patch evidence without an introduction claim. (src/infra/update-runner-command.ts, 6b37a39aa104)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 98c200e into main Oct 5, 2026
108 of 109 checks passed
@steipete
steipete deleted the ci-fix/uir1-update-cause branch October 5, 2026 11:09
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
…nclaw#165536)

The catch refactor in e048d84 (openclaw#165340) added an unlisted
preserve-caught-error suppression, failing the suppression inventory in
hourly job 111705914349. Both errors were already preserved: the command
failure was primary and the reporting failure was an aggregate member.

Capture the reporting failure before composing the final error so the
command stays the primary cause and both original errors remain available.
Keep the existing suppression inventory and every assertion unchanged.

Validation: suppression inventory before/after, 76 passing focused cases,
core types and all 27 test type graphs, lint and remaining static guards,
and P2 review. Unrelated Knip failures reproduced identically without the
patch. Testbox timed out after 15 minutes queued; use the authorized ready
PR fallback for remaining Linux proof.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant