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.
This commit is contained in:
michelligabriele 2026-11-13 20:17:44 +01:00 • committed by GitHub
parent 6021db5bba
commit e4b238f3fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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