Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
ci: run the web tests in two shards
shoudi zheng4da83ea75f1a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 3cf0db26..9bb913be 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -2,7 +2,7 @@ name: CI# The repository gate runs on every pull request and merge-queue build; each# app's fast check runs only when its paths change; the web check is split-# into a static job and sharded test jobs. An unchanged app's job is skipped,+# into a static job and two test shards. An unchanged app's job is skipped,# which GitHub reports as success for its required check; a failed path# filter makes every app check fail instead of skipping. A merge-queue build# checks the paths its whole group changes, on top of the latest main. Pushes@@ -91,20 +91,20 @@ jobs:- run: make check-web-static BASE="$BASE"web-tests:- name: web tests (${{ matrix.shard }}/3)+ name: web tests (${{ matrix.shard }}/2)needs: changesif: needs.changes.outputs.web == 'true'runs-on: ubuntu-lateststrategy:fail-fast: falsematrix:- shard: [1, 2, 3]+ shard: [1, 2]steps:- uses: actions/checkout@v4- uses: ./.github/actions/setupwith:go: false- - run: make check-web-tests SHARD=${{ matrix.shard }}/3+ - run: make check-web-tests SHARD=${{ matrix.shard }}/2# Reports the required `check (web)` context from the split web jobs. When# web paths changed, every web job must succeed (an unexpected skip fails);diff --git a/Makefile b/Makefileindex 7511614a..d490636c 100644--- a/Makefile+++ b/Makefile@@ -98,7 +98,7 @@ check-web:"$(WEB_TESTS)" \"$(WEB_DOCTOR)"-# CI runs these as separate jobs (tests in shards, e.g. SHARD=2/3);+# CI runs these as separate jobs (tests in shards, e.g. SHARD=2/2);# check-web stays the local entry point.check-web-static:pnpm exec concurrently --success all --names types,lint,doctor \diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.mdindex 2a43eafc..19f5c3eb 100644--- a/apps/web/AGENTS.md+++ b/apps/web/AGENTS.md@@ -11,8 +11,8 @@ React Router Data Mode and TanStack Query power the active Room-first UI.before opening a pull request. If the change adds a static import on theRoom or app initial graph, also run `pnpm --filter @linger/web runbuild:assets` to check the initial JS budget.- CI runs it as `make check-web-static` plus `make check-web-tests` in three- shards (`SHARD=1/3` and so on).+ CI runs it as `make check-web-static` plus `make check-web-tests` in two+ shards (`SHARD=1/2` and `SHARD=2/2`).## Structure