Commit Graph
741 Commits
Author SHA1 Message Date
aiongg 24dec53ff8 Copy the warm target and CARGO_HOME with several cp processes at once 2026-11-23 16:27:55 +00:00
aiongg 96d7887af1 Set the gate's extra checkouts to the old mtime when a seed or build pod starts warm 2026-11-23 16:25:42 +00:00
aiongg 5fe1f712b5 Add the Workspaces page: list, sessions and call log with output and screenshots 2026-11-23 15:37:41 +00:00
aiongg 25a73c1ef4 Try sessions show the model's final reply in the job log and in workspace show 2026-11-23 15:27:46 +00:00
aiongg 1ab8386d9c workspace try runs only on the Task Runners of the login it names (--for) 2026-11-23 15:26:51 +00:00
aiongg 0c359e3964 Warm trees never carry cargo lock files: publish skips them, apply gives each empty file its own inode, restores and copies delete them 2026-11-23 08:17:57 +00:00
aiongg 6f3190f534 Task Runner updates itself when the server serves a newer version 2026-11-23 07:30:13 +00:00
aiongg 20baf6d791 Task Runner CLI: settings and settings set (my_settings and set_my_settings MCP tools) 2026-11-23 07:24:58 +00:00
aiongg 7427f33d99 Caches report on the Build environments page and in envs caches
The runner's pod launcher stores its warm status, placement and crate mirror
allowlist reads in the settings row warm_report (bumping the envs topic only).
GET /api/envs/caches and autocraft-server envs caches combine it with the warm
tasks, default-branch heads and warm targets: the warm state per repository,
what each node holds and has pending, where each key is placed and whether the
placed nodes hold its newest version, and the mirror's git allowlist.
2026-11-23 06:52:53 +00:00
aiongg 80c85a7620 Kubernetes build steps stream their output to the task log while they run
Each launcher pass reads a running step container's new output (one read of at
most 512 KB, complete lines only) and appends it to the task log; the rest
follows when the step ends. Reads start at a whole second before the last
appended line (sinceTime, timestamps) and skip the lines of that window already
appended, so lines sharing a timestamp at the boundary are neither dropped nor
repeated. The position is kept per container in build_pod_runs.log_positions and
written in the same transaction as the appended lines, so a runner restart
resumes exactly where it stopped.
2026-11-23 05:17:35 +00:00
aiongg 9a202905bd Build features: Screenshots and Nightly checks show while an enabled environment can run them
Screenshots shows while an enabled build environment reports a display, Nightly checks while
one reports a nightly check's toolchain. The repo page follows environment changes live. The
mock Kubernetes environment gets the display setting.
2026-11-23 04:43:19 +00:00
aiongg b48acccf05 Merge main into feature-switches 2026-11-23 04:39:41 +00:00
aiongg 93f235c8f2 Build features: one switch per repo on the repo page, only for features the build pods run
featureOn reads only the repo switch; a one-time migration keeps a repo on only where the
global switch was on too, then removes the global rows (scan-tests keeps its instance-wide row).
The repo page shows Tests before push, Build batches and Implement queued issues with one line
each; operators and maintainers with write permission flip them. Screenshots, Nightly checks,
Build pull requests and scan tests keep their code and stored state without a switch. The
Build environments page drops its Build features section.
2026-11-23 04:39:13 +00:00
aiongg 7553e9b22a Merge pod-display
# Conflicts:
#	docs/operations.md
2026-11-23 04:34:45 +00:00
aiongg bd1cc7e7b0 Build pods: display setting reports the display capability and gives steps the software-render env; libegl1 in the toolchain image 2026-11-23 04:28:18 +00:00
aiongg d92b97dce7 Warm placement: the runner places each covered repo's key on 2 nodes by free disk and version size and writes warm-placement; warm-sync keeps only the keys placed on its node, and every assigned key without a placement 2026-11-23 04:25:00 +00:00
aiongg 861b5fde2a Build pods size themselves: step memory from the measured peaks of recent builds (OOM raises kept as a floor), warm target from the published version's size, warm producer covers every pipeline repo once a publish was trimmed; operator settings stay as overrides 2026-11-23 04:20:43 +00:00
aiongg 5717834b21 Discord issue panel: choose the follow-up questions in the background from submit so None of these stays one press 2026-11-23 02:26:22 +00:00
aiongg d09947952d Discord issue panel: first reply from embedding matches alone; follow-up questions start when None of these is pressed; remove the search model pick 2026-11-23 02:25:02 +00:00
aiongg 0389024fd1 Merge discord-layout 2026-11-23 01:52:21 +00:00
aiongg ba3c0fbbd8 fetch_dependencies: retry failed pod reads until the deadline; fetch without the session's HOME and global git config; a fetch holds every exec slot of its session and checkpoints wait for it; a resumed row keeps its call number 2026-11-23 01:52:09 +00:00
aiongg dfb662c344 Workspace tool fetch_dependencies: a short-lived mirror-network pod on the workspace's volume runs cargo fetch through the crate mirror and returns the Cargo.lock diff; refused without a crate mirror; the implement prompt names it only where the environment has one; the launcher sweeps fetch pods of workspaces no longer ready 2026-11-23 01:45:44 +00:00
aiongg f79145081d Discord search replies: each result is a Components V2 section with its link button beside it 2026-11-23 01:19:18 +00:00
aiongg c9ebc603a4 rust-stable toolchain image adds the wasm32-unknown-unknown target that pipeline repos' toolchain files list; offline build pods cannot install it 2026-11-23 01:09:53 +00:00
aiongg b32c78d6f1 Merge ws-warm 2026-11-23 01:06:11 +00:00
aiongg b6e32a7c1a Workspace targets always live on the session volume; warm node choice skips full disks and prefers lower usage; cold fallback resets the pending clock; craft-fonts/i18n archive cap shared with build pods; a failed changed-file list put falls back to touching everything 2026-11-23 01:06:02 +00:00
aiongg 8e3f7f8717 Workspace pods may run on any node, the AutoCraft service's included: their isolation keeps them apart, so any node holding the warm version can take one 2026-11-23 01:02:50 +00:00
aiongg fdbaae2153 Workspace warm node choice reads no service pods: the required pod anti-affinity on the AutoCraft service pods keeps workspaces off their nodes, and a warm pod the scheduler refuses for 3 minutes starts cold 2026-11-23 00:58:16 +00:00
aiongg 7cdc397e9e Workspaces of repos with a warm target work at the CI paths and start from their node's warm version: layout 2 (checkout at the runner path, CARGO_HOME /cache/cargo, gate env and checkouts), node choice from warm status, warm-copy before the workspace (Cargo.lock check for pvc), volume sized for the target to grow, checkout mtimes from the files changed since the warm commit, warm note on the item page 2026-11-23 00:57:03 +00:00
aiongg 76d5d489ed Merge jev-402 2026-11-23 00:46:20 +00:00
aiongg 252042756c Merge impl-switch 2026-11-23 00:46:20 +00:00
aiongg e4739265e6 Crate mirror queues requests past its upstream limit instead of answering 503; 64 upstream slots by default (--upstream-slots); mirror build pods retry with CARGO_NET_RETRY=10 2026-11-23 00:45:56 +00:00
aiongg 1e81a0e49c Jev Cloudflare: test and document that a 402 (balance ran out) records the Jev outage 2026-11-23 00:43:31 +00:00
aiongg d3302ace2e Maintainers with write access switch a repo's Implement feature 2026-11-23 00:42:57 +00:00
aiongg be6b6ee722 Task Runner 1.4.0 runs interactive lanes; older runners are offered interactive calls in ordinary claims 2026-11-22 23:49:56 +00:00
aiongg b67d053609 Interactive Task Runner slots: a per-user setting and claim lane that only interactive (Discord) calls use 2026-11-22 23:46:24 +00:00
aiongg ad284dd058 Discord search also finds open pull requests and ones merged in the last 7 days, labelled (PR) and (merged) 2026-11-22 23:28:27 +00:00
aiongg c803224fe2 Discord model calls wait at most 8 s for a helper to take them, then the call is withdrawn and the fallback is used 2026-11-22 23:26:26 +00:00
aiongg 8b6731f57a Merge mirror-wait: mirror pods wait for the crate mirror before their first network step 2026-11-22 23:02:58 +00:00
aiongg 931daf5c17 Lease review fixes: watchdog on the monotonic clock from the takeover's send time, timers start before the status writes, epochs at least the server's clock in ms; EndpointSlice label and Flux annotation in the docs 2026-11-22 23:02:39 +00:00
aiongg 1058943855 Mirror pods wait for the crate mirror to accept connections before their first network step 2026-11-22 23:00:30 +00:00
aiongg 08cb81dd8b Leader election by lease: a leader_leases row per role, renewed every 2 s for 10 s on the server's clock and taken by a standby once expired; the fence checks the lease's epoch; the advisory lock is gone 2026-11-22 22:55:33 +00:00
aiongg 511f7d28a2 Runner: the leader writes its address into the worker API's EndpointSlice; runner-leader check fails while the slice names another address 2026-11-22 22:46:00 +00:00
aiongg 6bea27855d Warm starts: 4 GiB fixed room on a memory-backed target; CARGO_HOME keeps what earlier steps fetched 2026-11-22 22:12:13 +00:00
aiongg 4d44b5164f Warm starts: read one version dir, old mtimes only from trimmed versions, tmpfs memory reserved and added to the pod
warm-copy resolves current once and reads the signed record, manifest, target and
CARGO_HOME from that version's dir. The manifest records whether the publish's trim
attributed every kept unit to the build; only then does warm-copy set unchanged
sources to an old mtime. CARGO_HOME is copied beside its place and moved in with
renames; a failed copy leaves nothing and the task stays cold for its later pods.
Files deleted since the warm commit mark their nearest Cargo.toml and dir as changed.
A memory-backed target is reserved when the task starts and added to warm-copy's
and the steps' memory; it starts cold when the node's version needs more. The warm
env hash includes the craft-fonts and craft-i18n commits.
2026-11-22 22:10:02 +00:00
aiongg f6f68611e5 Merge warm-t6
# Conflicts:
#	src/warm/store-client.ts
#	src/worker/pod.ts
2026-11-22 21:56:30 +00:00
aiongg 41008e021b Build pods start warm from their node's warm version: per-repo warm target (tmpfs, or pvc with the same Cargo.lock), signed-record check and copy in warm-copy, checkout mtimes from the files changed since the warm commit 2026-11-22 21:55:06 +00:00
aiongg d1e6afd7b6 Warm producer builds only repos in an operator-set allowlist (warm_repos) 2026-11-22 21:41:53 +00:00
aiongg 3d57b6e025 Merge discord-panel-2 2026-11-22 21:22:26 +00:00
aiongg d920d4c757 Merge areas-ui 2026-11-22 21:22:25 +00:00