Skip to content

fix(ci): Windows clippy import + build notey-cli before Linux E2E#1

Merged
pbean merged 2 commits into
mainfrom
fix/ci-windows-clippy-and-cli-e2e
Jun 15, 2026
Merged

fix(ci): Windows clippy import + build notey-cli before Linux E2E#1
pbean merged 2 commits into
mainfrom
fix/ci-windows-clippy-and-cli-e2e

Conversation

@pbean

@pbean pbean commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Fixes the two CI failures on main (run 27559324505).

Root causes

  1. Windows clippy compile errorsrc-tauri/src/ipc/socket_server.rs Windows branch called as_handle().as_raw_handle() without importing the AsRawHandle trait (E0599). Only surfaces on the Windows runner since the #[cfg(windows)] path never compiles on Linux/macOS. Introduced by 1f44a33.
  2. Linux E2E P1-E2E-003 failure — the CLI live-sync suite spawns notey-cli/target/debug/notey, but CI never built that standalone crate (only the tauri app), so the spawn hit ENOENT. Added by 322e570.

Fixes

  • Import {AsHandle, AsRawHandle} in the Windows branch (mirrors the Unix {AsFd, AsRawFd}).
  • Add a Linux-only cargo build step for notey-cli before the E2E run; extend the Cargo cache to cover notey-cli/target/.

Verification

  • cargo clippy -D warnings clean in src-tauri (Linux).
  • notey-cli builds → notey-cli/target/debug/notey present.
  • CI on this PR exercises all three OS jobs.

🤖 Generated with Claude Code

pbean and others added 2 commits June 15, 2026 09:47
The #[cfg(windows)] branch of raw_conn() called s.as_handle().as_raw_handle()
but only imported AsHandle, so as_raw_handle() (provided by the AsRawHandle
trait) was not in scope — a hard E0599 compile error that only surfaced on the
Windows CI clippy job (the path is never compiled on Linux/macOS). Mirror the
Unix branch and import both traits.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The P1-E2E-003 CLI live-sync suite spawns the standalone `notey` binary from
notey-cli/target/debug/, but CI never built that workspace-less crate (the
tauri build only covers src-tauri), so the spawn failed with ENOENT. Add a
Linux-only build step before the E2E run and extend the Cargo cache to cover
notey-cli/target/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pbean pbean merged commit 696df92 into main Jun 15, 2026
3 checks passed
@pbean pbean deleted the fix/ci-windows-clippy-and-cli-e2e branch June 15, 2026 16:56
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.

1 participant