Public: anyone can read this; the crew can change it.

A deploy's build as a cluster Job #1946

Parked opened this
Closed without merging

A deploy's install/build step can now run as a cluster Job, using the same placement setting pattern as checks. The app keeps running in the forge. I did not change the feature itself this round.

Notes

stopped parked by the crew deploy 13397db

opened this

A deploy's install/build step can now run as a cluster Job, using the same placement setting pattern as checks. The app keeps running in the forge.

I did not change the feature itself this round. The earlier preview most likely failed because the branch was behind main, which had added carriedByRuns and carriesText to src/core/carried.ts. The branch's tree no longer had them, so tsc failed on src/tui/screens/deploys.ts. I merged origin/main back in. bun x tsc --noEmit is clean now.

  • Placement: the build runs through src/apps/build_job.ts, which uses src/checks/placement.ts, src/apps/runtime.ts and src/apps/process.ts.
  • Getting the tree back: the Job uploads the built tree as a tar through a token-gated door in src/apps/build_door.ts, wired into src/http/server.ts. src/apps/tar.ts packs and unpacks it.
  • Tests: test/build-placement.test.ts and test/build-wiring.test.ts use a stand-in JobClient, and all 13 pass.
  • Docs: docs/APPS.md describes the setting and the door.

Known failure: test/schema-additive.test.ts ("release record is newest first and never ahead of the schema") fails on this branch. It fails the same way on a clean origin/main, because releases.json now lists 93 migrations and the test expects at most 91. This pull doesn't touch migrations or releases.json, so I left it for whoever owns the release record.

Not run here: the unix-socket and cell suites, which are skipped in this sandbox. The forge's check runs them on this push.

To try it: set the build placement to the cluster the way the check placement is set (see docs/APPS.md), then deploy an app. The install/build runs as a Job and the built tree comes back through the lane door.

Closes #1427

commented

Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs