Skip to content

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

Merge #4416

milind-soniabc90b7edfd5
diff --cc .github/workflows/ci.yml
index e52e3d3333,d5de9fbcc4..9d8b67adda
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@@ -101,19 -101,6 +101,10 @@@ jobs
- name: Validate locale catalogs
run: pnpm i18n:check
- run: pnpm lint
+ - name: Source guards
+ # The tests that only read the source: seconds here, and they stay in the shards. On Nov 3-4 2026 one of them was
+ # red on main for 11 hours, and each PR heard about it after about 70 minutes, once its shards had found a runner.
+ run: pnpm exec vitest run src/locales/ scripts/testing/file-size-ratchet.test.ts scripts/testing/index-route-ratchet.test.ts scripts/testing/tighten-ratchets.test.ts scripts/testing/comment-history.test.ts scripts/testing/lazy-server-modules.test.ts scripts/testing/duration-sequencer.test.ts scripts/testing/host-e2e.test.ts scripts/testing/ci-retry-list.test.ts src/lib/copy-text.guard.test.ts src/components/Select.guard.test.ts --reporter=default --reporter=github-actions
- # A pull request that changes only docs, tests under scripts/ or the
- # control plane cannot change what these three check.
- - if: steps.scope.outputs.build == 'true'
- run: pnpm typecheck
- - if: steps.scope.outputs.build == 'true'
- run: pnpm check:electron
- - name: production UI build
- if: steps.scope.outputs.build == 'true'
- run: pnpm exec vite build
# The rest runs only on a Boat VM, where ci-scope moved the Linux jobs' work into this job.
- name: Remove what Boat installs and GitHub's runners lack
if: steps.scope.outputs.linux_lanes
diff --cc scripts/ci-scope.test.ts
index a05dfaf0db,3da75e98f6..d6448e6565
--- a/scripts/ci-scope.test.ts
+++ b/scripts/ci-scope.test.ts
@@@ -186,9 -186,9 +186,9 @@@ describe("CI outputs", () =>
it("runs the docs tests in one job for docs, and skips the build", () => {
const out = ciOutputs(selectCiScope(["docs/analytics.md"]), PR);
- expect(out).toMatchObject({ build: false, jobs: ["vitest"] });
+ expect(out).toMatchObject({ jobs: ["vitest"] });
expect(out.vitest_matrix.include).toEqual([{
- os: "ubuntu-latest", part: "docs tests", shard: 1, shards: 1, files: VITEST_SUBSETS["docs-tests"].files.join(" "), e2e: "all", node_tests: false,
+ os: "ubuntu-latest", part: "docs tests", shard: 1, shards: 1, files: VITEST_SUBSETS["docs-tests"].files.join(" "), e2e: "all", node_tests: false, workers: 4,
}]);
expect(ciOutputs(selectCiScope(["docs/analytics.md", "src/locales/de.json"]), PR).vitest_matrix.include.map((entry: { part: string }) => entry.part))
.toEqual(["locale tests 1/2", "locale tests 2/2", "docs tests"]);