Skip to content

fix(ci): cargo-deny 0.22 config and rustfmt on master - #17

Merged
synthet merged 7 commits into
masterfrom
af/warp-ckxfj-ci-fix-master-rustfmt-and-cargo
Nov 20, 2026
Merged

synthet merged 7 commits into
masterfrom
af/warp-ckxfj-ci-fix-master-rustfmt-and-cargo

Conversation

@synthet

@synthet synthet commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Description

Fixes the two pre-existing master CI failures that block every PR, including #16 (release v0.3.0).

  1. Miscellaneous checks / cargo-deny: CI installs cargo-deny unpinned; 0.22.0 rejects advisories.git-fetch-with-cli ("this key has been removed", cargo-deny PR Accepting an autocomplete prompt from an early cursor position shifts the cursor excessively warpdotdev/warp#830). Removed the line, as upstream did in a36f769e.
  2. Formatting + Clippy (all OSes): rustfmt diff at app/src/terminal/cli_agent_sessions/plugin_manager/claude.rs:299, introduced by c40df72b.

Testing

  • cargo-deny 0.22.0 (release binary, checksum verified): cargo deny -L error check licenses fails with the old deny.toml and prints "licenses ok" with this change.
  • cargo fmt --all -- --check: passes.

The Run Linux tests failure on master was a runner shutdown (exit 143), not a code failure.

Also cherry-picked from #15: c607d6db (as 1c31ce24). The first run that reached the Linux tests found 5 pre-existing warp_tui failures: upstream cloud handoff/dispatch tests that expect the cloud path the fork gates off for Channel::Oss. The commit runs those tests with cloud agents enabled through a test-only ChannelState::enable_cloud_agents_for_test(), and adds a fork test that the shipped build rejects /handoff. Locally: cargo nextest run --workspace -E 'package(warp_tui) and test(/handoff|orchestration_model::tests/)' 34/34 pass.

Linux test timeout raised to 120 minutes (f394fc21): a cold compile exceeded 60 minutes and timed-out jobs never save the cache.

sync_queue race (d65deb8b): cancel_all aborted the running task before clearing the queue, so the processor could dequeue the next task and run it to completion in between. A "cancelled" task then still delivered its result, which flaked sync_queue::tests::cancel_all_cancels_running_and_queued_tasks on this PR. Sleeping 50 ms between the abort and the clear reproduces it every time; clearing first, then aborting, passes with and without that sleep (8/8 sync_queue tests). The bug is inherited from upstream.

Workflow changes: the lean CI matrix cherry-picked from #15 (48e27cdc) and the 120-minute Linux test timeout.

CHANGELOG-NONE

🤖 Generated with Claude Code

synthet and others added 3 commits November 19, 2026 23:20
CI installs cargo-deny unpinned, and 0.22.0 rejects this key ("this key
has been removed", cargo-deny PR warpdotdev#830), so Miscellaneous checks failed
before checking any license. Upstream warpdotdev/warp removed the same
line in a36f769. Verified locally with cargo-deny 0.22.0: fails with the
line, "licenses ok" without it.

Refs warp-ckxfj

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c40df72 wrapped the string constant by hand; rustfmt keeps it on one
line, so Formatting + Clippy failed on every OS. cargo fmt --all --check
now passes.

Refs warp-ckxfj

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
None of runs #20-warpdotdev#33 finished green: macOS jobs never got a runner, Linux
test compilation ran out of memory, and Windows tests and clippy hit
their job timeouts.

- Pushes and PRs: Linux fmt + clippy, miscellaneous checks, wasm lint,
  release-flag compile checks (Linux, Windows, wasm), Linux unit tests,
  and the conditional DB migration check.
- Linux unit tests now fit the runner: free disk space, add 12 GB of
  swap, cap rustc at 2 jobs, and skip building the integration crate.
- workflow_dispatch runs everything else: macOS, Windows tests and
  clippy, the integration crate with the shell matrix, and doc tests.
- Remove what only works for Warp Inc.: GCP login and SSH tests,
  trunk.io uploads, the agent_mode_evals compile check, and the
  disabled remote-server job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YCSfgvK3UQJhWcq8jbzsB5
(cherry picked from commit 48e27cd)
The PowerShell lint in Miscellaneous checks (reached once cargo-deny
stopped failing first) found six warnings in deploy.ps1:

- Stop/Set/New helpers without ShouldProcess: renamed to Invoke-* like
  the script's earlier helpers; the script implements -WhatIf itself.
- Register-ExplorerEntries: singular noun.
- New-Object -ComObject is unavailable in the Ubuntu PowerShell
  profiles the lint targets: create WScript.Shell through
  [Activator]::CreateInstance instead.

PSScriptAnalyzer 1.25.0 with the repo settings: 0 findings (master's
copy reproduces the six warnings). -WhatIf output is unchanged.

Refs warp-ckxfj

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
synthet and others added 3 commits November 20, 2026 00:51
Run Linux tests timed out at 60 minutes while still in "Compile tests"
(run 44683524950); no test ran. The tests cache is gone (the repo is at
the 10 GB cache limit), caches are saved only on master, and a
timed-out job saves nothing, so the job could never warm its cache.
With a warm cache the compile took about 25 minutes (2026-11-14). Raise
the limit to 120 minutes.

Refs warp-ckxfj

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s on

The first CI run that reached the tests (run warpdotdev#34) found 5 failures in
warp_tui, all pre-existing since the fork gated Warp-hosted cloud agents
off for Channel::Oss (9492670): /handoff and remote orchestration
dispatch now refuse, and their upstream tests still expected the cloud
path.

- warp_core: ChannelState::enable_cloud_agents_for_test() (test-util)
  switches to a non-OSS channel with loopback roots and restores the
  shipped state on drop.
- The 5 upstream tests use it, so they keep covering the code they were
  written for.
- New fork test: the shipped build rejects /handoff, keeps the prompt
  and says why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YCSfgvK3UQJhWcq8jbzsB5
(cherry picked from commit c607d6d)
cancel_all aborted the running task, then cleared the queue. In between,
the processor thread could wake from the abort, dequeue the next task
and run it to completion, so a "cancelled" task still delivered its
result. This flaked sync_queue::tests::cancel_all_cancels_running_and_
queued_tasks in CI (run on PR #17).

Reproduced by sleeping 50 ms between the abort and the clear: the test
fails with "queued task receiver should be cancelled". Clearing first,
then aborting, passes with the same sleep after the clear and without it
(8/8 sync_queue tests).

Refs warp-ckxfj

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@synthet
synthet merged commit 081315e into master Nov 20, 2026
10 checks passed
@synthet
synthet deleted the af/warp-ckxfj-ci-fix-master-rustfmt-and-cargo branch November 20, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants