Skip to content

fix: restore CI hygiene on main - #2

Merged
benjsmith merged 2 commits into
mainfrom
fix/ci-hygiene
Sep 13, 2026
Merged

benjsmith merged 2 commits into
mainfrom
fix/ci-hygiene

Conversation

@benjsmith

Copy link
Copy Markdown
Owner

Summary

Restores green CI on main after the vault-tab merge (#1).

  • Frontend cache: pnpm/setup@v2 defaults to cache-dependency-path: pnpm-lock.yaml at the repo root, but the lockfile lives at frontend/pnpm-lock.yaml, which made cache restore fail with "Some specified paths were not resolved". Added a root pnpm-lock.yamlfrontend/pnpm-lock.yaml symlink so the default path resolves (install still runs via pnpm --dir frontend). Preferred YAML fix (cache-dependency-path: frontend/pnpm-lock.yaml) needs a token with workflow scope and can follow up.
  • VS Code plugin guard: removed tracked extensions/switchbay-sketch/ (stub leftover) and switchbay.code-workspace. Sketch/workspace experiment files belong on exp/vscode-plugin, not main. Kept extensions/switchbay-vs (guard does not forbid it). Added gitignore entries so they stay off main.
  • Economy hire: pick_worker_model at preference ≤ 0.25 breaks strength ties by preferring a provider other than the chief’s. Economy non-review workers pick gemini/mlx flash-class instead of anthropic haiku when both score equally.
  • Windows easy wins: harness_pi._killpg guards missing os.killpg; harness PATH/PYTHONPATH tests use os.pathsep / Path instead of POSIX-only / and :.

Test plan

  • PYTHONPATH=src uv run --with pytest pytest tests/unit/test_kernel_hire.py tests/unit/test_kernel_packages.py -q
  • Full tests/unit on Linux (all green)
  • CI: frontend job caches + builds
  • CI: VS Code plugin guard passes
  • CI: Ubuntu python unit tests pass

Still red on Windows (not blocking)

  • test_ce_toolscope symlink path forms
  • test_version_sync::test_reported_version_is_the_running_one (WinError 10106 / overlapped I/O under stripped PATH)
  • Possible remaining Pi cancel/race edges beyond killpg

Sketch companion belongs on exp/vscode-plugin.

- Add root pnpm-lock.yaml symlink so pnpm/setup cache resolves
  (lockfile lives under frontend/; default cache path is repo-root)
- Remove switchbay-sketch stub and code-workspace (belong on exp/vscode-plugin)
- Economy workers prefer non-chief cheap providers (gemini/mlx over anthropic haiku)
- Harden Pi harness killpg + path assertions for Windows easy wins

Signed-off-by: benjsmith <benjamincharlessmith@gmail.com>
Compare toolscope path assertions with Path.as_posix() (production
rules already use forward slashes) and emit skill-mirrors Read rules
the same way. Inherit PATH in version_sync subprocess env so Windows
winsock/_overlapped keep working. Skip the Pi stdin probe on win32
where select.select is sockets-only.

Signed-off-by: benjsmith <benjamincharlessmith@gmail.com>
@benjsmith
benjsmith merged commit 27a8be6 into main Sep 13, 2026
6 checks passed
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