Skip to content

fix(ci): unblock Rust workspace Clippy checks - #182269

Merged
steipete merged 1 commit into
mainfrom
steipete/redmain-node-session-clippy
Oct 24, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/redmain-node-session-clippy

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the Rust workspace CI check failing on main and PRs because one signed-connect integration test exceeds Clippy's 100-line limit. This is a maintainer-requested red-main repair.

User Impact

No user-visible behavior change. Rust workspace checks can complete without weakening lint policy or test assertions.

Why This Change Was Made

Split product-field preservation and invalid-manifest rejection into focused tests, sharing the signed envelope and loopback WebSocket setup in this test file. All 12 cases and all six original assertion expressions are preserved. No production code, dependencies, Clippy configuration, or lint allowances change.

git log -L identifies 6f88c26dcf823a6d5c99a6053316829edc1a6512 (#182109) as the first-bad change: protocol-v5 compatibility coverage grew the function from 84 to 113 source lines, counted by Clippy as 111/100. The two focused tests are now 52 and 23 source lines.

Evidence

Base: 9b3bf2295c2d2b17b8330f459d3bc461577f17e7. The reported failed job is reproduced locally.

  • CI's workspace Clippy command fails before the change with exit 101 and node_session.rs:1105: this function has too many lines (111/100); passes after the change with exit 0.
  • Focused node_session suite: 10 passed before → 11 passed after, no failures or ignored tests. Test execution is 0.02 s in both runs; the warm post-change command compiled in 2.38 s. CI timing is pending.
  • Workspace formatting and git diff --check pass.
  • Independent Codex autoreview at P0–P2: scoped-clean, with no accepted/actionable findings; all 12 cases and assertion preservation confirmed.
  • Author simplification pass complete: production LOC delta 0; one test file grows by 18 lines to separate responsibilities while sharing setup.

Commands from the repository root, using the workflow's Rust 1.99.0 toolchain:

cargo +1.99.0 clippy --manifest-path crates/Cargo.toml --workspace --locked --all-targets -- -D warnings
cargo +1.99.0 test --manifest-path crates/Cargo.toml -p openclaw-node-host --test node_session --locked
cargo +1.99.0 fmt --manifest-path crates/Cargo.toml --all
cargo +1.99.0 fmt --manifest-path crates/Cargo.toml --all -- --check
git diff --check

Locally, rustup run 1.99.0 cargo ... selected the same toolchain because Homebrew's standalone Cargo does not process the +1.99.0 selector. Cargo caches, build output, and the toolchain were isolated outside the checkout on the external volume.

Split signed-connect field preservation and invalid-manifest rejection into focused integration tests. Preserve all 12 cases and assertions with shared local setup.

The protocol-v5 coverage in 6f88c26 (#182109) grew the combined test past the 100-line Clippy limit.
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

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 ✅ Completed 2026-10-24T05:27:16.381645Z cb5b6f7 PR opened
ℹ️ 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 merged commit d5b3e03 into main Oct 24, 2026
84 checks passed
@steipete
steipete deleted the steipete/redmain-node-session-clippy branch October 24, 2026 05:33
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 25, 2026
…limit (openclaw#182269)

Split signed-connect field preservation and invalid-manifest rejection into focused integration tests. Preserve all 12 cases and assertions with shared local setup.

The protocol-v5 coverage in 18900ac (openclaw#182109) grew the combined test past the 100-line Clippy limit.
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