Commit Graph
1876 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 100307879b Workspaces page: metadata-only call list with incremental live refresh, output on demand, one visibility rule, viewers see header only 2026-11-23 15:44:04 +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 3f8bcb84fb Warm versions are readable to every uid: normalize modes on publish and apply, fix older versions at agent start, name unreadable files in the copy error 2026-11-23 07:34:50 +00:00
aiongg 6f3190f534 Task Runner updates itself when the server serves a newer version 2026-11-23 07:30:13 +00:00
aiongg cde7fcbc63 Merge branch 'cli-settings' 2026-11-23 07:25:14 +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 bdeddbd9aa Warm sync shows download progress in the status and the log; file times are set as files are written 2026-11-23 07:24:12 +00:00
aiongg 5057778ca1 Merge branch 'caches-view' 2026-11-23 06:53:21 +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 2e78836a51 Warm restore records its marker inside the target dir, only after a successful restore, and a publish never lists it 2026-11-23 06:49:15 +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 cbbe0e6909 Deliberate rejection handlers on awaited-later promises are marked void 2026-11-23 04:56:54 +00:00
aiongg f10fee2d72 Merge branch 'env-slots'
# Conflicts:
#	web/src/modules/envs/views.tsx
2026-11-23 04:52:06 +00:00
aiongg 10f743caf9 Merge branch 'feature-switches'
# Conflicts:
#	src/dash/api/admin.ts
2026-11-23 04:51:37 +00:00
aiongg 452b053819 Merge branch 'page-latency' 2026-11-23 04:51:06 +00:00
aiongg 8d0219e7e9 Environments: each environment lists the tasks in its busy slots with the step running now; the task detail marks the running step 2026-11-23 04:49:06 +00:00
aiongg 19f47d95f8 Warm restore keeps a target left by a build with the same image and Cargo.lock and clears any other; a stopped task is never done 2026-11-23 04:43:24 +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 7079c4c85b Shared reads: db.fresh for read-until-changed loops, a 2,000-statement cap; the item page reads its stamp before its data; a failed settle-roles read is not kept
- Db.fresh runs its reads past the request's shared reads. The session token refresh, the user-token vault, the check and workspace relays and their lease checks use it, since each reads a row again until another process changes it.
- The item page reads the stamp first on every load, so a stamp never runs ahead of the data it is sent with.
- One shareReads scope keeps at most 2,000 statements; later ones read uncached.
2026-11-23 04:39:34 +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 09b5a06071 Build sizing review fixes: the sampler keeps the peak until it is stopped and the launcher caps it at the pod's limit; history counts only completed default-branch and warm builds; the step wrapper passes TERM to timeout; placement keeps a key's nodes through the agents' grace period; warm_target defaults to auto everywhere 2026-11-23 04:34:11 +00:00
aiongg ca08603f92 Dashboard pages on Postgres: a GET shares identical reads, and the slow routes batch or parallelize their reads
- Db.shareReads: within one read-only request, a Kysely SELECT with the same text and parameters is read once and handed out as copies; any write forgets them. The server runs every API GET in it.
- Stuck items: one title query instead of one per item; liveness reads together.
- Build tasks: batch PRs and item kinds read in one query each; artifacts, batches and the confidential check together.
- Repo settings list: each repo's parts read together, four repos at a time; label plan and seen checks read their inputs together.
- Decisions: toDecision starts its reads together; one decision and the item's decision read their rows through decisionPage; the list reads its counts alongside the page.
- Needs: feedback, counts and stopped rows together; feedback items in one query.
- Item page: a first load reads the stamp alongside the page, parts start as their inputs arrive; trace context, header and fingerprint read in one wave each; itemCore reuses its files and checks reads.
- Settle memo: concurrent callers wait for one roles read.
- scripts/page-bench.ts: route timings and round trips on a seeded Postgres through the latency proxy.
2026-11-23 04:32:36 +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 0c24fee952 Warm publish: the manifest header records the repo as owner/name, passed to the publish container 2026-11-23 03:47:51 +00:00
aiongg b2c6335e39 Discord search: warm the embedder and vector index at start; batch candidate lookups; one public-repo query per issue form 2026-11-23 03:11:19 +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 54ef03ad75 Merge warm-retry-version 2026-11-23 02:08:27 +00:00
aiongg f04f1721a1 Warm producer: a failed warm build blocks a retry only under the same AutoCraft version (runner image), recorded on the task at queue time 2026-11-23 02:08:22 +00:00
aiongg c8707cedcd Implement-off wait is a system wait, so liveness counts it as live instead of a person wait without a question 2026-11-23 02:04:45 +00:00
aiongg 0389024fd1 Merge discord-layout 2026-11-23 01:52:21 +00:00
aiongg 2abcb6aae0 Merge fetch-deps 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 7216596eb7 Rustc cache wrapper runs under bash so hyphenated variables such as CARGO_BIN_EXE_<bin> reach rustc; images without bash build uncached 2026-11-23 01:50:26 +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 e8269e7b93 Discord search replies: retry once with numbered lines and buttons when Discord rejects the V2 message 2026-11-23 01:20:30 +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 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