From e4b238f3fc7500d169442bbf53ef7b522f2cd247 Mon Sep 17 00:00:00 2001 From: michelligabriele Date: Fri, 13 Nov 2026 20:17:44 +0100 Subject: [PATCH] ci(mcp-deps): build unoptimized in the MCP dependency resolution workflow (#51684) The workflow checks packaging, installation and imports, but it compiled the Rust workspace with the release profile's fat LTO and opt-level 3, which pushed its jobs to the 30 minute timeout. Three Cargo environment variables now make that profile build unoptimized for this workflow only. --- .github/workflows/test-mcp-dependency-resolution.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test-mcp-dependency-resolution.yml b/.github/workflows/test-mcp-dependency-resolution.yml index 6d6b2307700..89a1c972a7d 100644 --- a/.github/workflows/test-mcp-dependency-resolution.yml +++ b/.github/workflows/test-mcp-dependency-resolution.yml @@ -38,6 +38,16 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} +# These jobs check packaging, installation and imports, so they build the Rust +# workspace unoptimized. The release profile's fat LTO and opt-level 3 pushed +# every job to its timeout. The overrides go through Cargo's environment +# because a maturin `--profile ci` argument also reaches dependencies that +# build from source, such as jiter on Python 3.15, which have no ci profile +env: + CARGO_PROFILE_RELEASE_OPT_LEVEL: "0" + CARGO_PROFILE_RELEASE_LTO: "off" + CARGO_PROFILE_RELEASE_CODEGEN_UNITS: "256" + jobs: resolve: runs-on: ubuntu-latest