Skip to content

Fix broken mock closure arity blocking CI on master - #15923

Closed
joeywangzr wants to merge 1 commit into
masterfrom
joey/fix-list-ambient-agent-tasks-mock
Closed

Fix broken mock closure arity blocking CI on master#15923
joeywangzr wants to merge 1 commit into
masterfrom
joey/fix-list-ambient-agent-tasks-mock

Conversation

@joeywangzr

@joeywangzr joeywangzr commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

master fails to compile its test target: AIClient::list_ambient_agent_tasks gained a third parameter in #15811, but one mock closure in orchestration_event_streamer_tests.rs was never updated to match:

error[E0593]: closure is expected to take 3 arguments, but it takes 2 arguments
  --> app/src/ai/blocklist/orchestration_event_streamer_tests.rs:1742:14

This blocks Formatting + Clippy and Run tests CI (all platforms) for every PR based on current master. Confirmed by building a clean master checkout in isolation, no other changes applied.

Fix: |_, _||_, _, _| on the closure, which returns a canned error regardless of input.

Linked Issue

No linked GitHub issue; urgent trunk-CI fix.

Testing

  • cargo check -p warp --tests --lib passes
  • cargo nextest run -p warp repeated_viewer_registration_starts_one_ancestor_seed_fetch passes
  • cargo fmt --check and cargo clippy --all-targets -- -D warnings pass
  • ./script/run not applicable — one-line test-only fix

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-NONE

Co-Authored-By: Warp agent@warp.dev

`AIClient::list_ambient_agent_tasks` gained a third parameter
(`request_team_scope: Option<RequestTeamScope>`) in #15811, but one
mock closure in `repeated_viewer_registration_starts_one_ancestor_seed_fetch`
was not updated to match, breaking the build:

error[E0593]: closure is expected to take 3 arguments, but it takes 2 arguments

This is a hard compile error in the `warp` crate's test target, so it
currently fails Formatting + Clippy and Run tests CI jobs on every
platform for any PR based on current master.

Co-Authored-By: Warp <agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Sep 10, 2026
@warp-for-oss

warp-for-oss Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@joeywangzr

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss warp-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR updates the MockAIClient::expect_list_ambient_agent_tasks closure in orchestration_event_streamer_tests.rs to match the current three-argument AIClient::list_ambient_agent_tasks signature.

Concerns

  • No blocking concerns found. The diff changes only test mock arity, adds no comments, does not introduce new test-coverage issues, has no approved spec commitments to compare against, and does not affect security-sensitive behavior.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@joeywangzr joeywangzr closed this Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant