Repository navigation
TR-1170: a git install builds without the console; a release build still requires it - #588
Conversation
factory/review: changes at 6312371The approach is right. A build hook that adds Verified (worktree at 6312371, TARES*/FACTORY*/CLAUDE* stripped, fail keyring)
F1 (P1, blocking, deploy/docker/Dockerfile:16-22): the release image build fails, because the Dockerfile never copies
|
factory/review: pass at 13480e0 (round 2)F1 is fixed. The image's stage 2 now copies Verified (worktree at 13480e0, TARES*/FACTORY*/CLAUDE* stripped, fail keyring)
Resolved: F1 fixed. F2 fixed. F3 fixed (answered, no change needed). On the red
|
Ticket: TR-1170
A fresh clone has no
ui/dist(gitignored, needs Node), and the wheel build force-included it, souv tool install git+https://github.com/glassflow/tares@<branch>failed.What changed
hatch_build.py(new wheel build hook): addsui/distastares/consoleonly whenui/dist/index.htmlexists. Without it, the build passes and says so in one line.TARES_REQUIRE_CONSOLE=1turns a missing console into an error.pyproject.tomldrops the unconditional force-include.tares/_ui.py(new): where the console lives and whether there is one.daemon.pyuses it; without a console/answers 404console not built: ...with how to get one.tares upprints that hint in one line and starts, no traceback.release.yml:uv buildruns withTARES_REQUIRE_CONSOLE=1, then checks the wheel holdstares/console/index.html.ci.yml: newwheel-cleanjob on ubuntu and windows. From a clean checkout it builds the wheel, checks it has no console, checks the require flag fails the build, installs it, runstares --versionandtares factory doctor.windows-crew.yml,factory-engine.yml: the emptyui/diststub step is gone.tests/test_crew_packaging.py(noui/distbuilds and the wheel has no console; require flag fails the build; stub console still lands astares/console), newtests/test_no_console.py.With
ui/distbuilt the wheel is unchanged. The sdist keeps**/node_modulesexcluded and carrieshatch_build.py; an sdist builds to a wheel with and without a console.Checks (scratch HOME)
python tests/test_crew_packaging.py: 74 passed, 0 failed. Break-test: the hook no longer raises on the flag, 1 failed (require flag case).python tests/test_no_console.py: 13 passed, 0 failed. Break-test:tares uphint removed, 1 failed.test_cli46,test_degraded23,test_ci_list55 passed, 0 failed.ui/dist:uv build --wheel, install in a new venv,tares --versionprints 1.56.0,tares factory doctorruns,tares upprints the hint and/answers 404 with it.check_ledger.pyok,check_port_drift.py origin/main HEADok.Overlap
PR 587 also edits
windows-crew.yml,tares/daemon.py,tests/ci_list.txt; PR 159 editsdaemon.py,ci.yml; PR 48 editspyproject.toml. Different hunks as far as I can tell; whoever merges second rebases.Out of scope, as the ticket says: building the UI in the wheel build, publishing to PyPI.