Skip to content

[P2][test] cargo test --workspace fails to build a TLS client; two reqwest majors in the lock #717

Closed

Description

@EVWorth

Running the whole workspace at once fails eight MCP endpoint tests:

No rustls crypto provider is configured. When using the `rustls-no-provider`
feature you must install a crypto provider before building a Client.
  at reqwest-0.13.4/src/async_impl/client.rs:2484

It is invisible to every command we actually run

  • cargo test -p mas-mcp --test endpoint — 9 passed
  • just test-rust (the documented command) — green
  • CI — green
  • cargo test --workspace — 8 failed

The difference is feature unification. The lockfile carries two reqwest
majors:

reqwest 0.12.28   ← mas-mcp's direct dependency
reqwest 0.13.4    ← pulled in transitively, and what the panic names

Building every crate together resolves a TLS client without a crypto provider
installed; building mas-mcp alone does not.

Why it matters even though nothing runs it

--workspace is the obvious thing to type, and it is what I typed. Anyone
checking "does everything pass?" before a release gets eight red tests and no
indication that the documented command would have been green. That is a
confidence problem rather than a correctness one, but it costs someone an
afternoon the first time.

Likely fixes, in order of preference

  1. Work out what pulls in reqwest 0.13 and whether it can be aligned to 0.12,
    removing the duplicate entirely.
  2. Failing that, install a default provider in the endpoint test's setup —
    rustls::crypto::ring::default_provider().install_default() — so the test
    does not depend on which features a sibling crate happened to enable.
  3. Failing both, document that --workspace is not a supported invocation,
    which is the weakest answer and worth avoiding.

Found while adding -p sqlpilot --lib to CI, which turned out to be a
separate gap: the main crate's 58 unit tests had never run there either.

Activity

  1. added
    audit
    severity/p2
    kind/test
    on Sep 18, 2026
  2. added a commit that references this issue on Sep 19, 2026
  3. EVWorth commented on Sep 23, 2026

    @EVWorth
    OwnerAuthor

    Fixed in #722 (the 1.1.0 release PR), which is on main.

    mas-mcp now asks for reqwest 0.12 like the rest of the workspace instead of 0.13, so it no longer shares a dependency graph with tauri-plugin-updater and the test client no longer wants a rustls provider nothing installs.

    Verified on main just now:

    cargo test --workspace  →  0 occurrences of "No rustls crypto provider"
    

    Option 1 from the issue — align the versions and remove the duplicate — which was the right one: the divergence was never deliberate.

    Left open because #722's description mentioned the number without a closing keyword. Same slip as #704/#707.

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

    area/cross-cuttingauditkind/testseverity/p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions