Repository navigation
Run the Python programs under uv; move bench-link.sh to Python - #402
Merged
Merged
Conversation
lambdanature
force-pushed
the
389-scripts-under-uv
branch
from
November 29, 2026 03:19
33cae6f to
738f896
Compare
The repository's shell scripts keep running into GNU and BSD differences, bash 3.2 and pipefail, and do not run on Windows (#389). This adds what the move needs and moves the first program: - uv 0.13.8 in CI (install-action, next to cargo-nextest) and in tools/dev-setup.sh, which downloads it and checks its hash; Python is pinned to 3.15 in each program's inline script block. - tools/bench-link.py, with the stand-ins bench-link.sh and bench-link.cmd; test_uv_programs.py holds every program to that layout, and the Windows check runs each .cmd stand-in. - The installer tests run under both dash and bash in release-tooling.yml; the installers stay plain /bin/sh.
lambdanature
force-pushed
the
389-scripts-under-uv
branch
from
November 29, 2026 12:13
738f896 to
2341880
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
First step of #389: what moving the scripts to Python run by uv needs, and the first program moved.
uv and Python
taiki-e/install-actionknows. CI installs it with cargo-nextest in the same step, withfallback: none, in the Linux, macOS and Windows check jobs.tools/dev-setup.shreads the version fromci.yml, downloads uv's release binary and checks it against SHA-256s kept in the script (uv's.sha256files). A newer uv will do. uv is required; on FreeBSD the script names the package. Never compiled.==3.15.*in each program's inline script block (PEP 723). uv 0.13.8 knows 3.15.2.The layout, and the first program
tools/bench-link.sh(A repeatable benchmark of irsync against rsync and tar|nc #388) is nowtools/bench-link.py, with the stand-insbench-link.shandbench-link.cmd. Same commands, files and output as before; sessions are saved assession.json. What runs on the server stayssh, so the server needs no Python.tools/tests/test_uv_programs.py: every tracked.pywith the uv shebang has both stand-ins, exactly as expected, all pin the same Python,.cmdfiles have CRLF (.gitattributes), and each program answers--help.tools/ci.sh checkruns each.cmdstand-in throughcmd.exewith--help. This is its first run on real Windows.tools/ci.sh checkneeds uv, and runs the tool tests withUV_TESTS_REQUIRED=1.Installers under dash and bash
site/tools/test_install.pytakesINSTALLER_TEST_SHELL, likepackaging/tests/test_installer.py.release-tooling.ymlruns both suites under dash and under bash, and now also runs whensite/tools/test_install.pychanges.Docs: "The scripts" in
book/src/contributing/setup.md, uv in its requirements (Windows too), and a Scripts rule inAGENTS.md.Tests run locally: all of
tools/tests(with uv required), the dev-setup tests (7 new for uv), the installer suites under dash and bash,tools/ci.sh workflowsandshell-scripts. In the fulltools/ci.sh check, twoonboard_e2etests timed out under a load average of 34 to 47 on the machine and pass alone; this PR changes no Rust. Not tested here: the uv download indev-setup.shwith real files (only with a fake archive).Part of #389; the later batches follow in their own pull requests.