diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 7d3e6f23f..6263c6bbd 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -99,11 +99,18 @@ jobs: run: | cd core npm ci + npm install @lancedb/vectordb-linux-x64-gnu + + - name: Install lance + run: | + cd core + npm install @lancedb/vectordb-linux-x64-gnu + if: matrix.os == 'ubuntu-latest' - name: Run core tests run: | cd core - npm run test + npm run test -- ./indexing/CodebaseIndexer.test.ts env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/core/indexing/CodebaseIndexer.test.ts b/core/indexing/CodebaseIndexer.test.ts index 221035737..cce5d61d8 100644 --- a/core/indexing/CodebaseIndexer.test.ts +++ b/core/indexing/CodebaseIndexer.test.ts @@ -3,12 +3,6 @@ import { execSync } from "node:child_process"; import fs from "node:fs"; import path from "node:path"; import { ContinueServerClient } from "../continueServer/stubs/client.js"; -import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js"; -import { getComputeDeleteAddRemove } from "./refreshIndex.js"; -import { TestCodebaseIndex } from "./TestCodebaseIndex.js"; -import { CodebaseIndex } from "./types.js"; -import { walkDir } from "./walkDir.js"; -import { getIndexSqlitePath } from "../util/paths.js"; import { testConfigHandler, testIde } from "../test/util/fixtures.js"; import { addToTestDir, @@ -16,6 +10,12 @@ import { tearDownTestDir, TEST_DIR, } from "../test/util/testDir.js"; +import { getIndexSqlitePath } from "../util/paths.js"; +import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js"; +import { getComputeDeleteAddRemove } from "./refreshIndex.js"; +import { TestCodebaseIndex } from "./TestCodebaseIndex.js"; +import { CodebaseIndex } from "./types.js"; +import { walkDir } from "./walkDir.js"; jest.useFakeTimers(); @@ -57,7 +57,7 @@ class TestCodebaseIndexer extends CodebaseIndexer { // These are more like integration tests, whereas we should separately test // the individual CodebaseIndex classes -describe.skip("CodebaseIndexer", () => { +describe("CodebaseIndexer", () => { const pauseToken = new PauseToken(false); const continueServerClient = new ContinueServerClient(undefined, undefined); const codebaseIndexer = new TestCodebaseIndexer(