Skip to content

ci: per-surface apt install — workspace PRs skip the GUI stack - #468

Merged
huichen merged 2 commits into
mainfrom
claude/ci-apt-slim
Sep 2, 2026
Merged

huichen merged 2 commits into
mainfrom
claude/ci-apt-slim

Conversation

@huichen

@huichen huichen commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Direct fix for the recurring 'Install Linux deps' flakes (exit 124 on apt downloading ~170 packages from the slow Azure mirror — hit 3× today).

Split every 'Install Linux deps' step by affected surface:

  • base always: build-essential, binutils, mold, pkg-config (~10 packages, fast)
  • GUI stack (WebKit/GTK/indicator/SSL) only when desktop_tauri is affected — clippy links its -sys build scripts, so workspace-only changes never need it
  • protobuf-compiler moves into the proto-freshness step's own condition (only step that runs protoc)

Also split the same way in the build-check job. The tests matrix already gated GUI packages per group. Net effect: loop-only PRs (like today's three) skip ~40-60s of apt and the flake point entirely.

chenhui added 2 commits September 2, 2026 22:02
… turn

Found auditing the actual run history for steering behavior. The run loop's
injection cursor (last_steer_ts) was per-run in-memory state, but the ledger
replay keeps pending_steer forever (latest-wins) — so a NEW run client
(cursor reset to 0) re-injected the stale instruction into its first turn.

Fix: after draining a steer into a turn envelope, the run client appends a
SteerConsumed event (before the turn runs, so a mid-turn death still leaves
the consumption durable); replay clears pending_steer only for the SAME
episode (ts + agent_id match), latest-wins preserved for newer steers.

Also: the live tee now carries tool_start 'phase' (input vs execution — one
tool call emits both; observed 10 starts vs 5 session tool_calls in a real
run), enabling correct start-counting in tail/idle detection.

Tests: steer_consumed.rs (clear-on-consume, episode-match guard). 67
future-loop suites green; clippy --all-targets -D warnings; fmt.
…e GUI stack

The fmt+clippy gate kept flaking on 'Install Linux deps' (exit 124: apt
downloading ~170 packages from a slow Azure mirror eats the step timeout).
The WebKit/GTK/SSL/indicator stack is only needed when the desktop Tauri
backend is affected (its -sys build scripts link against it); a
workspace-only change now installs just build-essential/binutils/mold/
pkg-config (~10 packages), and protobuf-compiler moves into the proto-
freshness step's own condition (it is only needed there). Same split for
the build-check job. The tests matrix already gated GUI packages per group.
@huichen
huichen enabled auto-merge (squash) September 2, 2026 14:19
@huichen
huichen merged commit cbec352 into main Sep 2, 2026
12 checks passed
@huichen
huichen deleted the claude/ci-apt-slim branch September 2, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant