Skip to content

test: align directive-tag and apply-patch expectations with current behaviour - #185037

Merged
steipete merged 1 commit into
mainfrom
steipete/test-align-directive-tags-apply-patch-20261026
Oct 26, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/test-align-directive-tags-apply-patch-20261026

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Four assertions on main still expect the messages from before #184702 and #184901, failing the directive-tag and worker runtime CI suites.

User Impact

No user-visible or production change. This maintainer-requested repair aligns only test expectations with the intended behavior of those merged fixes.

Why This Change Was Made

The ACP expected-message helper now includes the exact default provider/model selection introduced by #184702 (27b94d43e124). The worker permission suite expects the full root-escape error and recovery guidance introduced by #184901 (c0ffba6e18a3). Both source PRs and their production changes were inspected to confirm intent.

Full message equality remains in place. The default and guarded worker cases still assert the exact error payload, unchanged outside-file contents and permissions, and separation of operator-only containment hints. The smallest-change pass left two test helpers changed: 3 insertions, 1 deletion, zero production changes.

Evidence

On fetched main 7b6e7bb7c77815f8bcd5019c1e72d0fdac9b4f99, the repository Vitest runner reproduced exactly two ACP failures and two containment-owner failures, matching CI run 40399472579. The other 199 tests passed.

After the expectation updates:

  • node scripts/run-vitest.mjs src/gateway/server-methods/chat.directive-tags.test.ts src/worker/worker.runtime.test.ts --maxWorkers=1: all 203 tests passed; reported file durations 32.33s and 53.46s. Existing full suites were retained; no test setup or runtime was added.
  • Targeted Gateway methods and Gateway/worker test typecheck leaves passed, as did scoped lint, formatting, and git diff --check.
  • Isolated Codex autoreview: scoped-clean through P2, no accepted/actionable findings.

Exact-head CI run 40403120450, head 43236d1f12b2832b8d0cd84f3d8d5d2c312ff8af:

  • checks-node-changed-compact-large-12: success; all 134 directive-tag tests passed (104.88s file duration, 184s total job).
  • checks-node-changed-10: success; all 69 worker runtime tests passed (77.51s file duration, 576s total job including two companion files). The narrower PR plan groups this suite here instead of the original failing compact-small-13 job.

Both repaired suites passed without CI retries. This PR is intentionally ready and unmerged.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Oct 26, 2026
@steipete
steipete marked this pull request as ready for review October 26, 2026 21:17
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-26T21:17:40.137489Z 43236d1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 26, 2026 21:32
@steipete
steipete merged commit f20ea75 into main Oct 26, 2026
206 of 208 checks passed
@steipete
steipete deleted the steipete/test-align-directive-tags-apply-patch-20261026 branch October 26, 2026 21:33
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant