Skip to content

test(installer): compare the tool's files before uv rebuilds it - #199

Merged
AlexS-scale merged 1 commit into
mainfrom
AlexS/fix-installer-test-uv-0.13.1
Oct 14, 2026
Merged

AlexS-scale merged 1 commit into
mainfrom
AlexS/fix-installer-test-uv-0.13.1

Conversation

@AlexS-scale

@AlexS-scale AlexS-scale commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The installer check fails on main since uv 0.13.1 (run). test_adding_a_plugin_by_its_bare_name_keeps_the_version_the_tool_pins fails with uv 0.13.1 and passes with uv 0.13.0, with the same code. CI installs the newest uv, so each pull request that runs this tier fails too.

The test compared the tool's files after tool.rebuild(), which runs uv tool upgrade --reinstall. In uv 0.13.1, a uv tool upgrade that does not change the version now saves its settings to uv-receipt.toml (astral-sh/uv#22499). The test environment sets UV_FIND_LINKS, so uv adds those links to the receipt's find-links again. Thus the comparison found a change that uv made, not a change that agent-env made.

The test now compares the files directly after plugin add, which must change nothing. Then it rebuilds the tool and makes sure that the plugin keeps version 0.3.0.

How it was tested

The test ran locally with each uv version on PATH:

uv Before this change After this change
0.13.0 pass pass
0.13.1 fail pass

@AlexS-scale
AlexS-scale merged commit ef4a3f1 into main Oct 14, 2026
14 checks passed
@AlexS-scale
AlexS-scale deleted the AlexS/fix-installer-test-uv-0.13.1 branch October 14, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants