Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

ci(boat): one Boat VM per Linux shard, like ci.yml

milind-sonid46482c5a89a
diff --git a/.github/workflows/boat.yml b/.github/workflows/boat.yml
index 170ae2f627..8b9aa5778d 100644
--- a/.github/workflows/boat.yml
+++ b/.github/workflows/boat.yml
@@ -1,7 +1,8 @@
-# Linux checks on Boat (https://docs.boat.dev/ci): one boat-xlarge VM per run (16 vCPU, 32 GB) runs lint, typecheck and
-# the whole Linux vitest suite, so pull requests get results without waiting for GitHub's hosted runners. It runs only
-# while the repository variable BOAT_CI is "on", and only for this repository's own branches (a fork's pull request
-# never runs on Boat; Boat also refuses runs by anyone outside its allow-list). ci.yml is unchanged and still runs.
+# Linux checks on Boat (https://docs.boat.dev/ci), so pull requests get results without waiting for GitHub's hosted
+# runners. The same split as ci.yml's Linux leg (scripts/ci-scope.mjs: 8 shards, every e2e file, one file at a time per
+# shard, so one VM per shard): lint and typecheck on one boat VM, each vitest shard on its own boat VM (4 vCPU, 8 GB).
+# Runs only while the repository variable BOAT_CI is "on", and only for this repository's own branches (a fork's pull
+# request never runs on Boat; Boat also refuses runs by anyone outside its allow-list). ci.yml is unchanged.
name: Boat
on:
@@ -17,11 +18,11 @@ permissions:
contents: read
jobs:
- linux:
- name: Linux checks (Boat)
+ static:
+ name: Lint and typecheck (Boat)
if: vars.BOAT_CI == 'on' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
- runs-on: boat-xlarge
- timeout-minutes: 45
+ runs-on: boat
+ timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@ff378ebe6b225b0680b81c1ad4498ae0d1d3a5e3 # v6.0.10
@@ -32,7 +33,34 @@ jobs:
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm typecheck
- - name: vitest, every Linux file (e2e included)
+
+ vitest:
+ name: Linux vitest (Boat, shard ${{ matrix.shard }}/8)
+ if: vars.BOAT_CI == 'on' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
+ runs-on: boat
+ timeout-minutes: 30
+ strategy:
+ fail-fast: false
+ matrix:
+ shard: [1, 2, 3, 4, 5, 6, 7, 8]
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: pnpm/action-setup@ff378ebe6b225b0680b81c1ad4498ae0d1d3a5e3 # v6.0.10
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
+ with:
+ node-version: 24
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile
+ - name: vitest shard ${{ matrix.shard }}/8 (every e2e file, as ci.yml's Linux shards)
+ env:
+ OMB_VITEST_E2E: all
+ OMB_VITEST_RETRY_LOG: ${{ runner.temp }}/vitest-retries.jsonl
+ run: pnpm exec vitest run --shard=${{ matrix.shard }}/8 --reporter=default --reporter=github-actions
+ - name: Retried tests
+ if: always()
env:
- OMB_VITEST_E2E: "1"
- run: pnpm exec vitest run --reporter=default
+ OMB_VITEST_RETRY_LOG: ${{ runner.temp }}/vitest-retries.jsonl
+ run: node scripts/testing/ci-retry-summary.mjs
+ - name: Node tests (broker, Electron main)
+ if: matrix.shard == 1
+ run: pnpm broker:test && pnpm test:electron