-
Notifications
You must be signed in to change notification settings - Fork 134
fix(drivers): stop a 2s deadline failing healthy DuckDB stores, and make a broken client say so #1198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(drivers): stop a 2s deadline failing healthy DuckDB stores, and make a broken client say so #1198
Changes from all commits
7c8f098
e9466da
e0d5dec
4c6d20e
6ac0c64
c06a851
b1fa3f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,21 @@ jobs: | |
| - 'packages/opencode/test/altimate/drivers-mongodb-e2e.test.ts' | ||
| - 'packages/opencode/test/altimate/drivers-clickhouse-e2e.test.ts' | ||
| - 'packages/opencode/test/altimate/connections.test.ts' | ||
| # Run by the "DuckDB store-open E2E" step in the driver-e2e job. | ||
| # Without these, a PR touching only these files skips that job, | ||
| # and the main TypeScript job runs them with ALTIMATE_DUCKDB_E2E | ||
| # unset, which skips every test in them — no execution anywhere. | ||
| - 'packages/opencode/test/altimate/duckdb-open-e2e.test.ts' | ||
| - 'packages/opencode/test/altimate/warehouse-test-duckdb-e2e.test.ts' | ||
| - 'packages/opencode/test/altimate/duckdb-lock-helper.ts' | ||
| - 'packages/opencode/src/altimate/tools/warehouse-test.ts' | ||
|
anandgupta42 marked this conversation as resolved.
|
||
| - 'packages/drivers/test/**' | ||
| # These govern whether the native DuckDB binding is fetched at all | ||
| # (`trustedDependencies`, and the pinned version). A change to them | ||
| # can break every real-DuckDB test while touching no test file. | ||
| - 'package.json' | ||
| - 'bun.lock' | ||
| - 'packages/drivers/package.json' | ||
| dbt-tools: | ||
| - 'packages/dbt-tools/**' | ||
| installer: | ||
|
|
@@ -286,6 +301,14 @@ jobs: | |
| - name: Install dependencies | ||
| run: bun install | ||
|
|
||
| # `packages/drivers` declares no scripts and no job had it as a working | ||
| # directory, so its 141 unit tests — including the driver's lock, timeout | ||
| # and read-only regressions — never ran in CI at all. The main TypeScript | ||
| # job runs `bun test` from `packages/opencode` only. | ||
| - name: Run drivers unit suite | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: The driver-e2e job keeps Prompt for AI agents |
||
| run: bun test --timeout 60000 | ||
| working-directory: packages/drivers | ||
|
|
||
| - name: Run local driver E2E (DuckDB, SQLite, PostgreSQL) | ||
| run: bun test test/altimate/drivers-e2e.test.ts | ||
| working-directory: packages/opencode | ||
|
|
@@ -294,6 +317,24 @@ jobs: | |
| TEST_PG_PORT: "15432" | ||
| TEST_PG_PASSWORD: testpass123 | ||
|
|
||
| # Needs a dedicated process: four files in test/altimate install a | ||
| # top-level mock.module("@altimateai/drivers/duckdb", …), and Bun | ||
| # evaluates every test file's top level before running any test, so in a | ||
| # whole-directory run these would silently exercise a fake. With | ||
| # ALTIMATE_DUCKDB_E2E=1 a missing or mocked driver fails the step rather | ||
| # than skipping it. | ||
| # | ||
| # `--timeout` is explicit because invoking `bun test` directly does not use | ||
| # the package's `test` script, so it would otherwise take the CLI default | ||
| # of 5000ms — shorter than both the driver's 30s default open budget and | ||
| # the lock helper's 30s readiness budget, which would reimpose exactly the | ||
| # kind of too-short outer deadline this PR removes. | ||
| - name: Run DuckDB store-open E2E (real store, no mocks) | ||
| run: bun test --timeout 90000 test/altimate/duckdb-open-e2e.test.ts test/altimate/warehouse-test-duckdb-e2e.test.ts | ||
| working-directory: packages/opencode | ||
| env: | ||
| ALTIMATE_DUCKDB_E2E: "1" | ||
|
|
||
| - name: Run Docker driver E2E (MySQL, SQL Server, Redshift) | ||
| run: bun test test/altimate/drivers-docker-e2e.test.ts | ||
| working-directory: packages/opencode | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,6 +126,7 @@ | |
| "printWidth": 120 | ||
| }, | ||
| "trustedDependencies": [ | ||
| "duckdb", | ||
| "esbuild", | ||
| "node-pty", | ||
| "protobufjs", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.