Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Enforce updater coverage in CI and stabilize progress clock assertion

Dee19372b3b2f41
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0fbb6611a..5f091cee2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,8 +34,7 @@ concurrency:
cancel-in-progress: false
jobs:
- # `make cli-test`, exactly: typecheck then the vitest suite. Nothing else — the repo has no lint
- # or format gate, and inventing one here would fail on code no reviewer ever agreed to.
+ # Typecheck, the full suite, and the package updater's complete-coverage gate.
typecheck-test:
runs-on: ubuntu-latest
timeout-minutes: 20
@@ -101,3 +100,6 @@ jobs:
# need a live tmux, Herdr or Cursor are gated behind RUN_* env vars and stay skipped here —
# `npm run test:tmux-real` and friends are how those are run, on a machine that has them.
- run: npx vitest run
+
+ - name: Require complete harness updater coverage
+ run: npm run test:dsh-updates
diff --git a/desktop/test/dsh_install_panel_test.dart b/desktop/test/dsh_install_panel_test.dart
index 9cbbf82b9..385198db7 100644
--- a/desktop/test/dsh_install_panel_test.dart
+++ b/desktop/test/dsh_install_panel_test.dart
@@ -80,7 +80,8 @@ void main() {
testWidgets('a run nobody has heard from yet is fetching', (tester) async {
await _show(tester, DshInstallRun('autonomous/marp'));
expect(find.text('Installing Marp on Studio'), findsOneWidget);
- expect(find.text('0:00'), findsOneWidget);
+ // Painting the first frame can cross a second on a busy host; the clock should still render.
+ expect(find.textContaining(RegExp(r'^\d+:\d{2}$')), findsOneWidget);
expect(_markOf(tester, 'Fetch Marp'), _Mark.active);
expect(find.text('Fetching…'), findsOneWidget);
expect(_markOf(tester, 'Set up the toolchain'), _Mark.pending);
diff --git a/docs/development.md b/docs/development.md
index b6d6a3d37..7f95ef507 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -67,8 +67,9 @@ DSH_UPDATE_CLI_ROOT="$PWD/../cli" flutter test test/store_update_e2e_test.dart
```
The coverage gate requires 100% statements, branches, functions and lines in the updater, version
-comparison, package locks and daemon mutation handler. The integration test uses temporary local Git
-packages and a real WebSocket connection: click Update, reject a broken release, retry successfully,
+comparison, package locks and daemon mutation handler, and runs in the on-demand CI workflow.
+The integration test uses temporary local Git packages and a real WebSocket connection: click Update,
+reject a broken release, retry successfully,
update a shared viewer, then reopen the preserved workspace and fetch its rendered preview. It needs
Node and the CLI dependencies, with no account or model calls. Its fixture is
`cli/scripts/smoke-dsh-updates.ts`; `DSH_UPDATE_CLI_ROOT` makes this integration run explicit.