Repository navigation
Conversation
… on a fresh machine
Deploying tack-website with
|
| Latest commit: |
3cdd575
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bf0f7c9f.tack-ayg.pages.dev |
| Branch Preview URL: | https://build-evals-image-onboarding.tack-ayg.pages.dev |
This branch has not been deployed
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.
Why
Tack's guides start with
npm install --global @tackup/cli, but an eval trial could not follow them. The task container has no network, npm had no package to install and nowhere to write, and every task started with Tack installed and a state directory chosen for it. The onboarding scenarios planned next need a machine where Tack is not there yet.#141 already builds and packs both npm packages in the evals image and installs the tarballs with npm, and made
TACK_BUILTINS_DIRwork for the installed copy. It did not keep the packages or their dependencies for a trial to install, nor change how a task starts. This adds what remains.What
@tackup/cliand@tackup/docsand every package they depend on (about 50 MB). Each task container serves them on its loopback, sonpm install --global @tackup/cli, and@tackup/docs, work with no network, with or without a version. The image installs its own Tack from the stand-in withRUN --network=none, so a missing package fails the image build.machine: "fresh"starts without Tack and withTACK_STATE_DIRunset, so Tack uses~/.tack. Once npm installs it,tackis on PATH and the trial records each Tack process as before. Tasks that do not ask keep today's setup.safe.directory. A task'ssafeDirectorieslists the repositories under/worldthat Git trusts whoever owns them. The plan refuses a path outside/worldor a wildcard.Related to
#141
Details
@tackup/docswrites thousands of files into the world, which is mounted from the host: it took 6 to 24 seconds here, against the 30 seconds a command may run. A fresh machine allows 120 seconds per command; other tasks keep 30. The relay's own timeout rises from 35 to 125 seconds.tack. On a fresh machine the launcher is a link that passes through the installed package's folder, so a shell findstackonly while npm has put the package there, andnpm uninstallremoves it again.TACK_BUILTINS_DIRstays set so that the installed Tack links the built-ins of the arm. The Git that fetches fortack importdrops thesafe.directorylist.Tests run
bun run checkand the dead code check pass.tack, no state directory; after the installtackruns and is recorded, also from a login shell;tack initlinks the arm's built-ins and keeps its state in~/.tack;@tackup/docsinstalls; afternpm uninstall,tackis gone.tack,TACK_STATE_DIRand the state folder as before.bun run evals planprints the trial and its token with the new image.