[Draft] Fix lowest-direct dependency tests to actually test minimum versions #2295
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
run_tests_lowest_directCI job was runninguv sync --resolution lowest-directbut then executinguv run pytest, which used the committed lockfile instead of resolving to true minimum versions. This allowed code requiringpy-key-value-aio>=0.2.8to pass tests whenpyproject.tomlspecified>=0.2.6.Changes
--resolution lowest-directtouv runcommands inrun_tests_lowest_directjob to bypass lockfilepre-commit,psutil,pytest-flakefinder,ruffto prevent resolution failures0.10.3to0.11.7(0.10.3 incompatible withfancycompleterin lowest-direct mode)This ensures tests actually run against specified minimums (e.g.,
mcp==1.17.0) rather than lockfile versions (e.g.,mcp==1.19.0).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.example.com/home/REDACTED/work/fastmcp/fastmcp/.venv/bin/python -u -c import sys;exec(eval(sys.stdin.readline()))(dns block)astral.shcurl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.