mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-24 16:31:06 +01:00
A disk container (AutoCraft image) first in every step pod fails the task when its volume holds more than the environment's storage, which local-path does not enforce; a per-step time cap (maxStepSec) and sized /src emptyDirs bound the rest, as docs/operations.md explains. Tasks are claimed one at a time and every claim that cannot start goes back to the queue. A pod stuck in deletion or on a node that stopped reporting, or running past a deadline Kubernetes should have enforced, loses its task; a failed create of a later stage's pod is retried with backoff before the task is lost. The launcher owns its tasks (reapLost skips them) and keeps them alive even while the API is down; each container's output is logged once; the pending health text stays stable; kubernetes environments have no usable env key; the namespace cannot change while tasks run; pods select the configured architecture; a source pod killed before it reports loses the task; a step's own exit 124 before its limit is an ordinary failure.
Triage dashboard frontend
React + TypeScript + Vite + Tailwind. Design: docs/ui-design.md.
pnpm install
pnpm dev # http://127.0.0.1:5173, mock API with fixture data
pnpm build # tsc, then dist/ (no inline scripts or styles; fonts bundled)
VITE_MOCK=1 pnpm build # the mockup: dist/ on fixture data, no server needed
A normal build talks to the dashboard server's JSON API (src/api/http.ts), and
the server serves dist/ behind sign-in. The dev server and the mockup build run
against createMockApi() (src/api/mock/); pick the signed-in role with
?as=operator|maintainer|viewer or the user menu.
A feature is a module in src/modules/<name>/ listed in src/registry/index.ts.