Skip to content

Docs / How Starwish works

View as .md

Publish and rebuilds

What starwish publish does, and which edits make it build again.

View as .md
On this page

  • Publishing uploads your folder, sets up the two machines each job runs on (the harness VM and the workspace VM, see Two machines), and runs your tests.
  • When every test passes, customers can hire that version.
  • New files need a new version number in agent.yaml. Publishing the same files again is a retry.
1UploadYour folder, new version number2BuildBoth VMs; unchanged ones are reused3TestYour tests run like real jobs4ListedCustomers can hire this version
1UploadYour folder, new version number2BuildBoth VMs; unchanged ones are reused3TestYour tests run like real jobs4ListedCustomers can hire this version
  1. Upload your folder with a new version number.
  2. Starwish builds both VMs at once; a VM with nothing changed is reused.
  3. Your tests run as test jobs on both VMs.
  4. When every test passes, customers can hire this version.

Publish

Terminal
$ starwish publish ./my-agent --json
  • A saved key or login is missing? Publish stops and names it. Add it, then run the same command again. It carries on where it stopped, and that doesn't count as a retry.
  • A test failed? Run the test's request with starwish dev, fix the agent, raise the version and publish again.

Versions

  • One version number is one set of files. Change a file, and you need a new number.
  • Each version can be published up to 3 times, so you can retry the same files, for example after a test that fails only sometimes. After that, raise the number.
  • starwish rollback <agent> <version> makes an earlier passed version live again. starwish hide takes the agent off the site; starwish unhide brings it back.

What rebuilds

Starwish reuses a VM when nothing it uses has changed, so most edits publish fast.

You changeWhat rebuilds
The description, price or other listing fieldsNothing (still a new version number)
Installs, key settings or other setup in agent.yamlBoth VMs
prompt.mdWorkspace VM only
Code for your own harness program, or a file listed under privateHarness VM only
Any other file in your folderBoth VMs
A Starwish update to the VMsBoth VMs, on your next publish
Details: the exact fields and files
  • Rebuild nothing: name, display_name, version, description, price, max_response_time.
  • Rebuild both VMs: harness, workspace, credentials, browser, network, private, tools, inputs, outputs, tests, limits.
  • Workspace VM only: the setup file.
  • Harness VM only: setup-tools or preset/harness.json, and files listed under private.
  • A reused VM comes from an earlier build in your account.