Skip to content

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

ci: keep the Linux vitest shards on Ubuntu 24.04

milind-soni9de809727215
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cbdfc4c1aa..1e45922a77 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -198,7 +198,13 @@ jobs:
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.static.outputs.vitest_matrix) }}
- runs-on: ${{ matrix.os }}
+ # The Linux shards stay on Ubuntu 24.04 while `ubuntu-latest` (still the
+ # matrix's name for them, in job names and release-ci) is 26.04. On 26.04
+ # an unprivileged bubblewrap works, so every Cloud-role e2e fixture starts
+ # boxed and the real-box *.linux tests run for the first time; on 24.04
+ # the box does not start, so they run unboxed or skip, as they always
+ # have here. Move to 26.04 once those suites pass with a real box.
+ runs-on: ${{ matrix.os == 'ubuntu-latest' && 'ubuntu-24.04' || matrix.os }}
# scripts/testing/duration-sequencer.ts splits each platform's files by
# their recorded seconds on that platform, about 6 minutes a Linux shard
# (four files at once); a Windows shard runs two files at once. The cap
diff --git a/scripts/ci-workflow.test.ts b/scripts/ci-workflow.test.ts
index 9e11e5c616..a064085d57 100644
--- a/scripts/ci-workflow.test.ts
+++ b/scripts/ci-workflow.test.ts
@@ -87,6 +87,8 @@ describe("CI concurrency", () => {
expect(workflow.permissions).toEqual({ contents: "read" });
expect(workflow.jobs.vitest.strategy.matrix).toBe("${{ fromJSON(needs.static.outputs.vitest_matrix) }}");
expect(workflow.jobs.vitest["timeout-minutes"]).toBe("${{ matrix.os == 'ubuntu-latest' && 25 || 30 }}");
+ // Ubuntu 26.04 (today's ubuntu-latest) lets bubblewrap box the Cloud e2e fixtures; the Linux shards keep 24.04.
+ expect(workflow.jobs.vitest["runs-on"]).toBe("${{ matrix.os == 'ubuntu-latest' && 'ubuntu-24.04' || matrix.os }}");
});
it("runs each selected platform's own shards, and its e2e files, from ci-scope's matrix", () => {