From ae4b5633265facc6560135afa079ef720ee38832 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Tue, 14 Apr 2026 20:57:43 -0700 Subject: [PATCH] fix(ci): fix infrastructure startup errors and restore sandbox dependencies --- .github/actions/setup-gemini/action.yml | 8 ++++++++ vitest.config.ts | 9 +-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/actions/setup-gemini/action.yml b/.github/actions/setup-gemini/action.yml index 064ca5a4a1..88858d99ec 100644 --- a/.github/actions/setup-gemini/action.yml +++ b/.github/actions/setup-gemini/action.yml @@ -26,6 +26,14 @@ runs: run: 'npm ci' shell: 'bash' + - name: 'Install system dependencies (Linux)' + if: "${{ runner.os == 'Linux' }}" + run: | + sudo apt-get update -qq && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq bubblewrap + # Ubuntu 24.04+ requires this to allow bwrap to function in CI + sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true + shell: 'bash' + - name: 'Build Core (Required for all tests)' run: 'npm run build --workspace @google/gemini-cli-core' shell: 'bash' diff --git a/vitest.config.ts b/vitest.config.ts index 3e63c68204..89932f6816 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -8,14 +8,7 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { - projects: [ - 'packages/cli', - 'packages/core', - 'packages/sdk', - 'packages/a2a-server', - 'packages/test-utils', - 'scripts/tests', - ], + projects: ['packages/*', 'scripts/tests'], // Global test settings coverage: { enabled: false, // Disabled by default for speed, enabled via CLI if needed