A harness that runs the test suites of the most popular Tornado dependents against a chosen Tornado build. It is called from tornado's own release build as a reusable workflow, so it is release infrastructure: correctness of the signal matters more than convenience.
Read CONTRIBUTING.md first — especially "the one rule".
REPORT.md describes the current state, including the standing
limitations and the gotchas list, which is where most of the hard-won knowledge
lives.
packages/<name>/— committed package definitions (pin,package.env,test.sh, optionalsetup.sh,README.md). Seepackages/README.md.scripts/pkglib.py— the only parser for those definitions; bash reads them through it viascripts/common.sh.scripts/run_one.sh— the important one. Applies any pinned patches, builds a fresh venv, installs the package, force-installs the Tornado under test, runstest.shwith the activeknown_failures.tomlentries as strict xfails, then verifies the Tornado did not change underneath it.packages/<name>/known_failures.toml,packages/<name>/patches/— expected failures from deliberate Tornado changes, each with a condition and an upstream link, applied byscripts/pytest_plugins/testbed_known_failures.py. Both expire on their own (strict xfail; patch pinned to one release).packages/<name>/constraints.lock— generated lock of every other dependency, applied asUV_CONSTRAINT. Regenerated bylocks.yml(orLOCK_MODE=refresh), never by hand; stale locks fall back to unlocked with a warning.scripts/report.sh— renders the summary and decides the exit code. Shared by the serial path (ci.sh) and the job matrix, so they cannot disagree.checkouts/,logs/,results/,coverage/,coverage_html/— all generated, none committed.
common.shenablesset -e. Guard anything whose failure you handle (run_tests || rc=$?). An unguarded failure aborts the script before the result file is written, so the package vanishes from the report instead of showing up red. This has happened.- Never edit a script while a run is using it. Bash reads scripts
incrementally; editing
ci.shmid-run corrupts execution. uv venvhas nopip. Test commands that shell out must useuv pip.- Don't add a second source of truth for a version. The pin in
requirements.txtis it; the git tag is derived viatag_template. Two places to edit means two places to disagree.constraints.lockholds everything except the pin and Tornado, andvalidate_packages.pyrejects a lock that constrains either. - Scheduled workflows only run in the tornadoweb organization.
testbed.ymlgates itsplanjob andlocks.ymlitsrefreshjob ongithub.repository_owner, so a fork does not run upstream's cron. - Statuses are load-bearing:
TORNADO_INSTALL_FAILandTORNADO_MISMATCHexist because a run that silently tested the wrong Tornado used to reportPASS, andCOVERAGE_LOWexists because a test command that stopped exercising Tornado also reportsPASS. Keep them distinct fromFAIL. - The coverage floor only applies when
COVERAGE=1. The release gate runs with coverage off, so checking the floor there would fail every package that declares one. It is also skipped unless the suite passed, so a real failure is never reported asCOVERAGE_LOW.
The rest of the operational gotchas — filterwarnings=error in the Jupyter
stack, relative_files=true breaking standalone coverage reports, ZeroMQ
deadlocks that ignore SIGTERM, orphaned pytest processes, dependency drift — are
in REPORT.md under "Gotchas worth knowing".
python3 scripts/validate_packages.py
tests/harness_test.sh
shellcheck scripts/*.sh packages/*/*.shTo check that the gate still catches a real Tornado regression, replay
tornado#3724 — but note it does not work at the current pin: jupyter_server
2.21.1 passes on 6.5.9. The replay needs the package temporarily pinned back to
2.14.2, and packages/jupyter_server/README.md has the exact procedure. Running
it against the current pin and seeing green proves nothing.