Skip to content

cargo test (57 failures) and cargo clippy both fail on Windows, the documented primary platform #35

Closed

Description

@superman2003

Summary

cargo test --workspace fails 57 tests across 10 crates on Windows, and
cargo clippy --workspace --all-targets --features qa-mode -- -D warnings
fails outright. CLAUDE.md describes this as a Windows-primary dev
environment, so both gates are unusable on the primary platform.

Reproduce

git submodule update --init --recursive
cargo test --workspace --no-fail-fast
cargo clippy --workspace --all-targets --features qa-mode -- -D warnings

Failing crates

automation, conversations, git, local-deployment, plugins, server,
services, tool-runtime, vibex (src-tauri), agents

Breakdown

The failures are not one problem. Roughly:

Genuine product defects (filed separately): #33 plugin Workers, #34 Git
identity, plus stale DSH provider views, LF-only frontmatter stripping,
host-dependent portable-spec validation, and native path separators leaking
into UI-facing values.

POSIX-only test premises — the largest group. Path::new("/tmp/x") is
rooted but not absolute on Windows, so any fixture using /managed-tools,
/verified/officecli, /opt/codex, /managed/acp is rejected by an
is_absolute() guard before reaching the behaviour under test. The suite then
reports NonAbsolutePath / PathOutsideScope instead of the assertion it
meant to make. There are ~177 such literals under crates/.

Tests depending on ambient machine state. Several services and
local-deployment tests create a temp repo and commit without configuring an
identity, so they silently rely on the developer's global gitconfig. They pass
on a configured machine and fail otherwise.

Genuine Windows platform differences.

  • The worker_sandbox loopback listener writes its response without reading
    the request; closing a socket with unread inbound data makes Windows send an
    RST, aborting the response.
  • sqlite_registry removes a snapshot directory while kill_on_drop is still
    tearing down the Worker, and Windows will not delete an open file or a
    process's working directory.
  • The container env probe emits %VAR% cmd syntax whenever the target is
    Windows, but get_shell_command() prefers bash when it is on PATH, so
    the variables arrive at bash as literals.
  • The Node version stubs print the right version but exit 1, because
    set /p reports failure when it cannot read stdin.

Cross-platform failures that should also be red on Linux. Two are worth
separate attention because they are not Windows-specific at all:
web_domains expects the bundled Office plugin in the control catalog after
bootstrap while official_host_catalog.rs asserts that catalog stays empty;
and every_built_in_auth_mode_has_a_declared_ui_policy asserts a 1:1 mapping
that project_auth_mode_options deliberately breaks by hiding custom for
two agents.

Clippy

~48 errors initially, cascading to more as each crate began compiling. Mostly
mechanical, but three are structural:

  • crates/plugins/src/isolated.rs lists windows among the platforms that
    keep the module live, so on Windows the entire Linux seccomp/BPF half is
    reported as dead code.
  • windows_isolated_command is never called: isolated_launch has macOS and
    Linux branches but no Windows one, so isolated packages still report
    plugin_class_unsupported there — even though the module header documents
    "Linux seccomp-bpf + Windows AppContainer". Worth deciding whether Windows
    isolation is meant to ship.
  • HostedChild::Command(Child) is 272 bytes against a 16-byte sibling.

Suggestion

A Windows job in CI would keep this from recurring; nothing on a Linux runner
can reproduce the is_absolute, separator, file-locking or RST classes.

#20 takes all of it to green: 145 suites / 0 failures, clippy clean,
cargo fmt --check clean.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions